Movatterモバイル変換


[0]ホーム

URL:


functions /send
(source,CPAN)
You are viewing the version of this documentation from Perl 5.8.6.View the latest version
#send SOCKET,MSG,FLAGS,TO
#send SOCKET,MSG,FLAGS

Sends a message on a socket. Attempts to send the scalar MSG to the SOCKET filehandle. Takes the same flags as the system call of the same name. On unconnected sockets you must specify a destination to send TO, in which case it does a Csendto. Returns the number of characters sent, or the undefined value if there is an error. The C system call sendmsg(2) is currently unimplemented. See"UDP: Message Passing" in perlipc for examples.

Note thecharacters: depending on the status of the socket, either (8-bit) bytes or characters are sent. By default all sockets operate on bytes, but for example if the socket has been changed using binmode() to operate with the:utf8 I/O layer (see"open", or theopen pragma,open), the I/O will operate on UTF-8 encoded Unicode characters, not bytes. Similarly for the:encoding pragma: in that case pretty much any characters can be sent.

Perldoc Browser is maintained by Dan Book (DBOOK). Please contact him via theGitHub issue tracker oremail regarding any issues with the site itself, search, or rendering of documentation.

The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via thePerl issue tracker, themailing list, orIRC to report any issues with the contents or format of the documentation.


[8]ページ先頭

©2009-2025 Movatter.jp