prog.cpp:1:29: error: ‘SOCKET’ was not declared in this scope
static int recvfrom_timeout(SOCKET sock, long sec, long usec)
^~~~~~
prog.cpp:1:42: error: expected primary-expression before ‘long’
static int recvfrom_timeout(SOCKET sock, long sec, long usec)
^~~~
prog.cpp:1:52: error: expected primary-expression before ‘long’
static int recvfrom_timeout(SOCKET sock, long sec, long usec)
^~~~
prog.cpp:1:61: error: expression list treated as compound expression in initializer [-fpermissive]
static int recvfrom_timeout(SOCKET sock, long sec, long usec)
^
prog.cpp:11:16: error: variable or field ‘bootstrap’ declared void
void bootstrap(SOCKET sock)
^~~~~~
prog.cpp:11:16: error: ‘SOCKET’ was not declared in this scope