File: connection.h

package info (click to toggle)
ace 7.0.8%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 47,260 kB
  • sloc: cpp: 336,263; perl: 31,547; ansic: 11,648; sh: 1,911; python: 529; yacc: 511; xml: 330; lex: 158; lisp: 116; makefile: 89; csh: 20; tcl: 5
file content (20 lines) | stat: -rw-r--r-- 595 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "global.h"

#ifndef _D_connection
#define _D_connection
class connection {

public:
  int connect(char *hostname_opt_port, int tcp_nodelay, int sockbufsiz);
  int read(void *buffer, size_t maxlen, unsigned int timeout_seconds = 60);
  int write(const void *buffer, size_t maxlen, unsigned int timeout_seconds = 60);
  int write_n(const void *buffer, size_t len, unsigned int timeout_seconds = 60);
  int read_n(void *buffer, size_t maxlen, unsigned int timeout_seconds = 60);
  int close(void);
  ~connection(void);

private:
  ACE_SOCK_Stream stream_;
  char sockbuf[66000];
};
#endif