socket programming - problem

csharp Greece
  • 14 years ago
    i made a client application that connects to a server application and sends him some data.
    I made a "button" control named "close connection" that when i push it, it closes the connection with the server : mySocket.Close ();
    How can i inform the server that the "send" function is over?
    The corresponding example for listening the server that a client is calling him is :
    socketListener.BeginAccept(new AsyncCallback( OnClientConnect ),null);

    Thank you and sorry for my bad english

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity.” - Dennis Ritchie