UDP Networking

Handles the creation and mangement of UDP datagrams.

testify_network_address_lookup

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 .

testify_network_datagram_create

THandle *testify_network_datagram_create(uint16 port);

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

testify_network_datagram_send

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

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

testify_network_receive

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