2
DatagramTransport API
Eugene Kabanov edited this page 2018-05-30 09:34:18 +03:00
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``.