]> sourceware.org Git - newlib-cygwin.git/blob - winsup/cygserver/transport.h
Cygwin: Remove AC_PROG_MAKE_SET
[newlib-cygwin.git] / winsup / cygserver / transport.h
1 /* transport.h
2
3 Written by Robert Collins <rbtcollins@hotmail.com>
4
5 This file is part of Cygwin.
6
7 This software is a copyrighted work licensed under the terms of the
8 Cygwin license. Please consult the file "CYGWIN_LICENSE" for
9 details. */
10
11 #ifndef _TRANSPORT_H
12 #define _TRANSPORT_H
13
14 class transport_layer_base *create_server_transport ();
15
16 class transport_layer_base
17 {
18 public:
19 #ifndef __INSIDE_CYGWIN__
20 virtual int listen () = 0;
21 virtual class transport_layer_base *accept (bool *recoverable) = 0;
22 #endif
23
24 virtual void close () = 0;
25 virtual ssize_t read (void *buf, size_t len) = 0;
26 virtual ssize_t write (void *buf, size_t len) = 0;
27 virtual int connect () = 0;
28
29 #ifndef __INSIDE_CYGWIN__
30 virtual bool impersonate_client ();
31 virtual bool revert_to_self ();
32 #endif
33
34 virtual ~transport_layer_base ();
35 };
36
37 #endif /* _TRANSPORT_H */
This page took 0.035661 seconds and 5 git commands to generate.