]> sourceware.org Git - newlib-cygwin.git/blame - 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
282113ba 1/* transport_pipes.h
56797078 2
56797078
CV
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
282113ba
CV
11#ifndef _TRANSPORT_PIPES_H
12#define _TRANSPORT_PIPES_H
56797078 13
b079a89e
CV
14#define PIPE_NAME_PREFIX L"\\\\.\\pipe\\cygwin-"
15#define PIPE_NAME_SUFFIX L"-lpc"
16
56797078
CV
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__
282113ba
CV
32 virtual bool impersonate_client ();
33 virtual bool revert_to_self ();
56797078
CV
34#endif
35
36 transport_layer_pipes ();
37 virtual ~transport_layer_pipes ();
38
39private:
b079a89e 40 wchar_t _pipe_name[40];
56797078
CV
41 HANDLE _hPipe;
42 const bool _is_accepted_endpoint;
43 bool _is_listening_endpoint;
44
45 transport_layer_pipes (HANDLE hPipe);
46};
47
282113ba 48#endif /* _TRANSPORT_PIPES_H */
This page took 0.243666 seconds and 6 git commands to generate.