sockaddr_in Structure

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
sockaddr_in Structure
C
struct sockaddr_in {
  short sin_family;
  WORD sin_port;
  struct in_addr sin_addr;
  char sin_zero[8];
};
Description

In the Internet address family

Members
Members 
Description 
short sin_family; 
Address family; must be AF_INET
WORD sin_port; 
Internet Protocol (IP) port. 
struct in_addr sin_addr; 
IP address in network byte order. 
char sin_zero[8]; 
Padding to make structure the same size as SOCKADDR
Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.