-3

I need to implement UDP for two process, but both are wrote in different languages, and different platforms.

Is it possible for two process in different languages to communicate by using UDP?

jww
  • 97,681
  • 90
  • 411
  • 885
  • yes, for UDP is not relevant what language the code is written – ΦXocę 웃 Пepeúpa ツ Jun 14 '17 at 08:59
  • Yes, it is possible. https://stackoverflow.com/questions/9673072/udp-connection-between-c-server-and-java-client – msc Jun 14 '17 at 08:59
  • Therefore are protocols! – Andre Kampling Jun 14 '17 at 08:59
  • 1
    Welcome to SO, unfortunately this question is off-topic as it's way too broad. The implementation language is completely independent of the transport protocol as it should be – EdChum Jun 14 '17 at 08:59
  • Yes, standard protocols are specifically made for this goal. – Paul-Louis Ageneau Jun 14 '17 at 09:03
  • 1
    @EdChum If the implementation language is independent of the transport protocol, how is it too broad? And how is it too broad when the answer is either yes or no? – user207421 Jun 14 '17 at 09:34
  • @EJP fair point, yes it's a straight yes/no question. I interpreted this as some kind of larger request but it is still a poor question nonetheless – EdChum Jun 14 '17 at 09:42
  • @EdChum It's not adequate to characterize this as a poor question without providing an actual reason. The only reason you have advanced doesn't apply, as you have now agreed. – user207421 Jun 14 '17 at 10:39
  • If the processes are on the same machine *and* its Unix or Linux, then you probably want to use [Pipes](https://stackoverflow.com/q/24395639/608639) or [Domain Sockets](https://stackoverflow.com/q/24030591/608639). They are some of the fastest IPC methods. Also see [Unix domain socket VS named pipes?](https://stackoverflow.com/q/9475442/608639). – jww Jun 14 '17 at 10:49

1 Answers1

2

Does it possible to communicate two process in different languages by using UDP

Yes. UDP is a well-defined protocol. Not a programming language or a platform.

user207421
  • 305,947
  • 44
  • 307
  • 483