Hello.
I have some questions about Foreign.
1. How to convert OS.IO.iodesc (from socket) into cUint (uintptr_t)?
2. C function is need 'const struct timespec *timeout' argument. Where struct timespec is:
struct timespec { time_t tv_sec; long tv_nsec; };
Do I understand correctly that this is cOptionPtr (cStruct2 (cInt32, cLong)) ?
But how can I call this from polyml? I call as SAME (3, 0) and got error: Exception- Foreign "cOptionPtr must be applied to a pointer type" raised
Best regard.