docs/api: minor fixes
This commit is contained in:
parent
b0db8add2a
commit
69bab3d814
|
@ -524,6 +524,8 @@ object twice.
|
||||||
|
|
||||||
## Dilation
|
## Dilation
|
||||||
|
|
||||||
|
(NOTE: this API is still in development)
|
||||||
|
|
||||||
To send bulk data, or anything more than a handful of messages, a Wormhole
|
To send bulk data, or anything more than a handful of messages, a Wormhole
|
||||||
can be "dilated" into a form that uses a direct TCP connection between the
|
can be "dilated" into a form that uses a direct TCP connection between the
|
||||||
two endpoints.
|
two endpoints.
|
||||||
|
@ -639,7 +641,7 @@ def FileSendingProtocol(internet.Protocol):
|
||||||
self.transport.loseConnection()
|
self.transport.loseConnection()
|
||||||
f.close()
|
f.close()
|
||||||
def _send(metadata, filename):
|
def _send(metadata, filename):
|
||||||
f = protocol.ClientCreator(reactor,
|
f = protocol.ClientCreator(reactor,
|
||||||
FileSendingProtocol, metadata, filename)
|
FileSendingProtocol, metadata, filename)
|
||||||
subchannel_client_ep.connect(f)
|
subchannel_client_ep.connect(f)
|
||||||
def FileReceivingProtocol(internet.Protocol):
|
def FileReceivingProtocol(internet.Protocol):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user