Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
IPADDR_PORT(3)		   libdill Library Functions		IPADDR_PORT(3)

NAME
       ipaddr_port - returns the port part of the address

SYNOPSIS
	      #include <libdill.h>

	      int ipaddr_port(
		  const	struct ipaddr* addr);

DESCRIPTION
       Returns the port	part of	the address.

       addr: IP	address	object.

       This  function  is  not	available  if  libdill is compiled with	--dis-
       able-sockets option.

RETURN VALUE
       The port	number.

ERRORS
       None.

EXAMPLE
	      int port = ipaddr_port(&addr);

SEE ALSO
       ipaddr_equal(3) ipaddr_family(3)	 ipaddr_len(3)	ipaddr_local(3)	 ipad-
       dr_remote(3)   ipaddr_remotes(3)	 ipaddr_setport(3)  ipaddr_sockaddr(3)
       ipaddr_str(3)

libdill								IPADDR_PORT(3)

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | ERRORS | EXAMPLE | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=ipaddr_port&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help