Hi, simple question!

This is a discussion on Hi, simple question! within the Networking/Device Communication forums, part of the General Programming Boards category; Im programming a really simple server that right now clients connect to. Im using wsock32.lib vs.net 2003. My problem is ...

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    110

    Hi, simple question!

    Im programming a really simple server that right now clients connect to. Im using wsock32.lib vs.net 2003.

    My problem is know when a client has disconnected. Anyone know a simple way to detect this?

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    One solution is via select(). What I/O model? If you're developing the socket I/O around a non-blocking I/O, then the OS should update the main thread on socket connection status.

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple question regarding variables
    By Flakster in forum C++ Programming
    Replies: 10
    Last Post: 05-18-2005, 08:10 PM
  2. Simple class question
    By 99atlantic in forum C++ Programming
    Replies: 6
    Last Post: 04-20-2005, 11:41 PM
  3. Simple question about pausing program
    By Noid in forum C Programming
    Replies: 14
    Last Post: 04-02-2005, 08:46 AM
  4. simple question.
    By InvariantLoop in forum Windows Programming
    Replies: 4
    Last Post: 01-31-2005, 11:15 AM
  5. simple fgets question
    By theweirdo in forum C Programming
    Replies: 7
    Last Post: 01-27-2002, 05:58 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21