Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vsnet_socketflags.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15  */
16 
17 #ifndef VSNET_SOCKETFLAGS_H
18 #define VSNET_SOCKETFLAGS_H
19 
20 #include <config.h>
21 #include <iostream>
22 
24 {
25  NONE =0,
26  STDPRI =0, //normal priority
27  LOPRI =0x0010, //lower than normal
28  HIPRI =0x0020, //higher than normal
29  SENDRELIABLE =0, //retransmit if lost
30  SENDANDFORGET=0x0100, //do not retransmit if lost
31  SENT =0x0001,
32  RESENT =0x0002,
33  ACKED =0x0004,
34  COMPRESSED =0x1000,
35  FRAGMENT =0x2000, //low pri packet that is split up
36  LASTFRAGMENT =0x4000, //low pri packet that is split up
37 };
38 
39 std::ostream&operator<<( std::ostream &ostr, PCKTFLAGS flags );
40 
41 #endif /* VSNET_SOCKETFLAGS_H */
42