Jump to content

Get client host and port from socket


photo

Recommended Posts

Hi,

Is possible to get client port from received UDP message from server Unigine socket ? Currently getPort from Unigine Socket function return server side port which was initialised at server side by open (Stream) function. But I need to get client port, from client which actually send message.

As workaround I use native winsock recvfrom function to get client port at server socket. But it would be more apprieciate to get this data from Unigine API. 

Cheers,
Jan 

Link to comment
46 minutes ago, alexander said:

Hi Jan,

Unfortunately, there is no way to do this through Unigine API. But the problem is known. We'll fix it later.

Best regards,
Alexander

Hi Alexaner,

So I am awaiting for fix to make cleaner of code.

Thanks,

Jan

Link to comment
×
×
  • Create New...