andreimatei
February 24th, 2003, 03:39 PM
Hi,
I'm trying to build an app for sending and receiving messages in a local network. I don't know exactly how I should do that. I guess every computer should have a TcpListener listening on a specific port. But what happens when somebody sends you a message? Let's say I create a new thread and a new TcpClient for everyone who sends me a message. But how do I distroy that thread and that TcpClient when the other party is done sending me a message???
Thanks a lot,
I'm new at this stuff so any suggestions will be most welcomed.
Andrei Matei
andreimatei@home.ro
I'm trying to build an app for sending and receiving messages in a local network. I don't know exactly how I should do that. I guess every computer should have a TcpListener listening on a specific port. But what happens when somebody sends you a message? Let's say I create a new thread and a new TcpClient for everyone who sends me a message. But how do I distroy that thread and that TcpClient when the other party is done sending me a message???
Thanks a lot,
I'm new at this stuff so any suggestions will be most welcomed.
Andrei Matei
andreimatei@home.ro