MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / init_timeval

Function init_timeval

src/hx/libs/std/Socket.cpp:707–713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705}
706
707static struct timeval *init_timeval( double f, struct timeval *t ) {
708 if (f<0)
709 return 0;
710 t->tv_usec = (int)( (f - (int)f ) * 1000000 );
711 t->tv_sec = (int)f;
712 return t;
713}
714
715/**
716 socket_select : read : 'socket array -> write : 'socket array -> others : 'socket array -> timeout:number? -> 'socket array array

Callers 4

_hx_std_socket_selectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected