Article View: es.comp.os.linux.programacion
Article #7329Hacer un broadcast en C
From: Mario de Sousa Dias
Date: Fri, 07 Mar 2003 12:39
Date: Fri, 07 Mar 2003 12:39
12 lines
1325 bytes
1325 bytes
Hello everyone.... I would like to know how to write very simple client program in C using sockets that tries to find out in which machine the server is. This is done using a broadcast (the server is on the same LAN). I know that I must use setsockopt(). When responding to the client, The server must include it's ๏ฟฝlevel๏ฟฝ. If possible I'd also like to know how to implement the server code... Thank you...
Technical Details
Message-ID:
<Yr0aa.4487$7_7.2683996@newsserver.ip.pt>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!jussieu.fr!opentransit.net!newshub.ip.pt!newsserver.ip.pt.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f86c8,853062bed1b51a53,start X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2003-03-07 04:41:33 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!jussieu.fr!opentransit.net!newshub.ip.pt!newsserver.ip.pt.POSTED!not-for-mail From: "Mario de Sousa Dias" <mario_d@clix.pt> Newsgroups: es.comp.os.linux.programacion Subject: Hacer un broadcast en C Lines: 15 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <Yr0aa.4487$7_7.2683996@newsserver.ip.pt> Date: Fri, 7 Mar 2003 12:39:20 -0000 NNTP-Posting-Host: 195.23.171.171 X-Trace: newsserver.ip.pt 1047040888 195.23.171.171 (Fri, 07 Mar 2003 12:41:28 WET) NNTP-Posting-Date: Fri, 07 Mar 2003 12:41:28 WET