Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

pisocket.h

Go to the documentation of this file.
00001 /*
00002  * Title:   pisocket.h
00003  * Created: Tue Sep 24 18:12:15 2002
00004  * Authors: Gilbert Baumann, Markus Noga, Tim Weyrich
00005  *
00006  * Copyright (c) 2000--2002
00007  * Gilbert Baumann <unk6@rz.uni-karlsruhe.de>
00008  * Markus Noga <markus@noga.de>
00009  * Tim Weyrich <weyrich@inf.ethz.ch>
00010  *
00011  * This file is part of the Pointshop3D system.
00012  * See http: *www.pointshop3d.com/ for more information.
00013  *
00014  * This program is free software; you can redistribute it and/or
00015  * modify it under the terms of the GNU Lesser General Public
00016  * License as published by the Free Software Foundation; either
00017  * version 2.1 of the License, or (at your option) any later
00018  * version.
00019  * 
00020  * This program is distributed in the hope that it will be useful,
00021  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023  * GNU Lesser General Public License for more details.
00024  * 
00025  * You should have received a copy of the GNU Lesser General
00026  * Public License along with this library; if not, write to the
00027  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
00028  * Boston, MA 02111-1307 USA
00029  * 
00030  * Contact info@pointshop3d.com if any conditions of this
00031  * licensing are not clear to you.
00032  */
00033 
00034 #ifndef __pisocket_h__
00035 #define __pisocket_h__
00036 
00037 #include <pitypes.h>
00038 #include <pisystem.h>
00039 
00040 #ifdef _WIN32
00041 //# include <win32windows.h>
00042 # include <winsock2.h>
00043 # include <sys/stat.h>
00044 
00045 #define  S_IRUSR   _S_IREAD
00046 #define  S_IREAD   _S_IREAD
00047 #define  S_IWUSR   _S_IWRITE
00048 #define  S_IWRITE  _S_IWRITE
00049 #define  S_IXUSR   0100
00050 #define  S_IEXEC   0100
00051 #define  S_IRWXU   (S_IRUSR | S_IWUSR | S_IXUSR)
00052 #define  S_IRGRP   040
00053 #define  S_IWGRP   020
00054 
00055 #else
00056 # include <arpa/inet.h>
00057 # include <netdb.h>
00058 # include <netinet/in.h>
00059 # include <sys/stat.h>
00060 # include <sys/socket.h>
00061 # include <sys/wait.h>
00062 #endif
00063 
00064 #ifdef _SGIAPI
00065 #  define  socklen_t int
00066 #endif
00067 
00068 #endif /* __pisocket_h__ */

Generated on Mon Sep 30 15:50:41 2002 for PointShop by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002