Sockets, Multiple I/O

This is a discussion on Sockets, Multiple I/O within the C Programming forums, part of the General Programming Boards category; I am "updating" my chat server from being between only two people who could only send and recieve messages when ...

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    99

    Sockets, Multiple I/O

    I am "updating" my chat server from being between only two people who could only send and recieve messages when no activity is going on to mulitple users speaking at one time. It will only need to be for 5 or 10 sockets. I have read around and been recommended to the select() function the most. I am having trouble applying the concepts of the select function. I am aiming this to be for windows 98 and 2k nt4 and up OS's and maybe *nix (hehe very general ). If anyone has a good example or know a link to the select() in C I would like to look over and apply it to my situation, or if you have a good link to the select() function. Thank you in advanced

  2. #2
    Registered User
    Join Date
    Jan 2003
    Posts
    99
    Sorry for the double post. I forgot if my username had the underscores or not . Sorry once again.

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Try the man page for it.

    Pull up your favourite search engine and spend a few minutes, and you should have all you need to get the job done. For example, the link at the bottom of seaid search...

    Quzah.
    Hope is the first step on the road to disappointment.

  4. #4
    Registered User
    Join Date
    Jan 2003
    Posts
    99
    Thank you both. This should be enough.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. TCP Sockets: multiple clients - one server
    By Printisor in forum C Programming
    Replies: 4
    Last Post: 11-01-2007, 11:34 AM
  2. multiple connections via sockets
    By cope in forum Networking/Device Communication
    Replies: 7
    Last Post: 06-07-2007, 11:35 AM
  3. multiple UDP sockets with select()
    By nkhambal in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-17-2006, 07:36 PM
  4. Multiple Ports using Sockets
    By mmondok in forum C Programming
    Replies: 1
    Last Post: 04-14-2003, 10:36 PM
  5. Overlapped I/O and Completion Port :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 10-30-2002, 05:14 PM

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