1629baa8cSmrg/************************************************************ 2629baa8cSmrg 3629baa8cSmrgCopyright 1998 by Thomas E. Dickey <dickey@clark.net> 4629baa8cSmrg 5629baa8cSmrg All Rights Reserved 6629baa8cSmrg 7629baa8cSmrgPermission is hereby granted, free of charge, to any person obtaining a 8629baa8cSmrgcopy of this software and associated documentation files (the 9629baa8cSmrg"Software"), to deal in the Software without restriction, including 10629baa8cSmrgwithout limitation the rights to use, copy, modify, merge, publish, 11629baa8cSmrgdistribute, sublicense, and/or sell copies of the Software, and to 12629baa8cSmrgpermit persons to whom the Software is furnished to do so, subject to 13629baa8cSmrgthe following conditions: 14629baa8cSmrg 15629baa8cSmrgThe above copyright notice and this permission notice shall be included 16629baa8cSmrgin all copies or substantial portions of the Software. 17629baa8cSmrg 18629baa8cSmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19629baa8cSmrgOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20629baa8cSmrgMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 21629baa8cSmrgIN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY 22629baa8cSmrgCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 23629baa8cSmrgTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 24629baa8cSmrgSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25629baa8cSmrg 26629baa8cSmrgExcept as contained in this notice, the name(s) of the above copyright 27629baa8cSmrgholders shall not be used in advertising or otherwise to promote the 28629baa8cSmrgsale, use or other dealings in this Software without prior written 29629baa8cSmrgauthorization. 30629baa8cSmrg 31629baa8cSmrg********************************************************/ 32629baa8cSmrg 33629baa8cSmrg#ifndef _DM_SOCKET_H_ 34629baa8cSmrg# define _DM_SOCKET_H_ 1 35629baa8cSmrg 36629baa8cSmrg# include <X11/Xmd.h> 37629baa8cSmrg# include <X11/Xdmcp.h> 38629baa8cSmrg 39629baa8cSmrg# include <sys/socket.h> 40629baa8cSmrg# include <netinet/in.h> 41629baa8cSmrg 42629baa8cSmrg/* ugly, but we need this after socket.h */ 43629baa8cSmrgextern ARRAY8Ptr Accept (struct sockaddr *from, int fromlen, CARD16 displayNumber); 44629baa8cSmrg 45b7d26471Smrg# ifdef DEBUG 46b7d26471Smrgextern void PrintSockAddr (struct sockaddr *a, int len); 47b7d26471Smrg#endif 48b7d26471Smrg 49629baa8cSmrg#endif /* _DM_SOCKET_H_ */ 50