Name: udt4py
Owner: Samsung
Description: libudt4 Python wrapper written with Cython
Created: 2014-03-25 06:46:35.0
Updated: 2017-01-13 01:02:15.0
Pushed: 2014-03-23 10:50:29.0
Homepage: null
Size: 244
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
libudt4 Python wrapper written with Cython.
Tested with Python 2.7 and Python 3.3 on Linux. In buffer operations bytes, bytearray and memoryview objects are supported, allowing zero-copy operations.
In order to build the native module, execute:
on3 setup.py build_ext --inplace
In Ubuntu, you will need cython3
package.
To run the tests, execute:
ONPATH=`pwd` nosetests3 -w tests --tests udt_socket,udt_epoll
Example usage:
udt4py import UDTSocket
_name__ == "__main__":
socket = UDTSocket()
socket.bind("0.0.0.0:7777")
socket.listen()
channel = socket.accept()
msg = bytearray(5)
channel.recv(msg)
Released under Simplified BSD License. Copyright (c) 2014, Samsung Electronics Co.,Ltd.