CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: server app

  1. #1
    Join Date
    Feb 2001
    Location
    Bucharest, Romania
    Posts
    24

    Unhappy server app

    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

    [email protected]

  2. #2
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    you can start with the following sample.

    tcp network

    Paresh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured