Re: Request for UDP Help



Do you know that you propose UPnP protocol ? :)
Arkady

"Boris Buchanan" <nospam@xxxxxxxxxxx> wrote in message
news:uOl6HpcjGHA.4884@xxxxxxxxxxxxxxxxxxxxxxx
I agree with others that this is a fairly trivial problem but I'll try to
be
slightly more helpful. I think you have made the problem more complicated
by conceptualizing it as a "switch" from UDP to TCP. A simple
construction
of this problem is:
1. A server sends a UDP broadcast, perhaps periodically, advertising a
service capability. The broadcast includes a TCP port for the service
connection.
2. Interested clients create a TCP socket and attempt to connect to the
server port.

1 and 2 are only related logically - there is no "switch" involved. The
solution is "trivial" because it is composed of two independent trivial
components, i.e. sending a UDP broadcast and creating/accepting a TCP
connection. You might implement each as a thread in the same process.
Changing #1 to a multi-cast makes the solution only marginally more
complicated.

Boris

"alijsyed" <alijsyed@xxxxxxxxxxx> wrote in message
news:1149853614.570461.221310@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi:

I would like to ask all of you if there is any reference code relating
to the following:

1) I need a server to broadcast a general multicast packet to all
listening CLients
2) CLients repsond back and both switch to TCP

This sounds trivial but trust me I can't find much on this.
I find a lot of stuff on UDP clients initializing the conversation but
not the server.

Any help would be appreciated. (I am trying to do this in C not C++).


Thanks

Ali





.



Relevant Pages

  • Re: TCP/IP redundant connections
    ... The clients have persistent TCP connections to the server, ...
    (freebsd-hackers)
  • Re: Request for UDP Help
    ... by conceptualizing it as a "switch" from UDP to TCP. ... Interested clients create a TCP socket and attempt to connect to the ... server port. ... i.e. sending a UDP broadcast and creating/accepting a TCP ...
    (microsoft.public.win32.programmer.networks)
  • Linux 2.4 TCP Performance Problem?
    ... I'm experiencing what seems to be a TCP throughput problem between ... are multiple clients connecting to Server A, ... Establishing a new connection to Server A during ... the receiver is advertising a TCP window of 63712 bytes. ...
    (comp.os.linux.networking)
  • Re: How can I make the server to call back to client without being blocked by firewall.
    ... I tend to think you would be on the right track suggesting a single TCP ... the clients have to be logged in to make or receive ... > connection to any one of others via our server. ...
    (comp.security.firewalls)
  • Re: Switching programs X session
    ... The theory is that you build xmove, ... creates a pseudo-X server that can be redirected to a real X display. ... Then you start your X clients on this pseudo-server, ... have to have your real X server listening for TCP for xmove to work as ...
    (comp.os.linux.x)