Hi all,
I am developing an ad-hoc client/server application, following are my requirement:
Client: Sends hello message every 1sec (no receiving for now)
Server: Sends broadcast hello message every 1sec and at same time must receive client hello message as well.
for developing this I created 2 socket in a server application, (one socket for server broadcasting only , and one for unicast communication with clients).
but because client and server try to send at same time packets get disappear (even though they send over different sockets).
Please note: if I do the same scenario with only one socket everything work fine but because every 1sec server need to broadcast packet and at same it may send unicast packet I used two socket to avoid changing of remote IP address every time from Broadcast-IP to Client-IP.
Any suggestion will help.
Thanks.