Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add native-descriptor description
  • Loading branch information
jonathanstowe committed Dec 16, 2015
1 parent 77518c1 commit 4883a73
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/Type/IO/Handle.pod
Expand Up @@ -168,6 +168,14 @@ Will flush the filehandle to disk.
$fh.flush;
=head2 method native-descriptor
method native-descriptor()
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 C<fcntl> or C<ioctl>.
=head1 Related roles and classes
See also the related role L<IO> and the related class L<IO::Path>.
Expand Down
8 changes: 8 additions & 0 deletions doc/Type/IO/Socket.pod
Expand Up @@ -56,4 +56,12 @@ Closes the socket.
Fails if the socket is not connected.
=head2 method native-descriptor
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 C<setsockopt>.
=end pod

0 comments on commit 4883a73

Please sign in to comment.