class Stream

extends Stream.StdioStream

Used for sending and receiving UDP datagrams

Description

To send to a remote UDP service, simply use Network.UDP.connect() to create an instance of this class and then use the stream methods to send datagrams. To set up a UDP server bound to a particular port, call the Network.UDP.bind() method, then use the read() methods to receive datagrams. Note that UDP is inherently unreliable. There is no guarantee that a packet you send will arrive at the destination, or if you send multiple packets within a short time that they will arrive in the same order as you sent them. This unfortunate behaviour is due to the way the icmp "port unreachable" mechanism works.

class contents [NB. Highlighted attributes are static members]
Variables
variable remoteip - After each recv(), this is set to the remote IP address.
variable remoteport - After each recv(), this is set to the remote port.

Variables

string remoteip Click to go up to the list
After each recv(), this is set to the remote IP address.

string remoteport Click to go up to the list
After each recv(), this is set to the remote port.

Automatically generated at 12:07PM, Wednesday 25 May 2005 by feritedoc.