Re: Howto find multiple servers using TCP



No only UDP. But the Multicast is only there for the server finding and
then you would want to switch to a normal TCP socket once you find the
server.

AliR.


"amccombs" <amccombs@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:902C317D-01C5-4FE1-97D9-B93F04749975@xxxxxxxxxxxxxxxx
Can you multicast on TCP?


"AliR (VC++ MVP)" wrote:

I can't think of another way.

But if the server program is your program, then I have a suggestion.
I have a server that alot of clients connect to, and I really didn't want
to
have to input the server address in every client. So what I did was I
used
a multicast socket to find the server. The server listens to traffic on
a
particular multicast address, and when the clients want to find the
server
application, they would send a message (where are you) using a multicast
socket with that particular address, the server would receive the message
and send a reply (Here I am) with its IP address. Now if there are more
than
one server, the client would get multiple "Here I am" replies. This
entire
process takes less than a second.

AliR.


"amccombs" <amccombs@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:129DBBB8-AD79-4588-91E0-0DF847EB11FB@xxxxxxxxxxxxxxxx
I have to search my subnet to look for servers that are listening on
port
30715. I am using one thread of a derived class of CAsyncSocket. I am
using
CEvents with a 200 milisecond timeout, if there is no connection within
the
200 miliseconds, then I know there is no serer. However searching from
192.168.1.1 to 192.168.1.254 takes a long time. Is there a better way?






.



Relevant Pages

  • Re: C sockets
    ... :if no then select is only thing to have server socket program on one ... :pc and other clients on many pcs to have communication with server? ... serving N clients requires at least times the amount of memory ...
    (comp.lang.c)
  • Re: NOOB: Multicasting over Unicast WAN Connections
    ... >My desire is to place a live video stream at location A and multicast it ... >to clients in location A. No problem. ... >My goal is to unicast the live video feed from location A WMS server to ...
    (microsoft.public.windowsmedia.server)
  • Re: Format of string output of a socket server
    ... a socket can ONLY send bytes. ... What for example does your standard POP3 server send? ... The client program can then convert to Unicode or whatever they see fit? ... I am writing a socket server to deliver telephony events to clients on ...
    (microsoft.public.win32.programmer.networks)
  • Re: How Can I call close() for all
    ... with a select to handle multiple clients. ... The first socket you process contains a command that tells the ... server shut down, so you call 'close' on all your connections. ... 'syslog' opens a TCP connection to write the log ...
    (comp.os.linux.development.apps)
  • Re: Howto find multiple servers using TCP
    ... You will have to create a UDP socket ... When a packet is sent using a UDP socket ... differences between multicast and regular udp packets, ... But if the server program is your program, ...
    (microsoft.public.vc.mfc)