![Symbian Developer Library](../../../../a_stock/images/mainheading.gif)
![]() |
![]() |
|
Interface status: | externallyDefinedApi |
struct sockaddr_in;
Socket address, internet style.
Defined in sockaddr_in
:
sin_addr
IP address. sin_family
AF_INET. sin_port
Port number. . sin_zero
There's also this sin_zero field which some people claim must be set to zero. Ot...Interface status: | externallyDefinedApi | Inherited from: sockaddr_in |
u_short sin_family;
AF_INET.
Interface status: | externallyDefinedApi | Inherited from: sockaddr_in |
u_short sin_port;
Port number. .
Interface status: | externallyDefinedApi | Inherited from: sockaddr_in |
in_addr sin_addr;
IP address.
Interface status: | externallyDefinedApi | Inherited from: sockaddr_in |
char sin_zero[20];
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)
.