better name for interface
This commit is contained in:
parent
fc3507c1f6
commit
591740ce5f
|
@ -13,7 +13,7 @@ from ..transit_server import (
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class ITransitClient(Interface):
|
class IRelayTestClient(Interface):
|
||||||
"""
|
"""
|
||||||
The client interface used by tests.
|
The client interface used by tests.
|
||||||
"""
|
"""
|
||||||
|
@ -69,11 +69,11 @@ class ServerBase:
|
||||||
def new_protocol(self):
|
def new_protocol(self):
|
||||||
"""
|
"""
|
||||||
Create a new client protocol connected to the server.
|
Create a new client protocol connected to the server.
|
||||||
:returns: a ITransitClient implementation
|
:returns: a IRelayTestClient implementation
|
||||||
"""
|
"""
|
||||||
server_protocol = self._transit_server.buildProtocol(('127.0.0.1', 0))
|
server_protocol = self._transit_server.buildProtocol(('127.0.0.1', 0))
|
||||||
|
|
||||||
@implementer(ITransitClient)
|
@implementer(IRelayTestClient)
|
||||||
class TransitClientProtocolTcp(Protocol):
|
class TransitClientProtocolTcp(Protocol):
|
||||||
"""
|
"""
|
||||||
Speak the transit client protocol used by the tests over TCP
|
Speak the transit client protocol used by the tests over TCP
|
||||||
|
@ -94,7 +94,7 @@ class ServerBase:
|
||||||
def dataReceived(self, data):
|
def dataReceived(self, data):
|
||||||
self._received = self._received + data
|
self._received = self._received + data
|
||||||
|
|
||||||
# ITransitClient API
|
# IRelayTestClient
|
||||||
|
|
||||||
def send(self, data):
|
def send(self, data):
|
||||||
self.transport.write(data)
|
self.transport.write(data)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user