Home > Software engineering >  C language based on UDP server by forwarding the client's message to other clients
C language based on UDP server by forwarding the client's message to other clients

Time:09-27

Forward how UDP client message, through what

CodePudding user response:

sendto

CodePudding user response:

Are sendto.
Such as recvfrom ip1 the sento ip2 will forward the success.

CodePudding user response:

Sendto, recvfrom sent and received, no problem,

CodePudding user response:

Besides sendto, you need to be in the package in the instruction from the client (sending end customer ID) and to be sent to (ID), had better take a msgid serial Numbers, so easy to show that message step by step,
  • Related