any socket programmer ??

This is a discussion on any socket programmer ?? within the Linux Programming forums, part of the Platform Specific Boards category; Hi, I have a problem with socket programming , I have implemented multiple clients single server through Select System call ...

  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    1

    any socket programmer ??

    Hi,
    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 )
    Imran

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    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, 03:15 AM
  2. socket programming question, closing sockets...
    By ursula in forum Networking/Device Communication
    Replies: 2
    Last Post: 05-31-2009, 06: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, 12:48 PM

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