Thread: winsock

  1. #1
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455

    winsock

    maybe this belongs in the windows programming forum...not sure

    suppose i have one server program and 3 client programs. the server program will communicate with the client program, but there isn't only 1 client connected. right now as it's coded, it seems as though it can only handle 1 client at a time. do i get it to handle multiple connections via multithreading of the winsock connection? im not using MFC, its pure API.

    the data has to be routed to the appropriate client, but im not sure of how it will be done. maybe an array of WSADATA[n] with n being the maximum # of client connections, and whenever an incoming connection is detected, move 'route' it to the next available slot? or maybe a struct/linked list with WSADATA's in them with an int ID and the winsock in it...i don't know, throwing out ideas
    Last edited by the Wookie; 06-03-2003 at 12:02 PM.

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    One solution is a map of clients.

    Kuphryn

  3. #3
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455
    i'm not quite sure of what you mean by that.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Winsock issues
    By tjpanda in forum Windows Programming
    Replies: 3
    Last Post: 12-04-2008, 08:32 AM
  2. Winsock Messaging Program
    By Morgul in forum Windows Programming
    Replies: 13
    Last Post: 04-25-2005, 04:00 PM
  3. Winsock - Where do i start?
    By Brain Cell in forum Networking/Device Communication
    Replies: 5
    Last Post: 02-14-2005, 01:39 PM
  4. Where do I initialize Winsock and catch messages for it?
    By Lithorien in forum Windows Programming
    Replies: 10
    Last Post: 12-30-2004, 12:11 PM
  5. winsock
    By pode in forum Networking/Device Communication
    Replies: 2
    Last Post: 09-26-2003, 12:45 AM