2005-12-17 13:02:24 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <netinet/tcp.h>
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <arpa/inet.h>
|
|
|
|
#include <netdb.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <signal.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <sys/resource.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <regex.h>
|
|
|
|
#include <syslog.h>
|
|
|
|
|
|
|
|
|
2021-04-02 08:33:38 +00:00
|
|
|
int main() {
|
2005-12-17 13:02:24 +00:00
|
|
|
printf("sizeof sockaddr=%d\n", sizeof(struct sockaddr));
|
|
|
|
printf("sizeof sockaddr_in=%d\n", sizeof(struct sockaddr_in));
|
|
|
|
printf("sizeof sockaddr_in6=%d\n", sizeof(struct sockaddr_in6));
|
2021-04-02 08:33:38 +00:00
|
|
|
return 0;
|
2005-12-17 13:02:24 +00:00
|
|
|
}
|