Re: client-server network

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"meenu" <mnair.lekshmi@xxxxxxxxx> wrote in message
news:1166180930.624776.125850@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have created a server and a client to implement a client-server
network using UDP (technique of broadcast) ......client will first send
the msg using sendto..then waits for a reply from the server using
recvfrom...server received the data that the client sent.But the data
sent by server didn't reach the client......

Please find the attached files............


There's alot wrong with this code (and your question is unrelated to MFC).

Look under the "Broadcast" section of "Beej's Guide to Network Programming"
at http://beej.us/guide/bgnet/ . It's written for Unix/Linux, but it's easy
to see how to use with winsock.

Note that for broadcast, you must set the SO_BROADCAST option, which your
code does not now do.

Note to Joseph Newcomer: UDP might not be better than TCP, but it's the only
way to get broadcast capability, which is what the OP wants. And the option
he needs is SO_BROADCAST, not SO_REUSEADDR

Mike


.



Relevant Pages

  • Re: Suggestion
    ... Yes database is a single point of failure, but that's not relevant in my ... But if the socket server goes down all of the clients are down - single ... Use UDP and a broadcast, have all clients monitor the same UDP ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Tcl-Tk and network.
    ... >> that it didn't work for broadcast. ... >> the server side of this and send raw UDP packets from a compiled C ... And shows up in the "server" tclsh process: ...
    (comp.lang.tcl)
  • Re: Suggestion
    ... But if the socket server goes down all of the clients are down - single ... Use UDP and a broadcast, have all clients monitor the same UDP ... I am wondering how you don't have a central point of failure with a ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Server name: What to enter?
    ... number you have specified in WME output properties for pull (WME can find ... LAN I.P. which is different to my outside I.P. Which is now the DynDNS ... Player and get the broadcast live. ... Let's address that first to see if a push to a server is what you need ...
    (microsoft.public.windowsmedia.encoder)
  • Re: Server name: What to enter?
    ... )I use the free DynDNS Updater from www.dyndns.com to provide a ... Player and get the broadcast live. ... than one camera/mic (I have 3 cameras that I can flip between during live ... Let's address that first to see if a push to a server is what you need to ...
    (microsoft.public.windowsmedia.encoder)