Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
Start a Pushy server-side connection for a single client, and processes
requests forever.

@type  stdin: file
@param stdin: The reading file for the client.
@type  stdout: file
@param stdout: The writing file for the client.

        def serve_forever(stdin, stdout):
    """
    Start a Pushy server-side connection for a single client, and processes
    requests forever.

    @type  stdin: file
    @param stdin: The reading file for the client.
    @type  stdout: file
    @param stdout: The writing file for the client.
    """

    import pushy.protocol, pushy.util
    c = pushy.protocol.Connection(stdin, stdout, False)
    try:
        c.serve_forever()
    finally:
        pushy.util.logger.debug("Closing connection")
        c.close()
        


src/p/u/pushy-0.5.3/pushy/__init__.py   pushy(Download)
 
from client import connect
from server import serve_forever