See Original text in context
method native-descriptor()
This returns a value that the operating system would understand as a "socket descriptor" and is suitable for passing to a native function that requires a socket descriptor as an argument such as setsockopt
.
See Original text in context
method native-descriptor(--> Int)
Returns the file descriptor of this socket.
See Original text in context
method native-descriptor(--> Int)
Returns the corresponding file descriptor (SOCKET
on Windows) for the listening socket.
See Original text in context
method native-descriptor(IO::Handle:)
This returns a value that the operating system would understand as a "file descriptor" and is suitable for passing to a native function that requires a file descriptor as an argument such as fcntl
or ioctl
.
See Original text in context
method native-descriptor(IO::CatHandle: --> Int)
Returns the native-descriptor of the currently active source handle or Nil if the source handle queue may get exhausted.
Since the CatHandle
closes a source handle, once it's done with it, it's possible for successive source handles to have the same native descriptor, if they were passed to .new as Cool or IO::Path objects.
(my = 'foo'.IO).spurt: 'foo';(my = 'bar'.IO).spurt: 'bar';with IO::CatHandle.new: , ,