Events for sockets

T

Trollpower

Dear NG,

i want to implement a Client and a Server application, which
communicate using sockets. The client (PPC 2002) works on some forms
while a socket in the background waits for send data. The sockets
stays active for the duration of the application, so i need a event to
be fired if data arrived at the socket.

I read an article which uses events for sockets for a chatclient, but
i dont know the URL anymore. Does anyone of you knows how to add
events for sockets which get fired when data arrives?

Thanks in advance :)

Greetz

Jens Meyer
 
P

Paul G. Tobey [eMVP]

You might want to just put your socket code in a separate thread. This
disconnects the network operations from things which might be going on in
the user interface, which, except for status updates, is a good thing.

Paul T.
 
T

Trollpower

Thanks for your answer, Paul.

Thats what i intended to do, but i recently read about a code which
uses Events for Sockets. I wanted to start a Thread in which i put the
eventhandling for the socket. Thats what the guy did for the
chatclient. But i failed to locate the source code again since my
bookmarks screwed up recently. Again, it was a code for both: Server
and Client. The Clientcode has been written for CF and uses some kind
of events for the socket.

Any hints on where i can find this code/article again is appreciated.

Thanks in advance... :)

Jens
 

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