Thread: any socket programmer ??

  1. #1
    Registered User
    Join Date
    Apr 2004

    any socket programmer ??

    I have a problem with socket programming , I have implemented multiple clients single server through Select System call and it is working fine. i am trying to implement Multithreading in that multiclient single server Code But i m not succeeded ,please help .
    How to implement multithreading in multiclient single server code.( Select System call )

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    When ever you get a connection just spawn another thread. Let that thread deal with everything for that socket. Once the socket closes have the thread kill itself.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Non-blocking socket connection problem
    By cbalu in forum Linux Programming
    Replies: 25
    Last Post: 06-03-2009, 02:15 AM
  2. socket programming question, closing sockets...
    By ursula in forum Networking/Device Communication
    Replies: 2
    Last Post: 05-31-2009, 05:17 PM
  3. Socket Help - Multiple Clients
    By project95talon in forum C Programming
    Replies: 5
    Last Post: 11-17-2005, 02:51 AM
  4. when to close a socket
    By Wisefool in forum Networking/Device Communication
    Replies: 5
    Last Post: 11-02-2003, 10:33 AM
  5. socket newbie, losing a few chars from server to client
    By registering in forum Linux Programming
    Replies: 2
    Last Post: 06-07-2003, 11:48 AM