]>
Commit | Line | Data |
---|---|---|
282113ba | 1 | /* transport.cc |
f449bfef | 2 | |
f449bfef RC |
3 | Written by Robert Collins <rbtcollins@hotmail.com> |
4 | ||
1c001dd2 | 5 | This file is part of Cygwin. |
f449bfef | 6 | |
1c001dd2 CS |
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 | /* to allow this to link into cygwin and the .dll, a little magic is needed. */ | |
12 | #ifdef __OUTSIDE_CYGWIN__ | |
13 | #include "woutsup.h" | |
14 | #else | |
15 | #include "winsup.h" | |
16 | #endif | |
f449bfef | 17 | |
f449bfef | 18 | #include <sys/socket.h> |
1c001dd2 | 19 | |
282113ba CV |
20 | #include "transport.h" |
21 | #include "transport_pipes.h" | |
f449bfef | 22 | |
f449bfef | 23 | /* The factory */ |
1c001dd2 CS |
24 | transport_layer_base * |
25 | create_server_transport () | |
f449bfef | 26 | { |
3fbf471f | 27 | return new transport_layer_pipes; |
f449bfef RC |
28 | } |
29 | ||
1c001dd2 | 30 | #ifndef __INSIDE_CYGWIN__ |
f449bfef | 31 | |
282113ba | 32 | bool |
f449bfef | 33 | transport_layer_base::impersonate_client () |
282113ba CV |
34 | { |
35 | return true; | |
36 | } | |
f449bfef | 37 | |
282113ba | 38 | bool |
f449bfef | 39 | transport_layer_base::revert_to_self () |
282113ba CV |
40 | { |
41 | return true; | |
42 | } | |
1c001dd2 CS |
43 | |
44 | #endif /* !__INSIDE_CYGWIN__ */ | |
8c976716 CV |
45 | |
46 | transport_layer_base::~transport_layer_base () | |
47 | {} |