12 #include <netinet/in.h>
14 #define D2_SOCKBUF_SIZE 8000000
16 typedef unsigned short u_short;
30 int put(
int sock,
char* data,
int len);
31 int put_wordbuf(
int sock,
int* data,
int len);
32 int get(
int sock,
char* data,
int len);
33 int get_wordbuf(
int sock,
int* data,
int len);
35 int get_pxd(
int sock,
char* data,
int len);
38 int read_data(
int sock,
char* data,
int len);
39 int write_data(
int sock,
char* data,
int len);
53 int reconnect(
int ntry);
61 void sock(
int sockid);
63 int get(
char* data,
int len);
64 int get_wordbuf(
int* data,
int len);
65 int read(
char* data,
int len);
66 int put(
char* data,
int len);
67 int write(
char* data,
int len);
75 struct sockaddr_in m_sa;
89 int reconnect(
int ntry);
91 int put(
char* data,
int len);
92 int put_wordbuf(
int* data,
int len);
93 int write(
char* data,
int len);
94 int get(
char* data,
int len);
95 int get_pxd(
char* data,
int len);
96 int read(
char* data,
int len);
101 void sock(
int sockid);
107 struct hostent* m_hp;
108 struct sockaddr_in m_sa;
int get_pxd(int sock, char *data, int len)
Abstract base class for different kinds of events.