- socket-i/o-port->socket portprocedure
Returns the socket object assocated with input or output port port. From there you can obtain a file descriptor with socket-fileno.
Alternatively, port->fileno from posix is supported to obtain a file descriptor. (Also see Bugs and limitations.)