Change 16079 by ams@lustre on 2002/04/22 15:59:55
Subject: {PATCH docs] sockatmark
From: Mark-Jason Dominus <[EMAIL PROTECTED]>
Date: Mon, 22 Apr 2002 02:43:42 -0400
Message-Id: <[EMAIL PROTECTED]>
Affected files ...
.... //depot/perl/ext/IO/lib/IO/Socket.pm#28 edit
.... //depot/perl/pod/perlfunc.pod#316 edit
Differences ...
==== //depot/perl/ext/IO/lib/IO/Socket.pm#28 (text) ====
Index: perl/ext/IO/lib/IO/Socket.pm
--- perl/ext/IO/lib/IO/Socket.pm.~1~ Mon Apr 22 10:15:05 2002
+++ perl/ext/IO/lib/IO/Socket.pm Mon Apr 22 10:15:05 2002
@@ -416,7 +416,8 @@
use IO::Socket 'sockatmark';
This allows for a more traditional use of sockatmark() as a procedural
-socket function.
+socket function. If your system does not support sockatmark(), the
+C<use> declaration will fail at compile time.
=item connected
==== //depot/perl/pod/perlfunc.pod#316 (text) ====
Index: perl/pod/perlfunc.pod
--- perl/pod/perlfunc.pod.~1~ Mon Apr 22 10:15:05 2002
+++ perl/pod/perlfunc.pod Mon Apr 22 10:15:05 2002
@@ -172,7 +172,7 @@
C<accept>, C<bind>, C<connect>, C<getpeername>, C<getsockname>,
C<getsockopt>, C<listen>, C<recv>, C<send>, C<setsockopt>, C<shutdown>,
-C<sockatmark>, C<socket>, C<socketpair>
+C<socket>, C<socketpair>
=item System V interprocess communication functions
@@ -234,7 +234,7 @@
C<semget>, C<semop>, C<setgrent>, C<sethostent>, C<setnetent>,
C<setpgrp>, C<setpriority>, C<setprotoent>, C<setpwent>,
C<setservent>, C<setsockopt>, C<shmctl>, C<shmget>, C<shmread>,
-C<shmwrite>, C<sockatmark>, C<socket>, C<socketpair>,
+C<shmwrite>, C<socket>, C<socketpair>,
C<stat>, C<symlink>, C<syscall>, C<sysopen>, C<system>,
C<times>, C<truncate>, C<umask>, C<unlink>,
C<utime>, C<wait>, C<waitpid>
@@ -4430,26 +4430,6 @@
See also the POSIX module's C<pause> function.
-=item sockatmark SOCKET
-
-Returns true if the socket is positioned at the out-of-band mark
-(also known as the urgent data mark), false otherwise. Use right
-after reading from the socket.
-
-Not available directly, one has to import the function from
-the IO::Socket extension
-
- use IO::Socket 'sockatmark';
-
-Even this doesn't guarantee that sockatmark() really is available,
-though, because sockatmark() is a relatively recent addition to
-the family of socket functions. If it is unavailable, attempt to
-use it will fail
-
- IO::Socket::atmark not implemented on this architecture ...
-
-See also L<IO::Socket>.
-
=item socket SOCKET,DOMAIN,TYPE,PROTOCOL
Opens a socket of the specified kind and attaches it to filehandle
End of Patch.