equal
deleted
inserted
replaced
9 extern "C" { |
9 extern "C" { |
10 #include <sys/socket.h> |
10 #include <sys/socket.h> |
11 #include <netinet/in.h> |
11 #include <netinet/in.h> |
12 #include <arpa/inet.h> |
12 #include <arpa/inet.h> |
13 #include <netdb.h> |
13 #include <netdb.h> |
14 } PacketWriter::PacketWriter (char *hostname, int port) |
14 }; |
|
15 |
|
16 PacketWriter::PacketWriter (char *hostname, int port) |
15 { |
17 { |
16 unsigned int size; |
18 unsigned int size; |
17 unsigned int fd; |
19 unsigned int fd; |
18 struct hostent *host = gethostbyname (hostname); |
20 struct hostent *host = gethostbyname (hostname); |
19 |
21 |