axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject svn commit: r377341 - in /webservices/axis/trunk/c/src/server/simple_axis_server: SimpleAxisTransport.cpp SimpleAxisTransport.h
Date Mon, 13 Feb 2006 11:06:40 GMT
Author: dicka
Date: Mon Feb 13 03:06:37 2006
New Revision: 377341

URL: http://svn.apache.org/viewcvs?rev=377341&view=rev
Log:
Resolve compilation error on unix for SimpleAxisServer.

Modified:
    webservices/axis/trunk/c/src/server/simple_axis_server/SimpleAxisTransport.cpp
    webservices/axis/trunk/c/src/server/simple_axis_server/SimpleAxisTransport.h

Modified: webservices/axis/trunk/c/src/server/simple_axis_server/SimpleAxisTransport.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/server/simple_axis_server/SimpleAxisTransport.cpp?rev=377341&r1=377340&r2=377341&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/server/simple_axis_server/SimpleAxisTransport.cpp (original)
+++ webservices/axis/trunk/c/src/server/simple_axis_server/SimpleAxisTransport.cpp Mon Feb
13 03:06:37 2006
@@ -40,14 +40,12 @@
 
 SimpleAxisTransport::~SimpleAxisTransport()
 {
-	int	iShutDownRes = shutdown( m_iSocket, SD_BOTH);
-
-	int iCloseSockRes = 0;
-
 #ifdef WIN32
-	iCloseSockRes = closesocket( m_iSocket);
+    shutdown( m_iSocket, SD_BOTH);
+	closesocket( m_iSocket);
 #else //Linux
-	iCloseSockRes = close( m_iSocket);
+    shutdown( m_iSocket, SHUT_RDWR);	
+    close( m_iSocket);
 #endif
 }
 

Modified: webservices/axis/trunk/c/src/server/simple_axis_server/SimpleAxisTransport.h
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/server/simple_axis_server/SimpleAxisTransport.h?rev=377341&r1=377340&r2=377341&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/server/simple_axis_server/SimpleAxisTransport.h (original)
+++ webservices/axis/trunk/c/src/server/simple_axis_server/SimpleAxisTransport.h Mon Feb 13
03:06:37 2006
@@ -24,6 +24,10 @@
 #include <winsock2.h>
 #else
 #include    <sys/socket.h>
+#include <arpa/inet.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <sys/time.h>
 #include    <sys/types.h>
 #endif
 #include    <string.h>



Mime
View raw message