Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: third_party/twisted_8_1/twisted/internet/iocpreactor/iocpsupport/acceptex.pxi

Issue 12261012: Remove third_party/twisted_8_1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/twisted_8_1/twisted/internet/iocpreactor/iocpsupport/acceptex.pxi
diff --git a/third_party/twisted_8_1/twisted/internet/iocpreactor/iocpsupport/acceptex.pxi b/third_party/twisted_8_1/twisted/internet/iocpreactor/iocpsupport/acceptex.pxi
deleted file mode 100644
index 8fd76ef8c2af8f826d91ee15a594401ba93550dc..0000000000000000000000000000000000000000
--- a/third_party/twisted_8_1/twisted/internet/iocpreactor/iocpsupport/acceptex.pxi
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright (c) 2008 Twisted Matrix Laboratories.
-# See LICENSE for details.
-
-
-def accept(long listening, long accepting, object buff, object obj):
- cdef unsigned long bytes
- cdef int size, rc
- cdef void *mem_buffer
- cdef myOVERLAPPED *ov
-
- PyObject_AsWriteBuffer(buff, &mem_buffer, &size)
-
- ov = makeOV()
- if obj is not None:
- ov.obj = <PyObject *>obj
-
- rc = lpAcceptEx(listening, accepting, mem_buffer, 0, size / 2, size / 2,
- &bytes, <OVERLAPPED *>ov)
- if not rc:
- rc = WSAGetLastError()
- if rc != ERROR_IO_PENDING:
- return rc
-
- # operation is in progress
- Py_XINCREF(obj)
- return rc
-
-def get_accept_addrs(long s, object buff):
- cdef WSAPROTOCOL_INFO wsa_pi
- cdef int size, locallen, remotelen
- cdef void *mem_buffer
- cdef sockaddr *localaddr, *remoteaddr
-
- PyObject_AsReadBuffer(buff, &mem_buffer, &size)
-
- lpGetAcceptExSockaddrs(mem_buffer, 0, size / 2, size / 2, &localaddr, &locallen, &remoteaddr, &remotelen)
- return remoteaddr.sa_family, _makesockaddr(localaddr, locallen), _makesockaddr(remoteaddr, remotelen)
-

Powered by Google App Engine
This is Rietveld 408576698