]> sourceware.org Git - newlib-cygwin.git/blame - winsup/cygserver/transport.cc
Cygwin: cygserver: build with -Wimplicit-fallthrough=4 -Werror
[newlib-cygwin.git] / winsup / cygserver / transport.cc
CommitLineData
282113ba 1/* transport.cc
f449bfef 2
f449bfef
RC
3 Written by Robert Collins <rbtcollins@hotmail.com>
4
1c001dd2 5This file is part of Cygwin.
f449bfef 6
1c001dd2
CS
7This software is a copyrighted work licensed under the terms of the
8Cygwin license. Please consult the file "CYGWIN_LICENSE" for
9details. */
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
24transport_layer_base *
25create_server_transport ()
f449bfef 26{
3fbf471f 27 return new transport_layer_pipes;
f449bfef
RC
28}
29
1c001dd2 30#ifndef __INSIDE_CYGWIN__
f449bfef 31
282113ba 32bool
f449bfef 33transport_layer_base::impersonate_client ()
282113ba
CV
34{
35 return true;
36}
f449bfef 37
282113ba 38bool
f449bfef 39transport_layer_base::revert_to_self ()
282113ba
CV
40{
41 return true;
42}
1c001dd2
CS
43
44#endif /* !__INSIDE_CYGWIN__ */
8c976716
CV
45
46transport_layer_base::~transport_layer_base ()
47{}
This page took 0.256249 seconds and 5 git commands to generate.