Thread: multiple connection server

  1. #1
    Unregistered
    Guest

    Question multiple connection server

    im currently writing a server for linux. can someone please tell me how to make my server accept multiple connections without using the select function? thanks.

    also, what exactly is a library? is it a header file?

  2. #2
    Registered User rohit's Avatar
    Join Date
    Feb 2002
    Posts
    69
    search google for
    "Beej Guide to network programming"

  3. #3
    Unregistered
    Guest
    heh, thats where i learned socket programming

    but the problem is that only explains how to accept multi connections using the select() function...............any other ideas?

  4. #4
    junior member mix0matt's Avatar
    Join Date
    Aug 2001
    Posts
    144

    Unix Network Programming

    the above book is a must...

    a library is a collection of compiled object code that can be linked either statically or dynamically into your program. it is not a header file. header files usually contain protoytpes and other declarations for the object code contained in the libraries...

    old school unix servers - fork a new process for each connection

    new way unix - new thread for each connection...single process...

    again W. Richard Stevens' book, Unix Network Programming, Volume I explains all of it in detail.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. multiple forks in one client connection (ftpclient)
    By Dynamo in forum Networking/Device Communication
    Replies: 5
    Last Post: 01-16-2011, 12:41 PM
  2. Multiple clients to "internet" server
    By Zarniwoop in forum C Programming
    Replies: 2
    Last Post: 10-11-2008, 11:04 PM
  3. Where's the EPIPE signal?
    By marc.andrysco in forum Networking/Device Communication
    Replies: 0
    Last Post: 12-23-2006, 08:04 PM
  4. Headers that use each other
    By nickname_changed in forum C++ Programming
    Replies: 7
    Last Post: 10-03-2003, 04:25 AM
  5. socket question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 07-19-2002, 01:54 PM