BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJLIB Reference

#include <sock.h>

Data Fields

pj_uint16_t sin_family
 
pj_uint16_t sin_port
 
pj_in_addr sin_addr
 
char sin_zero_pad [8]
 

Detailed Description

This structure describes Internet socket address. If PJ_SOCKADDR_HAS_LEN is not zero, then sin_zero_len member is added to this struct. As far the application is concerned, the value of this member will always be zero. Internally, PJLIB may modify the value before calling OS socket API, and reset the value back to zero before returning the struct to application.

Forward declaration.

Field Documentation

◆ sin_addr

pj_in_addr pj_sockaddr_in::sin_addr

IP address.

◆ sin_family

pj_uint16_t pj_sockaddr_in::sin_family

Address family.

◆ sin_port

pj_uint16_t pj_sockaddr_in::sin_port

Transport layer port number.

◆ sin_zero_pad

char pj_sockaddr_in::sin_zero_pad[8]

Padding.


The documentation for this struct was generated from the following file:

 


PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.