[pypy-svn] r26215 - pypy/dist/pypy/rpython/rctypes/socketmodule
dialtone at codespeak.net
dialtone at codespeak.net
Mon Apr 24 04:51:49 CEST 2006
Author: dialtone
Date: Mon Apr 24 04:51:46 2006
New Revision: 26215
Modified:
pypy/dist/pypy/rpython/rctypes/socketmodule/ctypes_socket.py
Log:
(ericvrp, dialtone)
finished socket object interface
Modified: pypy/dist/pypy/rpython/rctypes/socketmodule/ctypes_socket.py
==============================================================================
--- pypy/dist/pypy/rpython/rctypes/socketmodule/ctypes_socket.py (original)
+++ pypy/dist/pypy/rpython/rctypes/socketmodule/ctypes_socket.py Mon Apr 24 04:51:46 2006
@@ -147,4 +147,20 @@
socketrecvfrom = socketdll.recvfrom
socketrecvfrom.argtypes = [c_int, c_void_p, size_t,
c_int, sockaddr_ptr, POINTER(socklen_t)]
-socketrecvfrom.restype = ssize_t
\ No newline at end of file
+socketrecvfrom.restype = ssize_t
+
+socketsend = socketdll.send
+socketsend.argtypes = [c_int,
+ c_void_p, #this should be constant
+ size_t, c_int]
+socketsend.restype = ssize_t
+
+socketsendto = socketdll.sendto
+socketsendto.argtypes = [c_int, c_void_p, #this should be constant
+ size_t, c_int, sockaddr_ptr, #this should be const
+ socklen_t]
+socketsendto.restype = ssize_t
+
+socketshutdown = socketdll.shutdown
+socketshutdown.argtypes = [c_int, c_int]
+socketshutdown.restype = c_int
\ No newline at end of file
More information about the Pypy-commit
mailing list