12#include <netinet/in.h>
14#define D2_SOCKBUF_SIZE 8000000
16typedef 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);
59 void sock(
int sockid);
61 int get(
char* data,
int len);
62 int get_wordbuf(
int* data,
int len);
63 int read(
char* data,
int len);
64 int put(
char* data,
int len);
65 int write(
char* data,
int len);
83 int reconnect(
int ntry);
85 int put(
char* data,
int len);
86 int put_wordbuf(
int* data,
int len);
87 int write(
char* data,
int len);
88 int get(
char* data,
int len);
89 int get_pxd(
char* data,
int len);
90 int read(
char* data,
int len);
95 void sock(
int sockid);
101 struct hostent* m_hp;
102 struct sockaddr_in m_sa;
int get_pxd(int sock, char *data, int len)
Abstract base class for different kinds of events.