System.Net.Sockets multiple clients connected
i want write piece of code control tcp connections (the server side).
i trying use system.net.sockets, can't figure how control multiple streams of data. maybe code sample can make work.
what need: open port , listen new connections. when new connection received, negotiate , give me way identify specific connection (client) future sending/receiving of data. when new data received, need know identifier (client) coming. also, need send data specific clients (identifiers). when connection broken or dropped, need free identifier...
this chat server, can't find code use base...
can help?
uhm, did mean put in powershell forum?
if so, let me state record: you're barking wrong tree. powershell cannot create threads (it can create 'jobs' have lot of overhead on thread), it's not right tool writing servers @ all, never mind multi-threaded servers.
having said -- find examples on codeproject http://www.codeproject.com/kb/ip/tcpipchat.aspx
Windows Server > Windows PowerShell
Comments
Post a Comment