UDP Networking

Handles the creation and mangement of UDP datagrams.


boolean testify_network_address_lookup(TestifyNetworkAddress *address, char *dns_name, uint16 default_port);

Description: look up a DNS address and turn it in to a IP and port. Returns TRUE if sucessfull. The default port will be set unless the dns_name contains a port in the following format hostname:portnumber .


THandle *testify_network_datagram_create(uint16 port);

Description: Opens a port for receving and sending UDP traffic on a specific port.


int testify_network_datagram_send(THandle *handle, TestifyNetworkAddress *to);

Description: Sends the data collected in handle to the IP and address specifyed in "to".


int testify_network_receive(THandle *handle, TestifyNetworkAddress *from);