-
Notifications
You must be signed in to change notification settings - Fork 52
DatagramTransport API
Eugene Kabanov edited this page May 30, 2018
·
2 revisions
proc sendTo*(transp: DatagramTransport, pbytes: pointer, nbytes: int,
remote: TransportAddress) {.async.} =
## Send buffer with pointer ``pbytes`` and size ``nbytes`` using transport
## ``transp`` to remote destination address ``remote``.
proc send*(transp: DatagramTransport, pbytes: pointer,
nbytes: int) {.async.} =
## Send buffer with pointer ``pbytes`` and size ``nbytes`` using transport
## ``transp`` to remote destination address which was bounded on transport.
proc join*(transp: DatagramTransport) {.async.} =
## Wait until the transport ``transp`` will be closed.
proc close*(transp: DatagramTransport) =
## Closes and frees resources of transport ``transp``.