Asynchronous Server Socket Example

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
 
L

Lee Gillie

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top