Original Post
Hi there, I am creating a small side project, it is yet another UDP with confirmation solution.
I am using C on linux, trying to remain as close to POSIX as possible, so I won't have a hard time porting it to windows.
Right now I am facing the following problems:
1) Client A and Client B are behind a router, so I receive their messages (using recvfrom) and their addr struct show the same IP. Is there any API provided information that I can use I should I implement some kind of handshake where I can give each of them a random number to identify them?
2) Whenever I receive the first message from some IP, the address returned is FFFFFFFF. Any ideas?
Thanks in advance.
I am using C on linux, trying to remain as close to POSIX as possible, so I won't have a hard time porting it to windows.
Right now I am facing the following problems:
1) Client A and Client B are behind a router, so I receive their messages (using recvfrom) and their addr struct show the same IP. Is there any API provided information that I can use I should I implement some kind of handshake where I can give each of them a random number to identify them?
2) Whenever I receive the first message from some IP, the address returned is FFFFFFFF. Any ideas?
Thanks in advance.