dm_socket.h revision b7d26471
1/************************************************************
2
3Copyright 1998 by Thomas E. Dickey <dickey@clark.net>
4
5                        All Rights Reserved
6
7Permission is hereby granted, free of charge, to any person obtaining a
8copy of this software and associated documentation files (the
9"Software"), to deal in the Software without restriction, including
10without limitation the rights to use, copy, modify, merge, publish,
11distribute, sublicense, and/or sell copies of the Software, and to
12permit persons to whom the Software is furnished to do so, subject to
13the following conditions:
14
15The above copyright notice and this permission notice shall be included
16in all copies or substantial portions of the Software.
17
18THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
22CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
26Except as contained in this notice, the name(s) of the above copyright
27holders shall not be used in advertising or otherwise to promote the
28sale, use or other dealings in this Software without prior written
29authorization.
30
31********************************************************/
32
33#ifndef _DM_SOCKET_H_
34# define _DM_SOCKET_H_ 1
35
36# include <X11/Xmd.h>
37# include <X11/Xdmcp.h>
38
39# include <sys/socket.h>
40# include <netinet/in.h>
41
42/* ugly, but we need this after socket.h */
43extern ARRAY8Ptr Accept (struct sockaddr *from, int fromlen, CARD16 displayNumber);
44
45# ifdef DEBUG
46extern void PrintSockAddr (struct sockaddr *a, int len);
47#endif
48
49#endif /* _DM_SOCKET_H_ */
50