![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Get the name of a socket
#include <sys/socket.h>
int getsockname( int s,
struct sockaddr * name,
socklen_t * namelen );
libsocket
Use the -l socket option to qcc to link against this library.
The getsockname() function returns the current name for the specified socket.
| Safety: | |
|---|---|
| Cancellation point | Yes |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
![]() |
![]() |
![]() |
![]() |