sockaddr

The sockaddr structure varies depending on the the protocol selected. The structure below is used with TCP/IP. Other protocols use similar structures.

struct sockaddr_in { 

        short   sin_family;

        u_short sin_port;

        struct  in_addr sin_addr;

        char    sin_zero[8];

};