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

All Samples(14)  |  Call(13)  |  Derive(0)  |  Import(1)

src/f/l/flashproxy-HEAD/flashproxy/fac.py   flashproxy(Download)
        addr = parse_addr_spec(get_unique("client"), defhost, defport)
        transport = get_unique("client-transport", DEFAULT_CLIENT_TRANSPORT)
        yield reg.Endpoint(addr, transport)
 
def skip_space(pos, line):

src/f/l/flashproxy-HEAD/facilitator/facilitator-test.py   flashproxy(Download)
 
from flashproxy import fac
from flashproxy.reg import Transport, Endpoint
from flashproxy.util import format_addr
 
        self.pts2.addEndpoint("C", "b|p")
        self.pts2.addEndpoint("D", "a|q")
        expected = (Endpoint("A", Transport("a","p")), Endpoint("B", Transport("a","p")))
        empty = Endpoints.EMPTY_MATCH
        self.assertEquals(expected, Endpoints.match(self.pts, self.pts2, ["p"]))
    def test_match_unequal_client_server(self):
        self.pts.addEndpoint("A", "a|p")
        self.pts2 = Endpoints(af=socket.AF_INET)
        self.pts2.addEndpoint("B", "a|q")
        expected = (Endpoint("A", Transport("a","p")), Endpoint("B", Transport("a","q")))