Click here to Skip to main content
15,920,005 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi..
i have problem in server client socket programing...
multiple client attached with server when i have send data server to client then all clients will be receive data from recvfrom method.first time all clients send data to server its successfully working, but next time i have deactivate server and again active server and again same process means all client send data to server that time some client can't send data to server. i have create server-client socket .lib file in c++ and data send with MFC GUI application in VC++. And also store multiple client in vector when create new client vector push-back the particular client in vector
Posted
Comments
Sergey Alexandrovich Kryukov 5-Sep-11 2:50am    
Not clear, not a question.
--SA
ThatsAlok 5-Sep-11 5:50am    
what is the problem dear?
Ashish Tyagi 40 5-Sep-11 5:53am    
Sorry for not understanding your question, please improve it.
Sergey Alexandrovich Kryukov 5-Sep-11 12:17pm    
Please use "Improve question" above.
--SA

1 solution

Hi frnd!

Your question is not clear.
I assume once u restart ur server. ur socketaddress will be changed whil u bind the created socket. hence initialize ur socetaddr structure properly always with the same values while u bind the socket from server.


Thanks,
Arun P.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900