Asynchronous Server Socket Example

  • Thread starter Thread starter Ravi
  • Start date Start date
R

Ravi

Hi All,

I am trying to use the Asynchronous Server Socket Example from MSDN (
http://msdn.microsoft.com/library/d...html/cpconnon-blockingserversocketexample.asp )
in my C# windows form application.

Clients will connect and send a data packet. This server program has to
receive packets from multiple clients and relay those packets to another
server for further processing.

In ReadCallBack function instead of doing Console.WriteLine, I want an event
(
Message ) to be sent to the mainform along with the data. So that the
Mainform can send this data to other server through already open socket.

How can I send (post) event/Message along with the data to the Mainform?

Thanks in advance,
Ravi
 
Back
Top