UDPSocket (Real Studio network user group Mailinglist archive)
Back to the thread list
Previous thread: RB2K9 may have a serious flaw. was: Why does loading so long?
Next thread: does thread.kill not kill?
|Re: File Suggestions? - Rubber Chicken Software Co.|
|UDPSocket - Jaap Cammeraat|
|Re: UDPSocket - Thomas Tempelmann|
|Date: 22.04.09 22:10 (Wed, 22 Apr 2009 23:10:57 +0200)|
|From: Jaap Cammeraat|
I don't understand the Rb UDPSocket.
I'm creating a little tool that has to listen/receive data from other
UDP sockets in a network.
How do I listen with a subclassed UDPSocket?
What do I have to fill in the UDPSocket.JoinMulticastGroup( ???? )
My ip address is 10.0.1.115/24 and I want to be 'open' for other udp-
sockets in my subnet listening to port 3333.
Unsubscribe or switch delivery mode:
Search the archives:
|Date: 22.04.09 23:02 (Thu, 23 Apr 2009 00:02:51 +0200)|
|From: Thomas Tempelmann|
On Wed, Apr 22, 2009 at 23:10, Jaap Cammeraat <<email address removed>> wrote:
> How do I listen with a subclassed UDPSocket?
Just call Connect after specifiying your port.
> What do I have to fill in the UDPSocket.JoinMulticastGroup( ???? )
Nothing if you don't know what it's for.
> My ip address is 10.0.1.115/24 and I want to be 'open' for other udp-sockets
> in my subnet listening to port 3333.
Either leave the networkinterface prop alone or iterate over the
system-given interfaces and choose the one that matches your wanted
subnet and assign that to the networkinterface prop.
also, if others are listening on other ports, you should not use the
write method that takes a string but the one that takes a datagram -
in the latter case you can specify which port to address, even if your
own port is different.