r3234 - trunk/libmnetutil/source
erik at minisip.org
erik at minisip.org
Thu Mar 8 00:34:44 CET 2007
Author: erik
Date: 2007-03-08 00:34:43 +0100 (Thu, 08 Mar 2007)
New Revision: 3234
Modified:
trunk/libmnetutil/source/SocketServer.cxx
Log:
* Compile fix for mingw32 cross compile: Moved function within file.
Modified: trunk/libmnetutil/source/SocketServer.cxx
===================================================================
--- trunk/libmnetutil/source/SocketServer.cxx 2007-03-07 22:12:34 UTC (rev 3233)
+++ trunk/libmnetutil/source/SocketServer.cxx 2007-03-07 23:34:43 UTC (rev 3234)
@@ -84,27 +84,6 @@
stop();
}
-void SocketServer::createSignalPipe(){
- int pipeFds[2] = {-1,-1};
-
- if( fdSignal >= 0 ){
- close( fdSignal );
- fdSignal = -1;
- }
-
-#ifdef WIN32
- // Use TCP sockets since Windows pipes don't support select
- if( createTcpPipe( pipeFds )) {
-#else
- if( ::pipe( pipeFds ) ){
-#endif
- throw Exception( "Can't create pipe" );
- }
-
- fdSignal = pipeFds[1];
- fdSignalInternal = pipeFds[0];
-}
-
void SocketServer::start()
{
CriticalSection cs( csMutex );
@@ -274,6 +253,27 @@
}
#endif // WIN32
+void SocketServer::createSignalPipe(){
+ int pipeFds[2] = {-1,-1};
+
+ if( fdSignal >= 0 ){
+ close( fdSignal );
+ fdSignal = -1;
+ }
+
+#ifdef WIN32
+ // Use TCP sockets since Windows pipes don't support select
+ if( createTcpPipe( pipeFds )) {
+#else
+ if( ::pipe( pipeFds ) ){
+#endif
+ throw Exception( "Can't create pipe" );
+ }
+
+ fdSignal = pipeFds[1];
+ fdSignalInternal = pipeFds[0];
+}
+
void SocketServer::closeSockets(){
Sockets::const_iterator i;
for( i = sockets.begin(); i != sockets.end(); i++ ){
More information about the Minisip-devel
mailing list