ConnectedUDPRuntimeBackend¶
Wrappers for the runtime's pony_os_* connected UDP functions.
Implements¶
Constructors¶
create¶
Returns¶
Public Functions¶
bind¶
fun ref bind(
the_actor: AsioEventNotify tag,
host: String val,
port: String val,
ip_version: IPVersion = DualStack)
: AsioEventID
Parameters¶
- the_actor: AsioEventNotify tag
- host: String val
- port: String val
- ip_version: IPVersion = DualStack
Returns¶
connect¶
fun ref connect(
fd: U32 val,
host: String val,
port: String val,
ip_version: IPVersion = DualStack)
: Bool val
Parameters¶
Returns¶
- Bool val
close¶
Parameters¶
- fd: U32 val
Returns¶
- None val
recvfrom¶
Read one datagram via @pony_os_recvfrom.
fun ref recvfrom(
event: AsioEventID,
buffer: Pointer[U8 val] tag,
size: USize val)
: (SocketResult , USize val , NetAddress iso^)
Parameters¶
- event: AsioEventID
- buffer: Pointer[U8 val] tag
- size: USize val
Returns¶
- (SocketResult , USize val , NetAddress iso^)
send¶
Parameters¶
Returns¶
sockname¶
Parameters¶
- fd: U32 val
- ip: NetAddress tag
Returns¶
- Bool val
peername¶
Parameters¶
- fd: U32 val
- ip: NetAddress tag
Returns¶
- Bool val