Dallas Semiconductor DS80C400 C Libraries Home Page

Main Page   Data Structures   File List   Data Fields   Globals  

sockaddr Struct Reference

#include <rom400_sock.h>


Detailed Description

Structure for an IP address. For a normal, IPv4 (4 byte) address, set the address in sin_addr[12,13,14,15], with the most significant byte at sin_addr[12]. Notice the 3 byte bogus_ptr to deal with the TNI native interface overhead.


Data Fields

unsigned char bogus_ptr [3]
 Overhead for TNI native interface.

unsigned char sin_addr [16]
 IP address. IPv4 address is in sin_addr[12-15] with MSB at sin_addr[12].

unsigned int sin_port
 16 bit port number for the socket.

unsigned char sin_family
 Ignored by DS80C400 implementation.


The documentation for this struct was generated from the following file:
Copyright 2004 Dallas Semiconductor, Inc.. Documentation generated by Doxygen.