Thread: Need implementation advice , using threading and sockets

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Feb 2019
    Posts
    7
    haha , thanks a lot for your help. I think threads could be a headache but Im still willing to at least learn a threaded implementation because its good for knowledge.


    But obviously select() makes things a lot easier. thanks for introducing this.


    For now I think I will try the approach

    having a set of listening sockets (for each port)

    then for each socket have a fd_set of client sockets

    so if i == that socket (I get a new connection) I will accept() the new fd and add it to its respective set.

    ... or something similar to this approach
    Last edited by frododo1; 02-26-2019 at 04:45 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MOS 6502 - More Advice on my implementation
    By Syscal in forum C Programming
    Replies: 11
    Last Post: 07-07-2013, 06:31 AM
  2. Sockets tutorial, datagram sockets example not working for me
    By caesius in forum Networking/Device Communication
    Replies: 14
    Last Post: 12-26-2009, 03:40 PM
  3. Semaphores, need advice on implementation.
    By Swerve in forum C++ Programming
    Replies: 2
    Last Post: 01-13-2009, 01:54 AM
  4. Replies: 7
    Last Post: 10-01-2008, 07:45 PM
  5. Opinion about game server implementation (sockets)
    By Rennor in forum Game Programming
    Replies: 3
    Last Post: 08-29-2006, 05:10 PM

Tags for this Thread