Kaba class Socket ed
Represents a biderectional network connection.
Syntax ed
class Socket
var handle: i32
var uuid: i32
# constructors
func mut __init__()
# functions
func mut accept() -> xfer[Socket]
func can_read() -> bool
func can_write() -> bool
func mut close()
func get_sender() -> Address
func is_connected() -> bool
func mut read(size: i32) -> bytes
func mut set_blocking(block: bool)
func mut set_target(target: Address)
func mut write(buf: bytes) -> bool
Functions ed
- func mut accept() -> xfer[Socket]
- ...
- func can_read() -> bool
- ...
- func can_write() -> bool
- ...
- func mut close()
- ...
- func get_sender() -> Address
- ...
- func is_connected() -> bool
- ...
- func mut read(size: i32) -> bytes
- ...
- func mut set_blocking(block: bool)
- ...
- func mut set_target(target: Address)
- ...
- func mut write(buf: bytes) -> bool
- ...
Elements ed
- var handle: i32
- ...
- var uuid: i32
- ...