start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: semop Chapter 5
Function Reference
Next: Reference: sethostent
 

send

send 
socket
, 
msg
, 
flags
, [
dest
]

Sends a message msg on a socket. It takes the same flags as the system call of the same name - see send(2) . On unconnected sockets you must specify a destination dest to send to, in which case send works like sendto(2) . The function returns the number of bytes sent, or the undefined value if there is an error. On error, it puts the error code into $! .

(Some non-Unix systems improperly treat sockets as different objects than ordinary file descriptors, with the result that you must always use send and recv on sockets rather than the standard I/O operators.)


Previous: Reference: semop Perl in a Nutshell Next: Reference: sethostent
Reference: semop Book Index Reference: sethostent

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.