keeping a server listening for client calls

i have a client connecting to a server. they exchange mesages fine the first time, but i dont know how to keep the server listening for a client indefinately. anyone give any pointers on this? using sockets
[218 byte] By [winstonSmith] at [2007-12-23]
# 1
You want to either use listen and then BeginAccept with a callback that has BeginAccept again so that it goes on listening or just listen and do accepts in a loop. Former will be non blocking and latter will block.
AmitPaka-MSFT at 2007-8-31 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...

.NET Development

Site Classified