diff options
author | Christoph Egger <christoph@debian.org> | 2011-11-15 15:57:37 +0100 |
---|---|---|
committer | Christoph Egger <christoph@debian.org> | 2011-11-15 15:57:37 +0100 |
commit | 7a63889ff41abe5075b7ca8a9e35b0fde19560da (patch) | |
tree | f251cc78926fc294d810ecbe3efbaaa996806cb4 /README |
Import python-enet_0.0~svn24.orig.tar.xz
[dgit import orig python-enet_0.0~svn24.orig.tar.xz]
Diffstat (limited to 'README')
-rw-r--r-- | README | 58 |
1 files changed, 58 insertions, 0 deletions
@@ -0,0 +1,58 @@ +pyenet 1.3 + +About +===================== + +pyenet is a python wrapper for the ENet library by Lee Salzman, + http://enet.bespin.org + +It was originally written by Scott Robinson <scott@tranzoa.com> and is +currently maintained by Andrew Resch <andrewresch@gmail.com> at + http://code.google.com/p/pyenet + +pyenet is licensed under the BSD license, see LICENSE for details. +enet is licensed under the MIT license, see http://enet.bespin.org/License.html + +Dependencies +===================== + +Building pyenet requires all the same dependencies as enet plus Cython and, +obviously, Python. + +Installation +===================== + +The first step is to download the enet sources from http://enet.bespin.org and +extract it to the enet/ directory in pyenet's source directory. You could also +check out the enet source code from their CVS repository. + +This version of pyenet requires enet 1.3. + +Next step is to run the setup.py build: + + $ python setup.py build + +Once that is complete, install the new pyenet module: + + # python setup.py install + +Usage +===================== + +Once you have installed pyenet, you only need to import the enet module to +start using enet in your project. + +Example server: + +>>> import enet +>>> host = enet.Host(enet.Address("localhost", 33333), 1, 0, 0) +>>> event = host.service(0) + +Example client: + +>>> import enet +>>> host = enet.Host(None, 1, 0, 0) +>>> peer = host.connect(enet.Address("localhost", 33333), 1) + +More information on usage can be obtained from: + http://enet.bespin.org/Tutorial.html |