Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: socket.h

getsockname()

IMPORT_C int getsockname(int, struct sockaddr *, size_t *);

Description

Returns the current name for the specified socket. The namelen parameter should be initialized to indicate the amount of space pointed to by name. When returned, namelen contains the actual size (in bytes) of the name returned.

Parameters

int

Is the integer descriptor of the desired socket.

struct sockaddr *

Points to a sockaddr structure containing the socket address.

size_t *

Points to an integer that states the address length in bytes.

Return value

int

On Success, returns 0. On Failure, returns -1, errno may be set.