aamswe says:
problem was in socket creation on client side. now client is connecting to the server. But server is not receving messages from client. I have voerriden OnAccept and OnReceive functions, When I am sending message from client, OnAccept event is captured but it's not going in OnRecive. Even I tried to receive message on OnAccept event but zero byte recived.
What could be the problem?
If you are running Windows Vista/7 open ResMon.exe and go to the network page. Check to see if there is any sessions or data send/receive associated with your program.
If you are using a version of Windows previous to Vista, or you feel like it, get
Wireshark[
^] and start sniffing to see what is sent to/from the server.