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

All Samples(6)  |  Call(0)  |  Derive(3)  |  Import(3)
Basic class that abstracts a Transport.
Only sends and receives data.

By default nothing is implemented and subclasses MUST implement relevant methods.

src/s/a/SAPO-Broker-0.0.2/src/Broker/Transport/INET.py   SAPO-Broker(Download)
from Base import Transport as BaseTransport, Message
import socket
import logging
LOG = logging.getLogger('Broker.Transport.INET')
 
class Transport(BaseTransport):
 
    def __init__(self, host, port, timeout=None):
        BaseTransport.__init__(self)
        self.__host = host

src/s/a/SAPO-Broker-0.0.2/src/Broker/Transport/HTTP.py   SAPO-Broker(Download)
from Base import Transport as BaseTransport
 
import logging
LOG = logging.getLogger('Broker.Transport.INET')
 
class Transport(BaseTransport):

src/s/a/SAPO-Broker-0.0.2/src/Broker/Transport/DropBox.py   SAPO-Broker(Download)
import os, os.path, tempfile, shutil
 
from Base import Transport as BaseTransport
import logging
LOG = logging.getLogger('Broker.Transport.DropBox')
 
class Transport(BaseTransport):