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