Code Monkey home page Code Monkey logo

pyenet's Introduction

#pyenet

pyenet is a python wrapper for the ENet library by Lee Salzman, http://enet.bespin.org

It was originally written by Scott Robinson [email protected] and is currently maintained by Andrew Resch [email protected]

##License 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

pyenet's People

Contributors

aresch avatar edwardbetts avatar notafile avatar noway avatar whbdupree avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.