Transfer the socket id and events to a new Socket.
_Io_TransferSocket(ByRef $from, Const ByRef $to)
$from is replaced by $to. So there is no need to do something like this "$to = _Io_TransferSocket($from, $to)"