Samsung/udt4py

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

udt4py

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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.