|
I wrote a udp server program. In some cases, the server needs to write data into the socket itself.
I tried, write (sockfd, data, 10) directly; it doesn't work, the system prompts Destination address required
Unless the server simulates the client to connect to itself, and then can write data, is there a simpler way? |
|