You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2011/05/10 09:11:31 UTC

svn commit: r1101346 - in /commons/sandbox/runtime/trunk/src/main/native/os: unix/arch_defs.h win32/arch_defs.h

Author: mturk
Date: Tue May 10 07:11:31 2011
New Revision: 1101346

URL: http://svn.apache.org/viewvc?rev=1101346&view=rev
Log:
Add macros for casting sockets to jint

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/unix/arch_defs.h
    commons/sandbox/runtime/trunk/src/main/native/os/win32/arch_defs.h

Modified: commons/sandbox/runtime/trunk/src/main/native/os/unix/arch_defs.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/unix/arch_defs.h?rev=1101346&r1=1101345&r2=1101346&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/unix/arch_defs.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/unix/arch_defs.h Tue May 10 07:11:31 2011
@@ -75,6 +75,7 @@ typedef struct stat         struct_stat_
 
 #define I2H(I)              (void *)((intptr_t)(I))
 #define I2SOCK(I)           (I)
+#define SOCK2I(S)           (S)
 #define ACR_PATH_MAX        8192
 #define ACR_CRLF            "\n"
 /* Any value will do */

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/arch_defs.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/arch_defs.h?rev=1101346&r1=1101345&r2=1101346&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/arch_defs.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/arch_defs.h Tue May 10 07:11:31 2011
@@ -42,6 +42,7 @@
 
 #define I2H(I)                  (HANDLE)IntToPtr((I))
 #define I2SOCK(I)               (SOCKET)IntToPtr((I))
+#define SOCK2I(S)               PtrToInt((S))
 #define ACR_CRLF                "\r\n"
 #define ACR__THREAD(pg)         _cr__thread(pg)
 #define RESOURCE_NAME_LEN       64