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

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: inet_ntoa Chapter 13
Sockets
Next: Reference: sockaddr_un
 

sockaddr_in

sockaddr_in (

port

, 

addr_string

)
pack_sockaddr_in 
(port, addr_string)

Takes a port number and a four-byte addr_string (as returned by inet_aton ) and returns the socket address structure including those arguments packed with the AF_INET argument. This structure is normally what you need for the arguments in bind , connect , and send , and is also returned by getpeername , getsockname , and recv .


Previous: Reference: inet_ntoa Perl in a Nutshell Next: Reference: sockaddr_un
Reference: inet_ntoa Book Index Reference: sockaddr_un

Library Navigation Links

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