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