minix man page for getpeername

Query: getpeername

OS: minix

Section: 1

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

GETPEERNAME(1)						      General Commands Manual						    GETPEERNAME(1)

NAME
getpeername - get name of connected TCP/IP peer
SYNOPSIS
getpeername [-n] [-p protocol]
DESCRIPTION
getpeername prints the IP address and service name (port number) of the remote peer connected to standard input. The IP address and the service name are printed on the same line, separated by one space.
OPTIONS
-n Don't translate IP addresses and port numbers to names. -p protocol Force getpeername to use protocol as the protocol when translating port numbers to service names. Protocol can be tcp and udp. Normally, getpeername automatically determines what type of socket it is connected to.
SEE ALSO
getpeername(3).
BUGS
Only works on IP sockets. 1997 April 13 GETPEERNAME(1)
Related Man Pages
getpeername(3socket) - opensolaris
getpeername(3xnet) - opensolaris
getpeername(2) - debian
getpeername(2) - opendarwin
getpeername(2) - osx
Similar Topics in the Unix Linux Community
getpeername: Transport endpoint is not connected