Initializes the server. Port - The server port. NewConnectionSub - The sub that will handle the NewConnection event.
Starts listening for connections. The NewConnection event will be raised when data from the new client is available. This means that the client is expected to send at least one byte after the connection is established. You should call Listen again after the connection has broken. AsyncStreams_Error is a good place for this call.
Initializes the object. Returns True if successful. Port - The UDP socket will be bound to this port. PacketArrivedSub - The sub that handles the PacketArrived event.
Sends the packet.
Write (Data() AsByte) AsInt
Writes data to the packet. Returns the number of bytes that were written successfully. This method should only be called between a call to BeginPacket and SendPacket. You can call Write multiple times.