00001 /* 00002 * $Id: socket_enum.h 3383 2006-09-11 09:23:42Z riedel $ 00003 * 00004 * Copyright (c) 2004 00005 * Telecooperation Office (TecO), Universitaet Karlsruhe (TH), Germany. 00006 * All rights reserved. 00007 * 00008 * Redistribution and use in source and binary forms, with or without 00009 * modification, are permitted provided that the following conditions 00010 * are met: 00011 * 1. Redistributions of source code must retain the above copyright 00012 * notice, this list of conditions and the following disclaimer. 00013 * 2. Redistributions in binary form must reproduce the above 00014 * copyright notice, this list of conditions and the following 00015 * disclaimer in the documentation and/or other materials provided 00016 * with the distribution. 00017 * 3. Neither the name of the Universitaet Karlsruhe (TH) nor the names 00018 * of its contributors may be used to endorse or promote products 00019 * derived from this software without specific prior written 00020 * permission. 00021 * 00022 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00023 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00024 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 00025 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 00026 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00027 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00028 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00029 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00030 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00031 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00032 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00033 * 00034 * Author(s): Thomas Morper <morper@teco.edu> 00035 */ 00036 00037 #ifndef _SOCKET_ENUM_ 00038 #define _SOCKET_ENUM_ 00039 00053 enum P_SOCKET_OPTIONS 00054 { 00055 SOCKET_CLEANFLAG= 0x00, 00057 SOCKET_BOUND = 0x01, 00062 SOCKET_AUTOACK = 0x02, 00075 SOCKET_RECV_ALL = 0x04, 00077 SOCKET_FRAG = 0x08, 00078 SOCKET_LOWFLAG = 0x0F, 00079 00081 SOCKET_BROADCAST= 0x10, 00083 SOCKET_BLOCKING = 0x20, 00085 SOCKET_FILTER_DUPS = 0x40 00086 }; 00087 00088 00090 enum P_FRAG_FLAG_MASKS 00091 { 00093 FRAG_STATEFLAG= 0x03, 00095 FRAG_ROLEFLAG = 0x04 00096 }; 00097 00099 enum P_FRAG_STATUS 00100 { 00102 FRAG_ACTIVE = 0x00, 00104 FRAG_FINISHED = 0x01, 00106 FRAG_ABORTED = 0x02 00107 }; 00108 00110 enum P_FRAG_ROLE 00111 { 00113 FRAG_SENDER = 0x00, 00115 FRAG_RECEIVER = 0x04 00116 }; 00117 00119 enum P_SOCKET_SENDSTATUS 00120 { 00122 P_SEND_FINISHED = 1, 00124 P_SEND_ACTIVE = 2, 00126 P_SEND_ABORTED = 3, 00127 }; 00128 00129 #endif 00130