Sending and receiving UDP packets between two programs on the same computer

后端 未结 8 1818
慢半拍i
慢半拍i 2020-12-02 12:37

Is it possible to get two separate programs to communicate on the same computer (one-way only) over UDP through localhost/127... by sharing the same port #?

We\'re

8条回答
  •  醉酒成梦
    2020-12-02 12:57

    bind the two programs,ie, the sender and receiver to the same port on the localhost.dats the simple answer.

提交回复
热议问题