Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <in.h>

Struct sockaddr_in

Interface status: externallyDefinedApi

struct sockaddr_in;

Description

Socket address, internet style.

Members

Defined in sockaddr_in:


Member data


sin_family

Interface status: externallyDefinedApi Inherited from: sockaddr_in

u_short sin_family;

Description

AF_INET.


sin_port

Interface status: externallyDefinedApi Inherited from: sockaddr_in

u_short sin_port;

Description

Port number. .


sin_addr

Interface status: externallyDefinedApi Inherited from: sockaddr_in

in_addr sin_addr;

Description

IP address.


sin_zero

Interface status: externallyDefinedApi Inherited from: sockaddr_in

char sin_zero[20];

Description

There's also this sin_zero field which some people claim must be set to zero. Other people don't claim anything about it (the Linux documentation doesn't even mention it at all), and setting it to zero doesn't seem to be actually necessary. So, if you feel like it, set it to zero using memset(TAny *,TInt,unsigned int).