Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: socket.h

connect()

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

Description

Used by a client program to establish communication with a remote entity

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.