Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

sockaddr_in c

#include <netinet/in.h>

struct sockaddr_in {
    short            sin_family;   // e.g. AF_INET
    unsigned short   sin_port;     // e.g. htons(3490)
    struct in_addr   sin_addr;     // see struct in_addr, below
    char             sin_zero[8];  // zero this if you want to
};

struct in_addr {
    unsigned long s_addr;  // load with inet_aton()
};
Source by www.gta.ufrj.br #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
6+3 =