- Timestamp:
- 07/14/11 23:29:13 (13 years ago)
- Location:
- ps/trunk/libraries/enet
- Files:
-
- 14 edited
-
build.sh (modified) (1 diff)
-
include/enet/enet.h (modified) (3 diffs)
-
include/enet/protocol.h (modified) (1 diff)
-
src/ChangeLog (modified) (2 diffs)
-
src/Makefile.am (modified) (1 diff)
-
src/Makefile.in (modified) (1 diff)
-
src/aclocal.m4 (modified) (1 diff)
-
src/configure (modified) (95 diffs)
-
src/configure.ac (modified) (1 diff)
-
src/host.c (modified) (1 diff)
-
src/include/enet/enet.h (modified) (3 diffs)
-
src/include/enet/protocol.h (modified) (1 diff)
-
src/peer.c (modified) (14 diffs)
-
src/protocol.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/libraries/enet/build.sh
r9767 r9822 16 16 cd ../ 17 17 18 mkdir -p lib/ 19 18 20 if [ "`uname -s`" = "Darwin" ] 19 21 then -
ps/trunk/libraries/enet/include/enet/enet.h
r9574 r9822 26 26 #define ENET_VERSION_MAJOR 1 27 27 #define ENET_VERSION_MINOR 3 28 #define ENET_VERSION_PATCH 128 #define ENET_VERSION_PATCH 3 29 29 #define ENET_VERSION_CREATE(major, minor, patch) (((major)<<16) | ((minor)<<8) | (patch)) 30 30 #define ENET_VERSION ENET_VERSION_CREATE(ENET_VERSION_MAJOR, ENET_VERSION_MINOR, ENET_VERSION_PATCH) … … 97 97 ENET_PACKET_FLAG_UNSEQUENCED = (1 << 1), 98 98 /** packet will not allocate data, and user must supply it instead */ 99 ENET_PACKET_FLAG_NO_ALLOCATE = (1 << 2) 99 ENET_PACKET_FLAG_NO_ALLOCATE = (1 << 2), 100 /** packet will be fragmented using unreliable (instead of reliable) sends 101 * if it exceeds the MTU */ 102 ENET_PACKET_FLAG_UNRELIABLE_FRAGMENT = (1 << 3) 100 103 } ENetPacketFlag; 101 104 … … 219 222 enet_uint16 reliableWindows [ENET_PEER_RELIABLE_WINDOWS]; 220 223 enet_uint16 incomingReliableSequenceNumber; 224 enet_uint16 incomingUnreliableSequenceNumber; 221 225 ENetList incomingReliableCommands; 222 226 ENetList incomingUnreliableCommands; -
ps/trunk/libraries/enet/include/enet/protocol.h
r9574 r9822 34 34 ENET_PROTOCOL_COMMAND_BANDWIDTH_LIMIT = 10, 35 35 ENET_PROTOCOL_COMMAND_THROTTLE_CONFIGURE = 11, 36 ENET_PROTOCOL_COMMAND_COUNT = 12, 36 ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE_FRAGMENT = 12, 37 ENET_PROTOCOL_COMMAND_COUNT = 13, 37 38 38 39 ENET_PROTOCOL_COMMAND_MASK = 0x0F -
ps/trunk/libraries/enet/src/ChangeLog
r9573 r9822 1 ENet 1.3.3 (June 28, 2011): 2 3 * fixed bug with simultaneous disconnects not dispatching events 4 5 ENet 1.3.2 (May 31, 2011): 6 7 * added support for unreliable packet fragmenting via the packet flag 8 ENET_PACKET_FLAG_UNRELIABLE_FRAGMENT 9 * fixed regression in unreliable packet queuing 10 * added check against received port to limit some forms of IP-spoofing 11 1 12 ENet 1.3.1 (February 10, 2011): 2 13 … … 21 32 earlier. The enet_host_connect and enet_host_create API functions require 22 33 supplying additional parameters. 34 35 ENet 1.2.5 (June 28, 2011): 36 37 * fixed bug with simultaneous disconnects not dispatching events 38 39 ENet 1.2.4 (May 31, 2011): 40 41 * fixed regression in unreliable packet queuing 42 * added check against received port to limit some forms of IP-spoofing 43 44 ENet 1.2.3 (February 10, 2011): 45 46 * fixed bug in tracking reliable data in transit 23 47 24 48 ENet 1.2.2 (June 5, 2010): -
ps/trunk/libraries/enet/src/Makefile.am
r9573 r9822 17 17 libenet_la_SOURCES = callbacks.c compress.c host.c list.c packet.c peer.c protocol.c unix.c win32.c 18 18 # see info '(libtool) Updating version info' before making a release 19 libenet_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1: 1:019 libenet_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:3:0 20 20 INCLUDES = -Iinclude 21 21 -
ps/trunk/libraries/enet/src/Makefile.in
r9573 r9822 243 243 libenet_la_SOURCES = callbacks.c compress.c host.c list.c packet.c peer.c protocol.c unix.c win32.c 244 244 # see info '(libtool) Updating version info' before making a release 245 libenet_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1: 1:0245 libenet_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:3:0 246 246 INCLUDES = -Iinclude 247 247 ACLOCAL_AMFLAGS = -Im4 -
ps/trunk/libraries/enet/src/aclocal.m4
r9573 r9822 14 14 m4_ifndef([AC_AUTOCONF_VERSION], 15 15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.6 7],,17 [m4_warning([this file was generated for autoconf 2.6 7.16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],, 17 [m4_warning([this file was generated for autoconf 2.65. 18 18 You have another version of autoconf. It may work, but is not guaranteed to. 19 19 If you have problems, you may need to regenerate the build system entirely. 20 20 To do so, use the procedure documented by the package, typically `autoreconf'.])]) 21 22 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 23 # 24 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. 25 # Written by Scott James Remnant, 2004. 26 # 27 # This file is free software; the Free Software Foundation gives 28 # unlimited permission to copy and/or distribute it, with or without 29 # modifications, as long as this notice is preserved. 30 31 # serial 5 lt~obsolete.m4 32 33 # These exist entirely to fool aclocal when bootstrapping libtool. 34 # 35 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) 36 # which have later been changed to m4_define as they aren't part of the 37 # exported API, or moved to Autoconf or Automake where they belong. 38 # 39 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 40 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 41 # using a macro with the same name in our local m4/libtool.m4 it'll 42 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define 43 # and doesn't know about Autoconf macros at all.) 44 # 45 # So we provide this file, which has a silly filename so it's always 46 # included after everything else. This provides aclocal with the 47 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 48 # because those macros already exist, or will be overwritten later. 49 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 50 # 51 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 52 # Yes, that means every name once taken will need to remain here until 53 # we give up compatibility with versions before 1.7, at which point 54 # we need to keep only those names which we still refer to. 55 56 # This is to help aclocal find these macros, as it can't see m4_define. 57 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 58 59 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 60 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 61 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 62 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 63 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 64 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 65 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 66 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 67 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 68 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 69 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 70 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 71 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 72 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 73 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 74 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 75 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 76 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 77 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 78 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 79 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 80 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 81 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 82 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 83 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 84 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 85 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 86 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 87 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 88 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 89 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 90 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 91 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 92 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 93 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 94 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 95 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 96 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 97 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 98 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 99 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 100 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 101 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 102 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 103 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 104 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 105 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 106 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 107 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 108 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 109 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 110 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 111 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 112 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 113 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) 114 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) 115 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) 116 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) 117 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) 118 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) 119 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) 21 120 22 121 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. -
ps/trunk/libraries/enet/src/configure
r9573 r9822 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.6 7 for libenet 1.3.1.3 # Generated by GNU Autoconf 2.65 for libenet 1.3.3. 4 4 # 5 5 # 6 6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 , 2010 Free Software8 # Foundation,Inc.7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 8 # Inc. 9 9 # 10 10 # … … 317 317 done 318 318 test -z "$as_dirs" || eval "mkdir $as_dirs" 319 } || test -d "$as_dir" || as_fn_error $?"cannot create directory $as_dir"319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 320 320 321 321 … … 357 357 358 358 359 # as_fn_error STATUSERROR [LINENO LOG_FD]360 # --------------------------------- -------359 # as_fn_error ERROR [LINENO LOG_FD] 360 # --------------------------------- 361 361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 362 362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 363 # script with STATUS, using 1 if that was 0.363 # script with status $?, using 1 if that was 0. 364 364 as_fn_error () 365 365 { 366 as_status=$ 1; test $as_status -eq 0 && as_status=1367 if test "$ 4"; then368 as_lineno=${as_lineno-"$ 3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $ 2" >&$4366 as_status=$?; test $as_status -eq 0 && as_status=1 367 if test "$3"; then 368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 370 370 fi 371 $as_echo "$as_me: error: $ 2" >&2371 $as_echo "$as_me: error: $1" >&2 372 372 as_fn_exit $as_status 373 373 } # as_fn_error … … 680 680 681 681 # Name of the host. 682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 683 683 # so uname gets run too. 684 684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` … … 699 699 PACKAGE_NAME='libenet' 700 700 PACKAGE_TARNAME='libenet' 701 PACKAGE_VERSION='1.3. 1'702 PACKAGE_STRING='libenet 1.3. 1'701 PACKAGE_VERSION='1.3.3' 702 PACKAGE_STRING='libenet 1.3.3' 703 703 PACKAGE_BUGREPORT='' 704 704 PACKAGE_URL='' … … 932 932 933 933 case $ac_option in 934 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 935 *=) ac_optarg= ;; 936 *) ac_optarg=yes ;; 934 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 935 *) ac_optarg=yes ;; 937 936 esac 938 937 … … 979 978 # Reject names that are not valid shell variable names. 980 979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 981 as_fn_error $?"invalid feature name: $ac_useropt"980 as_fn_error "invalid feature name: $ac_useropt" 982 981 ac_useropt_orig=$ac_useropt 983 982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` … … 1005 1004 # Reject names that are not valid shell variable names. 1006 1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1007 as_fn_error $?"invalid feature name: $ac_useropt"1006 as_fn_error "invalid feature name: $ac_useropt" 1008 1007 ac_useropt_orig=$ac_useropt 1009 1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` … … 1209 1208 # Reject names that are not valid shell variable names. 1210 1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1211 as_fn_error $?"invalid package name: $ac_useropt"1210 as_fn_error "invalid package name: $ac_useropt" 1212 1211 ac_useropt_orig=$ac_useropt 1213 1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` … … 1225 1224 # Reject names that are not valid shell variable names. 1226 1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1227 as_fn_error $?"invalid package name: $ac_useropt"1226 as_fn_error "invalid package name: $ac_useropt" 1228 1227 ac_useropt_orig=$ac_useropt 1229 1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` … … 1255 1254 x_libraries=$ac_optarg ;; 1256 1255 1257 -*) as_fn_error $?"unrecognized option: \`$ac_option'1258 Try \`$0 --help' for more information "1256 -*) as_fn_error "unrecognized option: \`$ac_option' 1257 Try \`$0 --help' for more information." 1259 1258 ;; 1260 1259 … … 1264 1263 case $ac_envvar in #( 1265 1264 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1266 as_fn_error $?"invalid variable name: \`$ac_envvar'" ;;1265 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1267 1266 esac 1268 1267 eval $ac_envvar=\$ac_optarg … … 1282 1281 if test -n "$ac_prev"; then 1283 1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1284 as_fn_error $?"missing argument to $ac_option"1283 as_fn_error "missing argument to $ac_option" 1285 1284 fi 1286 1285 … … 1288 1287 case $enable_option_checking in 1289 1288 no) ;; 1290 fatal) as_fn_error $?"unrecognized options: $ac_unrecognized_opts" ;;1289 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1291 1290 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1292 1291 esac … … 1311 1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1312 1311 esac 1313 as_fn_error $?"expected an absolute directory name for --$ac_var: $ac_val"1312 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1314 1313 done 1315 1314 … … 1325 1324 if test "x$build_alias" = x; then 1326 1325 cross_compiling=maybe 1327 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.1328 If a cross compiler is detected then cross compile mode will be used " >&21326 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1327 If a cross compiler is detected then cross compile mode will be used." >&2 1329 1328 elif test "x$build_alias" != "x$host_alias"; then 1330 1329 cross_compiling=yes … … 1341 1340 ac_ls_di=`ls -di .` && 1342 1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1343 as_fn_error $?"working directory cannot be determined"1342 as_fn_error "working directory cannot be determined" 1344 1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1345 as_fn_error $?"pwd does not report name of working directory"1344 as_fn_error "pwd does not report name of working directory" 1346 1345 1347 1346 … … 1382 1381 if test ! -r "$srcdir/$ac_unique_file"; then 1383 1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1384 as_fn_error $?"cannot find sources ($ac_unique_file) in $srcdir"1383 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1385 1384 fi 1386 1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1387 1386 ac_abs_confdir=`( 1388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $?"$ac_msg"1387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1389 1388 pwd)` 1390 1389 # When building in place, set srcdir=. … … 1412 1411 # This message is too long to be a string in the A/UX 3.1 sh. 1413 1412 cat <<_ACEOF 1414 \`configure' configures libenet 1.3. 1to adapt to many kinds of systems.1413 \`configure' configures libenet 1.3.3 to adapt to many kinds of systems. 1415 1414 1416 1415 Usage: $0 [OPTION]... [VAR=VALUE]... … … 1426 1425 --help=recursive display the short help of all the included packages 1427 1426 -V, --version display version information and exit 1428 -q, --quiet, --silent do not print \`checking ...' messages1427 -q, --quiet, --silent do not print \`checking...' messages 1429 1428 --cache-file=FILE cache test results in FILE [disabled] 1430 1429 -C, --config-cache alias for \`--cache-file=config.cache' … … 1482 1481 if test -n "$ac_init_help"; then 1483 1482 case $ac_init_help in 1484 short | recursive ) echo "Configuration of libenet 1.3. 1:";;1483 short | recursive ) echo "Configuration of libenet 1.3.3:";; 1485 1484 esac 1486 1485 cat <<\_ACEOF … … 1581 1580 if $ac_init_version; then 1582 1581 cat <<\_ACEOF 1583 libenet configure 1.3. 11584 generated by GNU Autoconf 2.6 71585 1586 Copyright (C) 20 10Free Software Foundation, Inc.1582 libenet configure 1.3.3 1583 generated by GNU Autoconf 2.65 1584 1585 Copyright (C) 2009 Free Software Foundation, Inc. 1587 1586 This configure script is free software; the Free Software Foundation 1588 1587 gives unlimited permission to copy, distribute and modify it. … … 1688 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1689 1688 $as_echo_n "checking for $2... " >&6; } 1690 if eval "test \"\${$3+set}\"" = set; then :1689 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1691 1690 $as_echo_n "(cached) " >&6 1692 1691 else … … 1731 1730 fi 1732 1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1733 test $ac_status = 0; } > conftest.i&& {1732 test $ac_status = 0; } >/dev/null && { 1734 1733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1735 1734 test ! -s conftest.err … … 1797 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1798 1797 $as_echo_n "checking for $2... " >&6; } 1799 if eval "test \"\${$3+set}\"" = set; then :1798 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1800 1799 $as_echo_n "(cached) " >&6 1801 1800 else … … 1865 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1866 1865 $as_echo_n "checking for $2.$3... " >&6; } 1867 if eval "test \"\${$4+set}\"" = set; then :1866 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : 1868 1867 $as_echo_n "(cached) " >&6 1869 1868 else … … 1922 1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1923 1922 $as_echo_n "checking for $2... " >&6; } 1924 if eval "test \"\${$3+set}\"" = set; then :1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1925 1924 $as_echo_n "(cached) " >&6 1926 1925 else … … 1970 1969 running configure, to aid debugging if configure makes a mistake. 1971 1970 1972 It was created by libenet $as_me 1.3. 1, which was1973 generated by GNU Autoconf 2.6 7. Invocation command line was1971 It was created by libenet $as_me 1.3.3, which was 1972 generated by GNU Autoconf 2.65. Invocation command line was 1974 1973 1975 1974 $ $0 $@ … … 2081 2080 echo 2082 2081 2083 $as_echo "## ---------------- ## 2082 cat <<\_ASBOX 2083 ## ---------------- ## 2084 2084 ## Cache variables. ## 2085 ## ---------------- ##" 2085 ## ---------------- ## 2086 _ASBOX 2086 2087 echo 2087 2088 # The following way of writing the cache mishandles newlines in values, … … 2117 2118 echo 2118 2119 2119 $as_echo "## ----------------- ## 2120 cat <<\_ASBOX 2121 ## ----------------- ## 2120 2122 ## Output variables. ## 2121 ## ----------------- ##" 2123 ## ----------------- ## 2124 _ASBOX 2122 2125 echo 2123 2126 for ac_var in $ac_subst_vars … … 2132 2135 2133 2136 if test -n "$ac_subst_files"; then 2134 $as_echo "## ------------------- ## 2137 cat <<\_ASBOX 2138 ## ------------------- ## 2135 2139 ## File substitutions. ## 2136 ## ------------------- ##" 2140 ## ------------------- ## 2141 _ASBOX 2137 2142 echo 2138 2143 for ac_var in $ac_subst_files … … 2148 2153 2149 2154 if test -s confdefs.h; then 2150 $as_echo "## ----------- ## 2155 cat <<\_ASBOX 2156 ## ----------- ## 2151 2157 ## confdefs.h. ## 2152 ## ----------- ##" 2158 ## ----------- ## 2159 _ASBOX 2153 2160 echo 2154 2161 cat confdefs.h … … 2205 2212 ac_site_file2=NONE 2206 2213 if test -n "$CONFIG_SITE"; then 2207 # We do not want a PATH search for config.site. 2208 case $CONFIG_SITE in #(( 2209 -*) ac_site_file1=./$CONFIG_SITE;; 2210 */*) ac_site_file1=$CONFIG_SITE;; 2211 *) ac_site_file1=./$CONFIG_SITE;; 2212 esac 2214 ac_site_file1=$CONFIG_SITE 2213 2215 elif test "x$prefix" != xNONE; then 2214 2216 ac_site_file1=$prefix/share/config.site … … 2225 2227 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2226 2228 sed 's/^/| /' "$ac_site_file" >&5 2227 . "$ac_site_file" \ 2228 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2230 as_fn_error $? "failed to load site script $ac_site_file 2231 See \`config.log' for more details" "$LINENO" 5 ; } 2229 . "$ac_site_file" 2232 2230 fi 2233 2231 done … … 2305 2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2306 2304 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2307 as_fn_error $?"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 52305 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2308 2306 fi 2309 2307 ## -------------------- ## … … 2323 2321 ac_aux_dir= 2324 2322 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2325 if test -f "$ac_dir/install-sh"; then 2326 ac_aux_dir=$ac_dir 2327 ac_install_sh="$ac_aux_dir/install-sh -c" 2328 break 2329 elif test -f "$ac_dir/install.sh"; then 2330 ac_aux_dir=$ac_dir 2331 ac_install_sh="$ac_aux_dir/install.sh -c" 2332 break 2333 elif test -f "$ac_dir/shtool"; then 2334 ac_aux_dir=$ac_dir 2335 ac_install_sh="$ac_aux_dir/shtool install -c" 2336 break 2337 fi 2323 for ac_t in install-sh install.sh shtool; do 2324 if test -f "$ac_dir/$ac_t"; then 2325 ac_aux_dir=$ac_dir 2326 ac_install_sh="$ac_aux_dir/$ac_t -c" 2327 break 2 2328 fi 2329 done 2338 2330 done 2339 2331 if test -z "$ac_aux_dir"; then 2340 as_fn_error $?"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 52332 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2341 2333 fi 2342 2334 … … 2454 2446 case `pwd` in 2455 2447 *[\\\"\#\$\&\'\`$am_lf]*) 2456 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;2448 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2457 2449 esac 2458 2450 case $srcdir in 2459 2451 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2460 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;2452 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2461 2453 esac 2462 2454 … … 2480 2472 # broken ls alias from the environment. This has actually 2481 2473 # happened. Such a system could not be considered "sane". 2482 as_fn_error $?"ls -t appears to fail. Make sure there is not a broken2474 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2483 2475 alias in your environment" "$LINENO" 5 2484 2476 fi … … 2490 2482 : 2491 2483 else 2492 as_fn_error $?"newly created file is older than distributed files!2484 as_fn_error "newly created file is older than distributed files! 2493 2485 Check your system clock" "$LINENO" 5 2494 2486 fi … … 2728 2720 set x ${MAKE-make} 2729 2721 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2730 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :2722 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2731 2723 $as_echo_n "(cached) " >&6 2732 2724 else … … 2736 2728 @echo '@@@%%%=$(MAKE)=@@@%%%' 2737 2729 _ACEOF 2738 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.2730 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2739 2731 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2740 2732 *@@@%%%=?*=@@@%%%*) … … 2770 2762 # test to see if srcdir already configured 2771 2763 if test -f $srcdir/config.status; then 2772 as_fn_error $?"source directory already configured; run \"make distclean\" there first" "$LINENO" 52764 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2773 2765 fi 2774 2766 fi … … 2786 2778 # Define the identity of the package. 2787 2779 PACKAGE='libenet' 2788 VERSION='1.3. 1'2780 VERSION='1.3.3' 2789 2781 2790 2782 … … 3129 3121 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3130 3122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3131 as_fn_error $?"no acceptable C compiler found in \$PATH3132 See \`config.log' for more details " "$LINENO" 5; }3123 as_fn_error "no acceptable C compiler found in \$PATH 3124 See \`config.log' for more details." "$LINENO" 5; } 3133 3125 3134 3126 # Provide some information about the compiler. … … 3244 3236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3245 3237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3246 as_fn_error 77 "C compiler cannot create executables 3247 See \`config.log' for more details" "$LINENO" 5 ; } 3238 { as_fn_set_status 77 3239 as_fn_error "C compiler cannot create executables 3240 See \`config.log' for more details." "$LINENO" 5; }; } 3248 3241 else 3249 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 … … 3287 3280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3288 3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3289 as_fn_error $?"cannot compute suffix of executables: cannot compile and link3290 See \`config.log' for more details " "$LINENO" 5; }3282 as_fn_error "cannot compute suffix of executables: cannot compile and link 3283 See \`config.log' for more details." "$LINENO" 5; } 3291 3284 fi 3292 3285 rm -f conftest conftest$ac_cv_exeext … … 3345 3338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3346 3339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3347 as_fn_error $?"cannot run C compiled programs.3340 as_fn_error "cannot run C compiled programs. 3348 3341 If you meant to cross compile, use \`--host'. 3349 See \`config.log' for more details " "$LINENO" 5; }3342 See \`config.log' for more details." "$LINENO" 5; } 3350 3343 fi 3351 3344 fi … … 3398 3391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3399 3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3400 as_fn_error $?"cannot compute suffix of object files: cannot compile3401 See \`config.log' for more details " "$LINENO" 5; }3393 as_fn_error "cannot compute suffix of object files: cannot compile 3394 See \`config.log' for more details." "$LINENO" 5; } 3402 3395 fi 3403 3396 rm -f conftest.$ac_cv_objext conftest.$ac_ext … … 3835 3828 # Make sure we can run config.sub. 3836 3829 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3837 as_fn_error $?"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 53830 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3838 3831 3839 3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 … … 3846 3839 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3847 3840 test "x$ac_build_alias" = x && 3848 as_fn_error $?"cannot guess build type; you must specify one" "$LINENO" 53841 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 3849 3842 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3850 as_fn_error $?"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 53843 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3851 3844 3852 3845 fi … … 3855 3848 case $ac_cv_build in 3856 3849 *-*-*) ;; 3857 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;3850 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 3858 3851 esac 3859 3852 build=$ac_cv_build … … 3880 3873 else 3881 3874 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3882 as_fn_error $?"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 53875 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3883 3876 fi 3884 3877 … … 3888 3881 case $ac_cv_host in 3889 3882 *-*-*) ;; 3890 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;3883 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 3891 3884 esac 3892 3885 host=$ac_cv_host … … 3961 3954 IFS=$as_save_IFS 3962 3955 if test -z "$ac_cv_path_SED"; then 3963 as_fn_error $?"no acceptable sed could be found in \$PATH" "$LINENO" 53956 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 3964 3957 fi 3965 3958 else … … 4037 4030 IFS=$as_save_IFS 4038 4031 if test -z "$ac_cv_path_GREP"; then 4039 as_fn_error $?"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 54032 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4040 4033 fi 4041 4034 else … … 4103 4096 IFS=$as_save_IFS 4104 4097 if test -z "$ac_cv_path_EGREP"; then 4105 as_fn_error $?"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 54098 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4106 4099 fi 4107 4100 else … … 4170 4163 IFS=$as_save_IFS 4171 4164 if test -z "$ac_cv_path_FGREP"; then 4172 as_fn_error $?"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 54165 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4173 4166 fi 4174 4167 else … … 4286 4279 $as_echo "no" >&6; } 4287 4280 fi 4288 test -z "$LD" && as_fn_error $?"no acceptable ld found in \$PATH" "$LINENO" 54281 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 4289 4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4290 4283 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } … … 4488 4481 lt_cv_nm_interface="BSD nm" 4489 4482 echo "int some_variable = 0;" > conftest.$ac_ext 4490 (eval echo "\"\$as_me:44 90: $ac_compile\"" >&5)4483 (eval echo "\"\$as_me:4483: $ac_compile\"" >&5) 4491 4484 (eval "$ac_compile" 2>conftest.err) 4492 4485 cat conftest.err >&5 4493 (eval echo "\"\$as_me:44 93: $NM \\\"conftest.$ac_objext\\\"\"" >&5)4486 (eval echo "\"\$as_me:4486: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4494 4487 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4495 4488 cat conftest.err >&5 4496 (eval echo "\"\$as_me:44 96: output\"" >&5)4489 (eval echo "\"\$as_me:4489: output\"" >&5) 4497 4490 cat conftest.out >&5 4498 4491 if $GREP 'External.*some_variable' conftest.out > /dev/null; then … … 5700 5693 *-*-irix6*) 5701 5694 # Find out which ABI we are using. 5702 echo '#line 5 702"configure"' > conftest.$ac_ext5695 echo '#line 5695 "configure"' > conftest.$ac_ext 5703 5696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5704 5697 (eval $ac_compile) 2>&5 … … 6489 6482 continue 6490 6483 fi 6491 rm -f conftest.err conftest. i conftest.$ac_ext6484 rm -f conftest.err conftest.$ac_ext 6492 6485 6493 6486 # OK, works on sane cases. Now check whether nonexistent headers … … 6505 6498 break 6506 6499 fi 6507 rm -f conftest.err conftest. i conftest.$ac_ext6500 rm -f conftest.err conftest.$ac_ext 6508 6501 6509 6502 done 6510 6503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6511 rm -f conftest. i conftest.err conftest.$ac_ext6504 rm -f conftest.err conftest.$ac_ext 6512 6505 if $ac_preproc_ok; then : 6513 6506 break … … 6548 6541 continue 6549 6542 fi 6550 rm -f conftest.err conftest. i conftest.$ac_ext6543 rm -f conftest.err conftest.$ac_ext 6551 6544 6552 6545 # OK, works on sane cases. Now check whether nonexistent headers … … 6564 6557 break 6565 6558 fi 6566 rm -f conftest.err conftest. i conftest.$ac_ext6559 rm -f conftest.err conftest.$ac_ext 6567 6560 6568 6561 done 6569 6562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6570 rm -f conftest. i conftest.err conftest.$ac_ext6563 rm -f conftest.err conftest.$ac_ext 6571 6564 if $ac_preproc_ok; then : 6572 6565 … … 6574 6567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6575 6568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6576 as_fn_error $?"C preprocessor \"$CPP\" fails sanity check6577 See \`config.log' for more details " "$LINENO" 5; }6569 as_fn_error "C preprocessor \"$CPP\" fails sanity check 6570 See \`config.log' for more details." "$LINENO" 5; } 6578 6571 fi 6579 6572 … … 6704 6697 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6705 6698 " 6706 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6699 eval as_val=\$$as_ac_Header 6700 if test "x$as_val" = x""yes; then : 6707 6701 cat >>confdefs.h <<_ACEOF 6708 6702 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 … … 7229 7223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7230 7224 -e 's:$: $lt_compiler_flag:'` 7231 (eval echo "\"\$as_me:72 31: $lt_compile\"" >&5)7225 (eval echo "\"\$as_me:7225: $lt_compile\"" >&5) 7232 7226 (eval "$lt_compile" 2>conftest.err) 7233 7227 ac_status=$? 7234 7228 cat conftest.err >&5 7235 echo "$as_me:72 35: \$? = $ac_status" >&57229 echo "$as_me:7229: \$? = $ac_status" >&5 7236 7230 if (exit $ac_status) && test -s "$ac_outfile"; then 7237 7231 # The compiler can only warn and ignore the option if not recognized … … 7568 7562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7569 7563 -e 's:$: $lt_compiler_flag:'` 7570 (eval echo "\"\$as_me:75 70: $lt_compile\"" >&5)7564 (eval echo "\"\$as_me:7564: $lt_compile\"" >&5) 7571 7565 (eval "$lt_compile" 2>conftest.err) 7572 7566 ac_status=$? 7573 7567 cat conftest.err >&5 7574 echo "$as_me:75 74: \$? = $ac_status" >&57568 echo "$as_me:7568: \$? = $ac_status" >&5 7575 7569 if (exit $ac_status) && test -s "$ac_outfile"; then 7576 7570 # The compiler can only warn and ignore the option if not recognized … … 7673 7667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7674 7668 -e 's:$: $lt_compiler_flag:'` 7675 (eval echo "\"\$as_me:76 75: $lt_compile\"" >&5)7669 (eval echo "\"\$as_me:7669: $lt_compile\"" >&5) 7676 7670 (eval "$lt_compile" 2>out/conftest.err) 7677 7671 ac_status=$? 7678 7672 cat out/conftest.err >&5 7679 echo "$as_me:767 9: \$? = $ac_status" >&57673 echo "$as_me:7673: \$? = $ac_status" >&5 7680 7674 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7681 7675 then … … 7728 7722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7729 7723 -e 's:$: $lt_compiler_flag:'` 7730 (eval echo "\"\$as_me:77 30: $lt_compile\"" >&5)7724 (eval echo "\"\$as_me:7724: $lt_compile\"" >&5) 7731 7725 (eval "$lt_compile" 2>out/conftest.err) 7732 7726 ac_status=$? 7733 7727 cat out/conftest.err >&5 7734 echo "$as_me:77 34: \$? = $ac_status" >&57728 echo "$as_me:7728: \$? = $ac_status" >&5 7735 7729 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7736 7730 then … … 10112 10106 lt_status=$lt_dlunknown 10113 10107 cat > conftest.$ac_ext <<_LT_EOF 10114 #line 101 14"configure"10108 #line 10108 "configure" 10115 10109 #include "confdefs.h" 10116 10110 … … 10208 10202 lt_status=$lt_dlunknown 10209 10203 cat > conftest.$ac_ext <<_LT_EOF 10210 #line 102 10"configure"10204 #line 10204 "configure" 10211 10205 #include "confdefs.h" 10212 10206 … … 10637 10631 ac_libobjs= 10638 10632 ac_ltlibobjs= 10639 U=10640 10633 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10641 10634 # 1. Remove the extension, and $U if already installed. … … 10661 10654 10662 10655 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10663 as_fn_error $?"conditional \"AMDEP\" was never defined.10656 as_fn_error "conditional \"AMDEP\" was never defined. 10664 10657 Usually this means the macro was only invoked conditionally." "$LINENO" 5 10665 10658 fi 10666 10659 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10667 as_fn_error $?"conditional \"am__fastdepCC\" was never defined.10660 as_fn_error "conditional \"am__fastdepCC\" was never defined. 10668 10661 Usually this means the macro was only invoked conditionally." "$LINENO" 5 10669 10662 fi … … 10815 10808 10816 10809 10817 # as_fn_error STATUSERROR [LINENO LOG_FD]10818 # --------------------------------- -------10810 # as_fn_error ERROR [LINENO LOG_FD] 10811 # --------------------------------- 10819 10812 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10820 10813 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10821 # script with STATUS, using 1 if that was 0.10814 # script with status $?, using 1 if that was 0. 10822 10815 as_fn_error () 10823 10816 { 10824 as_status=$ 1; test $as_status -eq 0 && as_status=110825 if test "$ 4"; then10826 as_lineno=${as_lineno-"$ 3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack10827 $as_echo "$as_me:${as_lineno-$LINENO}: error: $ 2" >&$410817 as_status=$?; test $as_status -eq 0 && as_status=1 10818 if test "$3"; then 10819 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10820 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 10828 10821 fi 10829 $as_echo "$as_me: error: $ 2" >&210822 $as_echo "$as_me: error: $1" >&2 10830 10823 as_fn_exit $as_status 10831 10824 } # as_fn_error … … 11023 11016 done 11024 11017 test -z "$as_dirs" || eval "mkdir $as_dirs" 11025 } || test -d "$as_dir" || as_fn_error $?"cannot create directory $as_dir"11018 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 11026 11019 11027 11020 … … 11076 11069 # values after options handling. 11077 11070 ac_log=" 11078 This file was extended by libenet $as_me 1.3. 1, which was11079 generated by GNU Autoconf 2.6 7. Invocation command line was11071 This file was extended by libenet $as_me 1.3.3, which was 11072 generated by GNU Autoconf 2.65. Invocation command line was 11080 11073 11081 11074 CONFIG_FILES = $CONFIG_FILES … … 11133 11126 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11134 11127 ac_cs_version="\\ 11135 libenet config.status 1.3. 111136 configured by $0, generated by GNU Autoconf 2.6 7,11128 libenet config.status 1.3.3 11129 configured by $0, generated by GNU Autoconf 2.65, 11137 11130 with options \\"\$ac_cs_config\\" 11138 11131 11139 Copyright (C) 20 10Free Software Foundation, Inc.11132 Copyright (C) 2009 Free Software Foundation, Inc. 11140 11133 This config.status script is free software; the Free Software Foundation 11141 11134 gives unlimited permission to copy, distribute and modify it." … … 11155 11148 do 11156 11149 case $1 in 11157 --*= ?*)11150 --*=*) 11158 11151 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11159 11152 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11160 ac_shift=:11161 ;;11162 --*=)11163 ac_option=`expr "X$1" : 'X\([^=]*\)='`11164 ac_optarg=11165 11153 ac_shift=: 11166 11154 ;; … … 11186 11174 case $ac_optarg in 11187 11175 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11188 '') as_fn_error $? "missing file argument" ;;11189 11176 esac 11190 11177 as_fn_append CONFIG_FILES " '$ac_optarg'" … … 11197 11184 11198 11185 # This is an error. 11199 -*) as_fn_error $?"unrecognized option: \`$1'11186 -*) as_fn_error "unrecognized option: \`$1' 11200 11187 Try \`$0 --help' for more information." ;; 11201 11188 … … 11511 11498 "libenet.pc") CONFIG_FILES="$CONFIG_FILES libenet.pc" ;; 11512 11499 11513 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;11500 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11514 11501 esac 11515 11502 done … … 11548 11535 tmp=./conf$$-$RANDOM 11549 11536 (umask 077 && mkdir "$tmp") 11550 } || as_fn_error $?"cannot create a temporary directory in ." "$LINENO" 511537 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 11551 11538 11552 11539 # Set up the scripts for CONFIG_FILES section. … … 11565 11552 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11566 11553 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11567 ac_cs_awk_cr='\ \r'11554 ac_cs_awk_cr='\r' 11568 11555 else 11569 11556 ac_cs_awk_cr=$ac_cr … … 11579 11566 echo "_ACEOF" 11580 11567 } >conf$$subs.sh || 11581 as_fn_error $?"could not make $CONFIG_STATUS" "$LINENO" 511582 ac_delim_num=`echo "$ac_subst_vars" | grep -c ' ^'`11568 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 11569 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 11583 11570 ac_delim='%!_!# ' 11584 11571 for ac_last_try in false false false false false :; do 11585 11572 . ./conf$$subs.sh || 11586 as_fn_error $?"could not make $CONFIG_STATUS" "$LINENO" 511573 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 11587 11574 11588 11575 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` … … 11590 11577 break 11591 11578 elif $ac_last_try; then 11592 as_fn_error $?"could not make $CONFIG_STATUS" "$LINENO" 511579 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 11593 11580 else 11594 11581 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " … … 11679 11666 cat 11680 11667 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 11681 || as_fn_error $?"could not setup config files machinery" "$LINENO" 511668 || as_fn_error "could not setup config files machinery" "$LINENO" 5 11682 11669 _ACEOF 11683 11670 11684 # VPATH may cause trouble with some makes, so we remove sole$(srcdir),11685 # ${srcdir} and @srcdir@ entriesfrom VPATH if srcdir is ".", strip leading and11671 # VPATH may cause trouble with some makes, so we remove $(srcdir), 11672 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11686 11673 # trailing colons and then remove the whole line if VPATH becomes empty 11687 11674 # (actually we leave an empty line to preserve line numbers). 11688 11675 if test "x$srcdir" = x.; then 11689 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11690 h 11691 s/// 11692 s/^/:/ 11693 s/[ ]*$/:/ 11694 s/:\$(srcdir):/:/g 11695 s/:\${srcdir}:/:/g 11696 s/:@srcdir@:/:/g 11697 s/^:*// 11676 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11677 s/:*\$(srcdir):*/:/ 11678 s/:*\${srcdir}:*/:/ 11679 s/:*@srcdir@:*/:/ 11680 s/^\([^=]*=[ ]*\):*/\1/ 11698 11681 s/:*$// 11699 x11700 s/\(=[ ]*\).*/\1/11701 G11702 s/\n//11703 11682 s/^[^=]*=[ ]*$// 11704 11683 }' … … 11718 11697 case $ac_mode$ac_tag in 11719 11698 :[FHL]*:*);; 11720 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;11699 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 11721 11700 :[FH]-) ac_tag=-:-;; 11722 11701 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; … … 11746 11725 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11747 11726 esac || 11748 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;11727 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11749 11728 esac 11750 11729 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac … … 11773 11752 case $ac_tag in 11774 11753 *:-:* | *:-) cat >"$tmp/stdin" \ 11775 || as_fn_error $? "could not create $ac_file" "$LINENO" 5;;11754 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 11776 11755 esac 11777 11756 ;; … … 11910 11889 " 11911 11890 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 11912 || as_fn_error $?"could not create $ac_file" "$LINENO" 511891 || as_fn_error "could not create $ac_file" "$LINENO" 5 11913 11892 11914 11893 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && … … 11916 11895 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 11917 11896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11918 which seems to be undefined. Please make sure it is defined " >&511897 which seems to be undefined. Please make sure it is defined." >&5 11919 11898 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11920 which seems to be undefined. Please make sure it is defined " >&2;}11899 which seems to be undefined. Please make sure it is defined." >&2;} 11921 11900 11922 11901 rm -f "$tmp/stdin" … … 11925 11904 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 11926 11905 esac \ 11927 || as_fn_error $?"could not create $ac_file" "$LINENO" 511906 || as_fn_error "could not create $ac_file" "$LINENO" 5 11928 11907 ;; 11929 11908 … … 12676 12655 12677 12656 test $ac_write_fail = 0 || 12678 as_fn_error $?"write failure creating $CONFIG_STATUS" "$LINENO" 512657 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 12679 12658 12680 12659 … … 12697 12676 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12698 12677 # would make configure fail if this is the last instruction. 12699 $ac_cs_success || as_fn_exit 112678 $ac_cs_success || as_fn_exit $? 12700 12679 fi 12701 12680 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then -
ps/trunk/libraries/enet/src/configure.ac
r9573 r9822 1 AC_INIT([libenet], [1.3. 1])1 AC_INIT([libenet], [1.3.3]) 2 2 AC_CONFIG_SRCDIR([include/enet/enet.h]) 3 3 AM_INIT_AUTOMAKE([foreign]) -
ps/trunk/libraries/enet/src/host.c
r9573 r9822 211 211 channel -> outgoingUnreliableSequenceNumber = 0; 212 212 channel -> incomingReliableSequenceNumber = 0; 213 channel -> incomingUnreliableSequenceNumber = 0; 213 214 214 215 enet_list_clear (& channel -> incomingReliableCommands); -
ps/trunk/libraries/enet/src/include/enet/enet.h
r9573 r9822 26 26 #define ENET_VERSION_MAJOR 1 27 27 #define ENET_VERSION_MINOR 3 28 #define ENET_VERSION_PATCH 128 #define ENET_VERSION_PATCH 3 29 29 #define ENET_VERSION_CREATE(major, minor, patch) (((major)<<16) | ((minor)<<8) | (patch)) 30 30 #define ENET_VERSION ENET_VERSION_CREATE(ENET_VERSION_MAJOR, ENET_VERSION_MINOR, ENET_VERSION_PATCH) … … 97 97 ENET_PACKET_FLAG_UNSEQUENCED = (1 << 1), 98 98 /** packet will not allocate data, and user must supply it instead */ 99 ENET_PACKET_FLAG_NO_ALLOCATE = (1 << 2) 99 ENET_PACKET_FLAG_NO_ALLOCATE = (1 << 2), 100 /** packet will be fragmented using unreliable (instead of reliable) sends 101 * if it exceeds the MTU */ 102 ENET_PACKET_FLAG_UNRELIABLE_FRAGMENT = (1 << 3) 100 103 } ENetPacketFlag; 101 104 … … 219 222 enet_uint16 reliableWindows [ENET_PEER_RELIABLE_WINDOWS]; 220 223 enet_uint16 incomingReliableSequenceNumber; 224 enet_uint16 incomingUnreliableSequenceNumber; 221 225 ENetList incomingReliableCommands; 222 226 ENetList incomingUnreliableCommands; -
ps/trunk/libraries/enet/src/include/enet/protocol.h
r9573 r9822 34 34 ENET_PROTOCOL_COMMAND_BANDWIDTH_LIMIT = 10, 35 35 ENET_PROTOCOL_COMMAND_THROTTLE_CONFIGURE = 11, 36 ENET_PROTOCOL_COMMAND_COUNT = 12, 36 ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE_FRAGMENT = 12, 37 ENET_PROTOCOL_COMMAND_COUNT = 13, 37 38 38 39 ENET_PROTOCOL_COMMAND_MASK = 0x0F -
ps/trunk/libraries/enet/src/peer.c
r9573 r9822 114 114 if (packet -> dataLength > fragmentLength) 115 115 { 116 enet_uint16 startSequenceNumber = ENET_HOST_TO_NET_16 (channel -> outgoingReliableSequenceNumber + 1);117 116 enet_uint32 fragmentCount = ENET_HOST_TO_NET_32 ((packet -> dataLength + fragmentLength - 1) / fragmentLength), 118 117 fragmentNumber, 119 118 fragmentOffset; 119 enet_uint8 commandNumber; 120 enet_uint16 startSequenceNumber; 120 121 ENetList fragments; 121 122 ENetOutgoingCommand * fragment; 122 123 124 if ((packet -> flags & (ENET_PACKET_FLAG_RELIABLE | ENET_PACKET_FLAG_UNRELIABLE_FRAGMENT)) == ENET_PACKET_FLAG_UNRELIABLE_FRAGMENT && 125 channel -> outgoingUnreliableSequenceNumber < 0xFFFF) 126 { 127 commandNumber = ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE_FRAGMENT; 128 startSequenceNumber = ENET_HOST_TO_NET_16 (channel -> outgoingUnreliableSequenceNumber + 1); 129 } 130 else 131 { 132 commandNumber = ENET_PROTOCOL_COMMAND_SEND_FRAGMENT | ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE; 133 startSequenceNumber = ENET_HOST_TO_NET_16 (channel -> outgoingReliableSequenceNumber + 1); 134 } 135 123 136 enet_list_clear (& fragments); 124 137 … … 148 161 fragment -> fragmentLength = fragmentLength; 149 162 fragment -> packet = packet; 150 fragment -> command.header.command = ENET_PROTOCOL_COMMAND_SEND_FRAGMENT | ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE;163 fragment -> command.header.command = commandNumber; 151 164 fragment -> command.header.channelID = channelID; 152 165 fragment -> command.sendFragment.startSequenceNumber = startSequenceNumber; … … 174 187 command.header.channelID = channelID; 175 188 176 if (packet -> flags & ENET_PACKET_FLAG_RELIABLE) 177 { 178 command.header.command = ENET_PROTOCOL_COMMAND_SEND_RELIABLE | ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE; 179 command.sendReliable.dataLength = ENET_HOST_TO_NET_16 (packet -> dataLength); 180 } 181 else 182 if (packet -> flags & ENET_PACKET_FLAG_UNSEQUENCED) 189 if ((packet -> flags & (ENET_PACKET_FLAG_RELIABLE | ENET_PACKET_FLAG_UNSEQUENCED)) == ENET_PACKET_FLAG_UNSEQUENCED) 183 190 { 184 191 command.header.command = ENET_PROTOCOL_COMMAND_SEND_UNSEQUENCED | ENET_PROTOCOL_COMMAND_FLAG_UNSEQUENCED; 185 command.sendUnsequenced.unsequencedGroup = ENET_HOST_TO_NET_16 (peer -> outgoingUnsequencedGroup + 1);186 192 command.sendUnsequenced.dataLength = ENET_HOST_TO_NET_16 (packet -> dataLength); 187 193 } 188 194 else 189 if ( channel -> outgoingUnreliableSequenceNumber >= 0xFFFF)195 if (packet -> flags & ENET_PACKET_FLAG_RELIABLE || channel -> outgoingUnreliableSequenceNumber >= 0xFFFF) 190 196 { 191 197 command.header.command = ENET_PROTOCOL_COMMAND_SEND_RELIABLE | ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE; … … 195 201 { 196 202 command.header.command = ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE; 197 command.sendUnreliable.unreliableSequenceNumber = ENET_HOST_TO_NET_16 (channel -> outgoingUnreliableSequenceNumber + 1);198 203 command.sendUnreliable.dataLength = ENET_HOST_TO_NET_16 (packet -> dataLength); 199 204 } … … 258 263 259 264 static void 260 enet_peer_reset_incoming_commands (ENetList * queue) 261 { 262 ENetIncomingCommand * incomingCommand; 263 264 while (! enet_list_empty (queue)) 265 { 266 incomingCommand = (ENetIncomingCommand *) enet_list_remove (enet_list_begin (queue)); 267 265 enet_peer_remove_incoming_commands (ENetList * queue, ENetListIterator startCommand, ENetListIterator endCommand) 266 { 267 ENetListIterator currentCommand; 268 269 for (currentCommand = startCommand; currentCommand != endCommand; ) 270 { 271 ENetIncomingCommand * incomingCommand = (ENetIncomingCommand *) currentCommand; 272 273 currentCommand = enet_list_next (currentCommand); 274 275 enet_list_remove (& incomingCommand -> incomingCommandList); 276 268 277 if (incomingCommand -> packet != NULL) 269 278 { … … 281 290 } 282 291 292 static void 293 enet_peer_reset_incoming_commands (ENetList * queue) 294 { 295 enet_peer_remove_incoming_commands(queue, enet_list_begin (queue), enet_list_end(queue)); 296 } 297 283 298 void 284 299 enet_peer_reset_queues (ENetPeer * peer) … … 551 566 else 552 567 { 553 ++ channel -> outgoingUnreliableSequenceNumber; 568 if (outgoingCommand -> fragmentOffset == 0) 569 ++ channel -> outgoingUnreliableSequenceNumber; 554 570 555 571 outgoingCommand -> reliableSequenceNumber = channel -> outgoingReliableSequenceNumber; … … 563 579 outgoingCommand -> command.header.reliableSequenceNumber = ENET_HOST_TO_NET_16 (outgoingCommand -> reliableSequenceNumber); 564 580 581 switch (outgoingCommand -> command.header.command & ENET_PROTOCOL_COMMAND_MASK) 582 { 583 case ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE: 584 outgoingCommand -> command.sendUnreliable.unreliableSequenceNumber = ENET_HOST_TO_NET_16 (outgoingCommand -> unreliableSequenceNumber); 585 break; 586 587 case ENET_PROTOCOL_COMMAND_SEND_UNSEQUENCED: 588 outgoingCommand -> command.sendUnsequenced.unsequencedGroup = ENET_HOST_TO_NET_16 (peer -> outgoingUnsequencedGroup); 589 break; 590 591 default: 592 break; 593 } 594 565 595 if (outgoingCommand -> command.header.command & ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE) 566 596 enet_list_insert (enet_list_end (& peer -> outgoingReliableCommands), outgoingCommand); … … 591 621 enet_peer_dispatch_incoming_unreliable_commands (ENetPeer * peer, ENetChannel * channel) 592 622 { 593 ENetListIterator currentCommand;594 595 for ( currentCommand = enet_list_begin (& channel -> incomingUnreliableCommands);623 ENetListIterator droppedCommand, startCommand, currentCommand; 624 625 for (droppedCommand = startCommand = currentCommand = enet_list_begin (& channel -> incomingUnreliableCommands); 596 626 currentCommand != enet_list_end (& channel -> incomingUnreliableCommands); 597 627 currentCommand = enet_list_next (currentCommand)) … … 599 629 ENetIncomingCommand * incomingCommand = (ENetIncomingCommand *) currentCommand; 600 630 601 if ((incomingCommand -> command.header.command & ENET_PROTOCOL_COMMAND_MASK) == ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE && 602 incomingCommand -> reliableSequenceNumber != channel -> incomingReliableSequenceNumber) 631 if ((incomingCommand -> command.header.command & ENET_PROTOCOL_COMMAND_MASK) == ENET_PROTOCOL_COMMAND_SEND_UNSEQUENCED) 632 continue; 633 else 634 if (incomingCommand -> reliableSequenceNumber != channel -> incomingReliableSequenceNumber) 603 635 break; 604 } 605 606 if (currentCommand == enet_list_begin (& channel -> incomingUnreliableCommands)) 607 return; 608 609 enet_list_move (enet_list_end (& peer -> dispatchedCommands), enet_list_begin (& channel -> incomingUnreliableCommands), enet_list_previous (currentCommand)); 610 611 if (! peer -> needsDispatch) 612 { 613 enet_list_insert (enet_list_end (& peer -> host -> dispatchQueue), & peer -> dispatchList); 614 615 peer -> needsDispatch = 1; 616 } 636 else 637 if (incomingCommand -> fragmentsRemaining <= 0) 638 channel -> incomingUnreliableSequenceNumber = incomingCommand -> unreliableSequenceNumber; 639 else 640 if (startCommand == currentCommand) 641 startCommand = enet_list_next (currentCommand); 642 else 643 { 644 enet_list_move (enet_list_end (& peer -> dispatchedCommands), startCommand, enet_list_previous (currentCommand)); 645 646 if (! peer -> needsDispatch) 647 { 648 enet_list_insert (enet_list_end (& peer -> host -> dispatchQueue), & peer -> dispatchList); 649 650 peer -> needsDispatch = 1; 651 } 652 653 droppedCommand = startCommand = enet_list_next (currentCommand); 654 } 655 } 656 657 if (startCommand != currentCommand) 658 { 659 enet_list_move (enet_list_end (& peer -> dispatchedCommands), startCommand, enet_list_previous (currentCommand)); 660 661 if (! peer -> needsDispatch) 662 { 663 enet_list_insert (enet_list_end (& peer -> host -> dispatchQueue), & peer -> dispatchList); 664 665 peer -> needsDispatch = 1; 666 } 667 668 droppedCommand = startCommand = enet_list_next (currentCommand); 669 } 670 671 enet_peer_remove_incoming_commands (& channel -> incomingUnreliableCommands, enet_list_begin (& channel -> incomingUnreliableCommands), droppedCommand); 617 672 } 618 673 … … 641 696 return; 642 697 698 channel -> incomingUnreliableSequenceNumber = 0; 699 643 700 enet_list_move (enet_list_end (& peer -> dispatchedCommands), enet_list_begin (& channel -> incomingReliableCommands), enet_list_previous (currentCommand)); 644 701 … … 685 742 case ENET_PROTOCOL_COMMAND_SEND_RELIABLE: 686 743 if (reliableSequenceNumber == channel -> incomingReliableSequenceNumber) 687 goto freePacket;744 goto freePacket; 688 745 689 746 for (currentCommand = enet_list_previous (enet_list_end (& channel -> incomingReliableCommands)); … … 713 770 714 771 case ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE: 772 case ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE_FRAGMENT: 715 773 unreliableSequenceNumber = ENET_NET_TO_HOST_16 (command -> sendUnreliable.unreliableSequenceNumber); 774 775 if (reliableSequenceNumber == channel -> incomingReliableSequenceNumber && 776 unreliableSequenceNumber <= channel -> incomingUnreliableSequenceNumber) 777 goto freePacket; 716 778 717 779 for (currentCommand = enet_list_previous (enet_list_end (& channel -> incomingUnreliableCommands)); … … 721 783 incomingCommand = (ENetIncomingCommand *) currentCommand; 722 784 723 if (( incomingCommand -> command.header.command & ENET_PROTOCOL_COMMAND_MASK) != ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE)785 if ((command -> header.command & ENET_PROTOCOL_COMMAND_MASK) == ENET_PROTOCOL_COMMAND_SEND_UNSEQUENCED) 724 786 continue; 725 787 -
ps/trunk/libraries/enet/src/protocol.c
r9573 r9822 24 24 sizeof (ENetProtocolBandwidthLimit), 25 25 sizeof (ENetProtocolThrottleConfigure), 26 sizeof (ENetProtocolSendFragment) 26 27 }; 27 28 … … 320 321 channel -> outgoingUnreliableSequenceNumber = 0; 321 322 channel -> incomingReliableSequenceNumber = 0; 323 channel -> incomingUnreliableSequenceNumber = 0; 322 324 323 325 enet_list_clear (& channel -> incomingReliableCommands); … … 574 576 575 577 hostCommand.header.reliableSequenceNumber = startSequenceNumber; 576 hostCommand.sendFragment.startSequenceNumber = startSequenceNumber;577 hostCommand.sendFragment.dataLength = fragmentLength;578 hostCommand.sendFragment.fragmentNumber = fragmentNumber;579 hostCommand.sendFragment.fragmentCount = fragmentCount;580 hostCommand.sendFragment.fragmentOffset = fragmentOffset;581 hostCommand.sendFragment.totalLength = totalLength;582 578 583 579 startCommand = enet_peer_queue_incoming_command (peer, & hostCommand, packet, fragmentCount); … … 601 597 if (startCommand -> fragmentsRemaining <= 0) 602 598 enet_peer_dispatch_incoming_reliable_commands (peer, channel); 599 } 600 601 return 0; 602 } 603 604 static int 605 enet_protocol_handle_send_unreliable_fragment (ENetHost * host, ENetPeer * peer, const ENetProtocol * command, enet_uint8 ** currentData) 606 { 607 enet_uint32 fragmentNumber, 608 fragmentCount, 609 fragmentOffset, 610 fragmentLength, 611 reliableSequenceNumber, 612 startSequenceNumber, 613 totalLength; 614 enet_uint16 reliableWindow, currentWindow; 615 ENetChannel * channel; 616 ENetListIterator currentCommand; 617 ENetIncomingCommand * startCommand = NULL; 618 619 if (command -> header.channelID >= peer -> channelCount || 620 (peer -> state != ENET_PEER_STATE_CONNECTED && peer -> state != ENET_PEER_STATE_DISCONNECT_LATER)) 621 return -1; 622 623 fragmentLength = ENET_NET_TO_HOST_16 (command -> sendFragment.dataLength); 624 * currentData += fragmentLength; 625 if (* currentData > & host -> receivedData [host -> receivedDataLength]) 626 return -1; 627 628 channel = & peer -> channels [command -> header.channelID]; 629 reliableSequenceNumber = command -> header.reliableSequenceNumber; 630 startSequenceNumber = ENET_NET_TO_HOST_16 (command -> sendFragment.startSequenceNumber); 631 632 reliableWindow = reliableSequenceNumber / ENET_PEER_RELIABLE_WINDOW_SIZE; 633 currentWindow = channel -> incomingReliableSequenceNumber / ENET_PEER_RELIABLE_WINDOW_SIZE; 634 635 if (reliableSequenceNumber < channel -> incomingReliableSequenceNumber) 636 reliableWindow += ENET_PEER_RELIABLE_WINDOWS; 637 638 if (reliableWindow < currentWindow || reliableWindow >= currentWindow + ENET_PEER_FREE_RELIABLE_WINDOWS - 1) 639 return 0; 640 641 if (reliableSequenceNumber == channel -> incomingReliableSequenceNumber && 642 startSequenceNumber <= channel -> incomingUnreliableSequenceNumber) 643 return 0; 644 645 fragmentNumber = ENET_NET_TO_HOST_32 (command -> sendFragment.fragmentNumber); 646 fragmentCount = ENET_NET_TO_HOST_32 (command -> sendFragment.fragmentCount); 647 fragmentOffset = ENET_NET_TO_HOST_32 (command -> sendFragment.fragmentOffset); 648 totalLength = ENET_NET_TO_HOST_32 (command -> sendFragment.totalLength); 649 650 if (fragmentOffset >= totalLength || 651 fragmentOffset + fragmentLength > totalLength || 652 fragmentNumber >= fragmentCount) 653 return -1; 654 655 for (currentCommand = enet_list_previous (enet_list_end (& channel -> incomingUnreliableCommands)); 656 currentCommand != enet_list_end (& channel -> incomingUnreliableCommands); 657 currentCommand = enet_list_previous (currentCommand)) 658 { 659 ENetIncomingCommand * incomingCommand = (ENetIncomingCommand *) currentCommand; 660 661 if (reliableSequenceNumber >= channel -> incomingReliableSequenceNumber) 662 { 663 if (incomingCommand -> reliableSequenceNumber < channel -> incomingReliableSequenceNumber) 664 continue; 665 } 666 else 667 if (incomingCommand -> reliableSequenceNumber >= channel -> incomingReliableSequenceNumber) 668 break; 669 670 if (incomingCommand -> reliableSequenceNumber < reliableSequenceNumber) 671 break; 672 673 if (incomingCommand -> reliableSequenceNumber > reliableSequenceNumber) 674 continue; 675 676 if (incomingCommand -> unreliableSequenceNumber <= startSequenceNumber) 677 { 678 if (incomingCommand -> unreliableSequenceNumber < startSequenceNumber) 679 break; 680 681 if ((incomingCommand -> command.header.command & ENET_PROTOCOL_COMMAND_MASK) != ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE_FRAGMENT || 682 totalLength != incomingCommand -> packet -> dataLength || 683 fragmentCount != incomingCommand -> fragmentCount) 684 return -1; 685 686 startCommand = incomingCommand; 687 break; 688 } 689 } 690 691 if (startCommand == NULL) 692 { 693 ENetPacket * packet = enet_packet_create (NULL, totalLength, ENET_PACKET_FLAG_UNRELIABLE_FRAGMENT); 694 if (packet == NULL) 695 return -1; 696 697 startCommand = enet_peer_queue_incoming_command (peer, command, packet, fragmentCount); 698 if (startCommand == NULL) 699 return -1; 700 } 701 702 if ((startCommand -> fragments [fragmentNumber / 32] & (1 << (fragmentNumber % 32))) == 0) 703 { 704 -- startCommand -> fragmentsRemaining; 705 706 startCommand -> fragments [fragmentNumber / 32] |= (1 << (fragmentNumber % 32)); 707 708 if (fragmentOffset + fragmentLength > startCommand -> packet -> dataLength) 709 fragmentLength = startCommand -> packet -> dataLength - fragmentOffset; 710 711 memcpy (startCommand -> packet -> data + fragmentOffset, 712 (enet_uint8 *) command + sizeof (ENetProtocolSendFragment), 713 fragmentLength); 714 715 if (startCommand -> fragmentsRemaining <= 0) 716 enet_peer_dispatch_incoming_unreliable_commands (peer, channel); 603 717 } 604 718 … … 651 765 enet_peer_reset_queues (peer); 652 766 653 if (peer -> state == ENET_PEER_STATE_CONNECTION_SUCCEEDED )767 if (peer -> state == ENET_PEER_STATE_CONNECTION_SUCCEEDED || peer -> state == ENET_PEER_STATE_DISCONNECTING) 654 768 enet_protocol_dispatch_state (host, peer, ENET_PEER_STATE_ZOMBIE); 655 769 else … … 853 967 if (peer -> state == ENET_PEER_STATE_DISCONNECTED || 854 968 peer -> state == ENET_PEER_STATE_ZOMBIE || 855 (host -> receivedAddress.host != peer -> address.host && 969 ((host -> receivedAddress.host != peer -> address.host || 970 host -> receivedAddress.port != peer -> address.port) && 856 971 peer -> address.host != ENET_HOST_BROADCAST) || 857 972 (peer -> outgoingPeerID < ENET_PROTOCOL_MAXIMUM_PEER_ID && … … 983 1098 case ENET_PROTOCOL_COMMAND_THROTTLE_CONFIGURE: 984 1099 if (enet_protocol_handle_throttle_configure (host, peer, command)) 1100 goto commandError; 1101 break; 1102 1103 case ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE_FRAGMENT: 1104 if (enet_protocol_handle_send_unreliable_fragment (host, peer, command, & currentData)) 985 1105 goto commandError; 986 1106 break; … … 1139 1259 peer -> mtu - host -> packetSize < commandSize || 1140 1260 (outgoingCommand -> packet != NULL && 1141 peer -> mtu - host -> packetSize < commandSize + outgoingCommand -> packet -> dataLength))1261 peer -> mtu - host -> packetSize < commandSize + outgoingCommand -> fragmentLength)) 1142 1262 { 1143 1263 host -> continueSending = 1; … … 1148 1268 currentCommand = enet_list_next (currentCommand); 1149 1269 1150 if (outgoingCommand -> packet != NULL )1270 if (outgoingCommand -> packet != NULL && outgoingCommand -> fragmentOffset == 0) 1151 1271 { 1152 1272 peer -> packetThrottleCounter += ENET_PEER_PACKET_THROTTLE_COUNTER; … … 1155 1275 if (peer -> packetThrottleCounter > peer -> packetThrottle) 1156 1276 { 1157 -- outgoingCommand -> packet -> referenceCount; 1158 1159 if (outgoingCommand -> packet -> referenceCount == 0) 1160 enet_packet_destroy (outgoingCommand -> packet); 1277 enet_uint16 reliableSequenceNumber = outgoingCommand -> reliableSequenceNumber, 1278 unreliableSequenceNumber = outgoingCommand -> unreliableSequenceNumber; 1279 for (;;) 1280 { 1281 -- outgoingCommand -> packet -> referenceCount; 1282 1283 if (outgoingCommand -> packet -> referenceCount == 0) 1284 enet_packet_destroy (outgoingCommand -> packet); 1161 1285 1162 enet_list_remove (& outgoingCommand -> outgoingCommandList); 1163 enet_free (outgoingCommand); 1286 enet_list_remove (& outgoingCommand -> outgoingCommandList); 1287 enet_free (outgoingCommand); 1288 1289 if (currentCommand == enet_list_end (& peer -> outgoingUnreliableCommands)) 1290 break; 1291 1292 outgoingCommand = (ENetOutgoingCommand *) currentCommand; 1293 if (outgoingCommand -> reliableSequenceNumber != reliableSequenceNumber || 1294 outgoingCommand -> unreliableSequenceNumber != unreliableSequenceNumber) 1295 break; 1296 1297 currentCommand = enet_list_next (currentCommand); 1298 } 1164 1299 1165 1300 continue; … … 1180 1315 ++ buffer; 1181 1316 1182 buffer -> data = outgoingCommand -> packet -> data ;1183 buffer -> dataLength = outgoingCommand -> packet -> dataLength;1317 buffer -> data = outgoingCommand -> packet -> data + outgoingCommand -> fragmentOffset; 1318 buffer -> dataLength = outgoingCommand -> fragmentLength; 1184 1319 1185 1320 host -> packetSize += buffer -> dataLength;
Note:
See TracChangeset
for help on using the changeset viewer.
