]> sourceware.org Git - newlib-cygwin.git/blob - winsup/cygserver/transport.cc
* Merge in cygwin-64bit-branch.
[newlib-cygwin.git] / winsup / cygserver / transport.cc
1 /* transport.cc
2
3 Copyright 2001, 2002, 2003, 2004, 2007 Red Hat Inc.
4
5 Written by Robert Collins <rbtcollins@hotmail.com>
6
7 This file is part of Cygwin.
8
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
19
20 #include <sys/socket.h>
21
22 #include "transport.h"
23 #include "transport_pipes.h"
24
25 /* The factory */
26 transport_layer_base *
27 create_server_transport ()
28 {
29 return new transport_layer_pipes;
30 }
31
32 #ifndef __INSIDE_CYGWIN__
33
34 bool
35 transport_layer_base::impersonate_client ()
36 {
37 return true;
38 }
39
40 bool
41 transport_layer_base::revert_to_self ()
42 {
43 return true;
44 }
45
46 #endif /* !__INSIDE_CYGWIN__ */
47
48 transport_layer_base::~transport_layer_base ()
49 {}
This page took 0.035115 seconds and 5 git commands to generate.