The timeout for the endpoint in milliseconds. 0 means non-blocking, -1 means no timeout.
int timeout;