Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / ACE / apps / JAWS / stress_testing / connection.h
blobf9aa8286b0a182034333e2bdef4a5af193d80fc5
1 #include "global.h"
3 #ifndef _D_connection
4 #define _D_connection
5 class connection {
6 public:
7 int connect(char *hostname_opt_port, int tcp_nodelay, int sockbufsiz);
8 int read(void *buffer, size_t maxlen, unsigned int timeout_seconds = 60);
9 int write(const void *buffer, size_t maxlen, unsigned int timeout_seconds = 60);
10 int write_n(const void *buffer, size_t len, unsigned int timeout_seconds = 60);
11 int read_n(void *buffer, size_t maxlen, unsigned int timeout_seconds = 60);
12 int close();
13 ~connection();
15 private:
16 ACE_SOCK_Stream stream_;
17 char sockbuf[66000];
19 #endif