Re: TCP Broadcast
From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 05/10/04
- Next message: user_at_domain.invalid: "Re: TCP Broadcast"
- Previous message: David Schwartz: "Re: mlock usage"
- In reply to: user_at_domain.invalid: "TCP Broadcast"
- Next in thread: user_at_domain.invalid: "Re: TCP Broadcast"
- Reply: user_at_domain.invalid: "Re: TCP Broadcast"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 09 May 2004 22:18:10 -0400
In article <c7mmia$rur$1@au-nws-0001.flow.com.au>, user@domain.invalid
wrote:
> I am writing an application using TCP sockets, I don't know the IP
> address of the server and am thinking of using a broadcast to find it.
>
> I am using these examples as a test.
> http://www.ecst.csuchico.edu/~beej/guide/net/examples/server.c
> http://www.ecst.csuchico.edu/~beej/guide/net/examples/client.c
>
> How do you modify these so the client will do a broadcast.
> I had a guess at using use SO_BROADCAST in programs but it doesn't
> appear to change anything.
Read the "Broadcasting" chapter of "Unix Network Programming, Vol.1"
-- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***
- Next message: user_at_domain.invalid: "Re: TCP Broadcast"
- Previous message: David Schwartz: "Re: mlock usage"
- In reply to: user_at_domain.invalid: "TCP Broadcast"
- Next in thread: user_at_domain.invalid: "Re: TCP Broadcast"
- Reply: user_at_domain.invalid: "Re: TCP Broadcast"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|