Thread: windows sockets

  1. #1
    Registered User
    Join Date
    May 2006

    windows sockets

    hi everyone
    i have a server using windows sockets and runs on multiple computers on lan,
    and i need to display a list of the servers from a client machine,
    what is the easy way ,how can i implement it

  2. #2
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Banks of the River Styx
    There's essentially two solutions that I've seen to this problem:

    1) Use some form of a broadcast, sending the same message to every computer on the network. A sort of Client: "Are you there?" Servers: "Yeah, I'm at *ip address*" I think UDP is capable of this. There are probably other ways as well... searching the forum, these might help you:
    Finding a server, Howto Broadcast?.

    2) Maintain some central list at a known location, have all servers send a "Hey, I'm here!" message to the central list, which then stores it. When a client wants a list of servers, it simply consults this central list.

    Solution two works well for servers spread across the internet. Solution one is probably better suited for LANs. I've never personally implemented either - Google is your friend. The above topics I linked to also mention multicasts, perhaps another solution.
    long time; /* know C? */
    Unprecedented performance: Nothing ever ran this slow before.
    Any sufficiently advanced bug is indistinguishable from a feature.
    Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
    The best way to accelerate an IBM is at 9.8 m/s/s.
    recursion (re - cur' - zhun) n. 1. (see recursion)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Script errors - bool unrecognized and struct issues
    By ulillillia in forum Windows Programming
    Replies: 10
    Last Post: 12-18-2006, 04:44 AM
  2. Windows Sockets IP
    By Scarvenger in forum Networking/Device Communication
    Replies: 3
    Last Post: 08-15-2006, 07:08 PM
  3. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM
  4. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM
  5. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM