You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
711 B
28 lines
711 B
#ifndef __NET_SOCKET_MISK_HEADER__
|
|
#define __NET_SOCKET_MISK_HEADER__
|
|
|
|
#include <netinet/in.h>
|
|
#include <stdio.h>
|
|
#include <sys/socket.h>
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
|
|
typedef struct
|
|
{
|
|
short sin_family; /* must be AF_INET */
|
|
unsigned short sin_port;
|
|
struct in_addr sin_addr;
|
|
char sin_zero[8]; /* Not used, must be zero */
|
|
} sockaddr_in_ex;
|
|
|
|
struct hostent
|
|
{
|
|
char * h_name; /* official name of host */
|
|
char ** h_aliases; /* alias list */
|
|
int h_addrtype; /* host address type */
|
|
int h_length; /* length of address */
|
|
char ** h_addr_list; /* list of addresses from name server */
|
|
#define h_addr h_addr_list[0] /* address, for backward compatiblity */
|
|
};
|
|
|
|
#endif
|