Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

IpDrv.UdpLink


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
//=============================================================================
// UdpLink: An Internet UDP connectionless socket.
//=============================================================================
class UdpLink expands Info
    intrinsic
    transient;

// Types.
struct IpAddr
{
    var int Addr;
    var int Port;
};

// Variables.
const BroadcastAddr=-1;
var const int Socket;
var enum EUdpMode {UDP_Text, UDP_Binary} UdpMode;

// Intrinsics.
intrinsic function bool Resolve( string[240] URL );
intrinsic function bool BindPort( optional int Port );
intrinsic function bool SendText( IpAddr Addr, coerce string[240] Str );
intrinsic function bool SendBinary( IpAddr Addr, int Count, byte B[240] );
intrinsic function string[240] IpAddrToURL( IpAddr Addr );

// Events.
event Resolved( IpAddr Addr );
event ResolveFailed();
event ReceivedText( IpAddr Addr, string[240] Text );
//event ReceivedBinary( IpAddr Addr, int Count, byte B[240] );

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: za 22-4-2006 12:52:32.000 - Creation time: za 22-4-2006 12:53:47.546 - Created with UnCodeX