Wednesday, 15 June 2011

sockets - How to have a C# program continue while waiting for data? -



sockets - How to have a C# program continue while waiting for data? -

i looking create programme create socket , take connection. if info received parse , send device.

the kicker don't want programme 'wait' info on socket. want able sit down in loop , check if info received. if no info received go on doing other stuff.

i have read asynchronous sockets seems more having multiple connections.

is right direction should going? or should looking different?

e.g.

main() { while (true) { if new info on socket function1() function2() } }

thanks help and/or advice :)

c# sockets

No comments:

Post a Comment