Handle Utillities

testify_type

THandleType testify_type(THandle *handle);

Description: Returns the type of a Testify handle.

Types:

Enum:

THandleType

T_HT_STREAMING_SERVER

T_HT_STREAMING_CONNECTION

T_HT_PACKET_PEER

T_HT_FILE_READ

T_HT_FILE_WRITE

T_HT_BUFFER

testify_free

void testify_free(THandle *handle);

Description: frees a handle

testify_network_wait

uint testify_network_wait(THandle **handles, boolean *read, boolean *write, unsigned int handle_count, unsigned int microseconds);

Description: querys if network handles are ready to read and write. Can handle multiple handles as speccified by the array "handles" and handle count. The function will block for at most milliseconds and wait for any resource to become availbale. Once a resource gets available it will return.