ARB
arb_cs.h
Go to the documentation of this file.
1 // ============================================================= //
2 // //
3 // File : arb_cs.h //
4 // Purpose : Basics for client/server communication //
5 // //
6 // Coded by Ralf Westram (coder@reallysoft.de) in March 2011 //
7 // Institute of Microbiology (Technical University Munich) //
8 // http://www.arb-home.de/ //
9 // //
10 // ============================================================= //
11 
12 #ifndef ARB_CS_H
13 #define ARB_CS_H
14 
15 #ifndef ARB_CORE_H
16 #include "arb_core.h"
17 #endif
18 
19 const char *arb_gethostname();
20 
21 size_t arb_socket_read(int socket, char* ptr, size_t size);
22 ssize_t arb_socket_write(int socket, const char* ptr, size_t size);
23 GB_ERROR arb_open_socket(const char* name, bool do_connect, int *fd, char** filename_out);
24 #else
25 #error arb_cs.h included twice
26 #endif // ARB_CS_H
const char * GB_ERROR
Definition: arb_core.h:25
const char * arb_gethostname()
Definition: arb_cs.cxx:51
GB_ERROR arb_open_socket(const char *name, bool do_connect, int *fd, char **filename_out)
Definition: arb_cs.cxx:124
size_t arb_socket_read(int socket, char *ptr, size_t size)
Definition: arb_cs.cxx:61
ssize_t arb_socket_write(int socket, const char *ptr, size_t size)
Definition: arb_cs.cxx:75