Server Client Asyn. communication

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am working on a server client asyn. socket communication via TCP in pocketPC

the program is successfully compiled
and the server and the client is successfully connected
However, when the program execute the command:
Sock.Send( byteDateLine, byteDateLine.Length, 0 );
An exception is caught:
System.InvalidOperationException:InvalidOperationException
What is the problem?
 
The InvalidOperationException is normally thrown when you attempt an
operation on a Socket that is not yet connected. Are you doing an Async
connect? If so you may be doing the Send before the Connect has completed.

Sujit D'Mello
 
Back
Top