Change standard chunk size for the test client, and remove bitstring as a dependency

develop
Sven Slootweg 12 years ago
parent 5160d26307
commit 32957fe5e8

@ -1,4 +1,3 @@
from bitstring import BitArray
import select, msgpack
class ReactorException(Exception):

@ -0,0 +1,12 @@
from setuptools import setup
setup(name='pyreactor',
version='0.1',
description='Simple evented networking library, designed for custom protocols.',
author='Sven Slootweg',
author_email='pyreactor@cryto.net',
url='http://cryto.net/pyreactor',
packages=['pyreactor'],
provides=['pyreactor'],
install_requires=['msgpack-python']
)

@ -1,6 +1,8 @@
import pyreactor, time
class TestClient(pyreactor.BaseClient):
chunk_size = 8192
def event_receive(self, data):
print "Received message: %s" % repr(data)

Loading…
Cancel
Save