]> git.sesse.net Git - rdpsrv/blob - Xserver/lib/xtrans/transport.c
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / lib / xtrans / transport.c
1 /* $XConsortium: transport.c,v 1.6 94/04/17 20:23:07 mor Exp $ */
2 /* $XFree86: xc/lib/xtrans/transport.c,v 3.3 1996/05/06 05:55:14 dawes Exp $ */
3 /*
4
5 Copyright (c) 1993, 1994  X Consortium
6
7 Permission is hereby granted, free of charge, to any person obtaining
8 a copy of this software and associated documentation files (the
9 "Software"), to deal in the Software without restriction, including
10 without limitation the rights to use, copy, modify, merge, publish,
11 distribute, sublicense, and/or sell copies of the Software, and to
12 permit persons to whom the Software is furnished to do so, subject to
13 the following conditions:
14
15 The above copyright notice and this permission notice shall be included
16 in all copies or substantial portions of the Software.
17
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21 IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
22 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
23 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24 OTHER DEALINGS IN THE SOFTWARE.
25
26 Except as contained in this notice, the name of the X Consortium shall
27 not be used in advertising or otherwise to promote the sale, use or
28 other dealings in this Software without prior written authorization
29 from the X Consortium.
30
31 */
32
33 /* Copyright (c) 1993, 1994 NCR Corporation - Dayton, Ohio, USA
34  *
35  * All Rights Reserved
36  *
37  * Permission to use, copy, modify, and distribute this software and its
38  * documentation for any purpose and without fee is hereby granted, provided
39  * that the above copyright notice appear in all copies and that both that
40  * copyright notice and this permission notice appear in supporting
41  * documentation, and that the name NCR not be used in advertising
42  * or publicity pertaining to distribution of the software without specific,
43  * written prior permission.  NCR makes no representations about the
44  * suitability of this software for any purpose.  It is provided "as is"
45  * without express or implied warranty.
46  *
47  * NCR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
48  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
49  * NO EVENT SHALL NCR BE LIABLE FOR ANY SPECIAL, INDIRECT OR
50  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
51  * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
52  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
53  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
54  */
55
56 #ifdef XSERV_t
57 #include "os.h"
58 #else
59 #ifndef X_NOT_STDC_ENV
60 #include <stdlib.h>
61 #endif
62 #define xalloc(_size)           malloc(_size)
63 #define xcalloc(_num,_size)     calloc(_num,_size)
64 #define xrealloc(_ptr,_size)    realloc(_ptr,_size)
65 #define xfree(_ptr)             free(_ptr)
66 #endif
67
68 #include "Xtransint.h"
69
70 #ifdef DNETCONN
71 #include "Xtransdnet.c"
72 #endif
73 #ifdef LOCALCONN
74 #include "Xtranslcl.c"
75 #endif
76 #ifdef OS2PIPECONN
77 #include "Xtransos2.c"
78 #endif
79 #if defined(TCPCONN) || defined(UNIXCONN)
80 #include "Xtranssock.c"
81 #endif
82 #ifdef STREAMSCONN
83 #include "Xtranstli.c"
84 #endif
85 #if defined(AMRPCCONN) || defined(AMTCPCONN)
86 #include "Xtransam.c"
87 #endif
88 #if defined(MNX_TCPCONN)
89 #include "Xtransmnx.c"
90 #endif
91 #include "Xtrans.c"
92 #include "Xtransutil.c"