I'am not sure what you want to do but, is a file descriptor just an integer? The you could just send an integer.
If you want to send a struct/nim object, you can try:
await mysock.send(addr myobj, myobj.sizeof)
Run
I'am not sure what you want to do but, is a file descriptor just an integer? The you could just send an integer.
If you want to send a struct/nim object, you can try:
await mysock.send(addr myobj, myobj.sizeof)
Run