PonyTCP
[Source]
Constructors
create
[Source]
new val create()
: PonyTCP val^
Returns
Public Functions
listen
[Source]
fun box listen(
the_actor: AsioEventNotify tag,
host: String val,
port: String val)
: Pointer[AsioEvent val] tag
Parameters
Returns
accept
[Source]
fun box accept(
event: Pointer[AsioEvent val] tag)
: U32 val
Parameters
Returns
close
[Source]
fun box close(
fd: U32 val)
: None val
Parameters
Returns
connect
[Source]
fun box connect(
the_actor: AsioEventNotify tag,
host: String val,
port: String val,
from: String val,
asio_flags: U32 val)
: U32 val
Parameters
Returns
keepalive
[Source]
fun box keepalive(
fd: U32 val,
secs: U32 val)
: None val
Parameters
Returns
peername
[Source]
fun box peername(
fd: U32 val,
ip: NetAddress tag)
: Bool val
Parameters
Returns
receive
[Source]
fun box receive(
event: Pointer[AsioEvent val] tag,
buffer: Pointer[U8 val] tag,
offset: USize val)
: USize val ?
Parameters
Returns
send
[Source]
fun box send(
event: Pointer[AsioEvent val] tag,
buffer: (String val | Array[U8 val] val),
from_offset: USize val = 0)
: USize val ?
Parameters
Returns
shutdown
[Source]
fun box shutdown(
fd: U32 val)
: None val
Parameters
Returns
sockname
[Source]
fun box sockname(
fd: U32 val,
ip: NetAddress tag)
: Bool val
Parameters
Returns
eq
[Source]
fun box eq(
that: PonyTCP val)
: Bool val
Parameters
Returns
ne
[Source]
fun box ne(
that: PonyTCP val)
: Bool val
Parameters
Returns