-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathclient_server.hpp
More file actions
27 lines (22 loc) · 982 Bytes
/
client_server.hpp
File metadata and controls
27 lines (22 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/******************************************************************************
* MODULE : client_server.hpp
* DESCRIPTION: TeXmacs clients and servers
* COPYRIGHT : (C) 2007 Joris van der Hoeven
*******************************************************************************
* This software falls under the GNU general public license version 3 or later.
* It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
* in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
******************************************************************************/
#ifndef CLIENT_SERVER_H
#define CLIENT_SERVER_H
#include "string.hpp"
void server_start ();
void server_stop ();
string server_read (int fd);
void server_write (int fd, string s);
bool server_started ();
int client_start (string host);
void client_stop (int fd);
string client_read (int fd);
void client_write (int fd, string s);
#endif // defined CLIENT_SERVER_H