Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

eventdriven sockets

Status
Not open for further replies.

omanthey

Programmer
Feb 20, 2003
3
DE
hi all,

can someone give me information on how i can expand the socket class so it triggers events when receiving data ???

thx,
oliver
 
hi oliver,

A common approach is to use a worker thread to read the socket.

When the read call returns you can call a method of some class/interface that you design for your application. Keep in mind when the method executes it is running in the worker thread context.

or

When the read call returns you can signal a synchronization object that the data just read is available thereby passing control to another thread context.

does that help?
-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top