[complement-svn] SF.net SVN: complement: [1497] trunk/complement/explore
Status: Pre-Alpha
Brought to you by:
complement
From: <com...@us...> - 2007-01-31 14:49:59
|
Revision: 1497 http://svn.sourceforge.net/complement/?rev=1497&view=rev Author: complement Date: 2007-01-31 06:49:58 -0800 (Wed, 31 Jan 2007) Log Message: ----------- sockmgr with select not maintained a long time: turn it off on linux Modified Paths: -------------- trunk/complement/explore/include/config/_linux.h trunk/complement/explore/test/sockios/unit_test.cc Modified: trunk/complement/explore/include/config/_linux.h =================================================================== --- trunk/complement/explore/include/config/_linux.h 2007-01-31 13:28:07 UTC (rev 1496) +++ trunk/complement/explore/include/config/_linux.h 2007-01-31 14:49:58 UTC (rev 1497) @@ -1,21 +1,10 @@ /* Time-stamp: <05/12/12 10:47:37 ptr> */ /* - * - * Copyright (c) 2003-2005 + * Copyright (c) 2003-2007 * Petr Ovtchenkov * - * Licensed under the Academic Free License Version 2.1 - * - * This material is provided "as is", with absolutely no warranty expressed - * or implied. Any use is at your own risk. - * - * Permission to use, copy, modify, distribute and sell this software - * and its documentation for any purpose is hereby granted without fee, - * provided that the above copyright notice appear in all copies and - * that both that copyright notice and this permission notice appear - * in supporting documentation. - * + * Licensed under the Academic Free License Version 3.0 */ #ifndef __config__linux_h @@ -70,4 +59,10 @@ # error "__BYTE_ORDER neither __BIG_ENDIAN nor __LITTLE_ENDIAN; Fix me!" #endif +/* select-based socket manager not supported a long time, and produce errors on x64 + * I turn off usage of select +*/ + +#define __FIT_NO_SELECT + #endif /* __config__linux_h */ Modified: trunk/complement/explore/test/sockios/unit_test.cc =================================================================== --- trunk/complement/explore/test/sockios/unit_test.cc 2007-01-31 13:28:07 UTC (rev 1496) +++ trunk/complement/explore/test/sockios/unit_test.cc 2007-01-31 14:49:58 UTC (rev 1497) @@ -252,9 +252,9 @@ #endif } +#ifndef __FIT_NO_SELECT void test_client_server_select_local_ack() { -#ifndef __FIT_NO_POLL try { // server listen localhost (127.0.0.1), but not listen ext interface: sockmgr_stream_MP_SELECT<ConnectionProcessor> srv( 0x7f000001, port ); // start server @@ -269,10 +269,8 @@ BOOST_ERROR( "host not found by name" ); pr_lock.unlock(); } -#else - BOOST_ERROR( "poll-based sockmgr not implemented on this platform" ); -#endif } +#endif void udp_test_client_server_poll() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |