]> sourceware.org Git - newlib-cygwin.git/blame_incremental - winsup/cygserver/transport_pipes.h
newlib: Add more FreeBSD files for non LDBL_EQ_DBL support
[newlib-cygwin.git] / winsup / cygserver / transport_pipes.h
... / ...
CommitLineData
1/* transport_pipes.h
2
3 Written by Robert Collins <rbtcollins@hotmail.com>
4
5This file is part of Cygwin.
6
7This software is a copyrighted work licensed under the terms of the
8Cygwin license. Please consult the file "CYGWIN_LICENSE" for
9details. */
10
11#ifndef _TRANSPORT_PIPES_H
12#define _TRANSPORT_PIPES_H
13
14#define PIPE_NAME_PREFIX L"\\\\.\\pipe\\cygwin-"
15#define PIPE_NAME_SUFFIX L"-lpc"
16
17/* Named pipes based transport, for security on NT */
18class transport_layer_pipes : public transport_layer_base
19{
20public:
21#ifndef __INSIDE_CYGWIN__
22 virtual int listen ();
23 virtual class transport_layer_pipes *accept (bool *recoverable);
24#endif
25
26 virtual void close ();
27 virtual ssize_t read (void *buf, size_t len);
28 virtual ssize_t write (void *buf, size_t len);
29 virtual int connect ();
30
31#ifndef __INSIDE_CYGWIN__
32 virtual bool impersonate_client ();
33 virtual bool revert_to_self ();
34#endif
35
36 transport_layer_pipes ();
37 virtual ~transport_layer_pipes ();
38
39private:
40 wchar_t _pipe_name[40];
41 HANDLE _hPipe;
42 const bool _is_accepted_endpoint;
43 bool _is_listening_endpoint;
44
45 transport_layer_pipes (HANDLE hPipe);
46};
47
48#endif /* _TRANSPORT_PIPES_H */
This page took 0.020921 seconds and 6 git commands to generate.