source: branches/profile/CORE/arb_cs.h

Last change on this file was 12587, checked in by epruesse, 10 years ago
  • add arb_open_socket()
  • fix bug in arb_shell_expand()
File size: 1.1 KB
Line 
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
19void arb_gethostbyname(const char *name, struct hostent *& he, GB_ERROR& err);
20const char *arb_gethostname();
21
22size_t arb_socket_read(int socket, char* ptr, size_t size);
23ssize_t arb_socket_write(int socket, const char* ptr, size_t size);
24GB_ERROR arb_open_socket(const char* name, bool do_connect, int *fd, char** filename_out);
25#else
26#error arb_cs.h included twice
27#endif // ARB_CS_H
Note: See TracBrowser for help on using the repository browser.