package http:nbio/poly

⌘K
Ctrl+K
or
/

    Types

    Closable ¶

    Closable :: nbio.Closable

    Completion ¶

    Completion :: nbio.Completion

    IO ¶

    IO :: nbio._IO

    Poll_Event ¶

    Poll_Event :: nbio.Poll_Event

    Whence ¶

    Whence :: nbio.Whence

    Constants

    This section is empty.

    Variables

    This section is empty.

    Procedures

    accept1 ¶

    accept1 :: proc(io: ^nbio._IO, socket: net.TCP_Socket, p: $, callback: $C/proc(p: $, client: net.TCP_Socket, source: net.Endpoint, err: net.Network_Error)) {…}

    accept2 ¶

    accept2 :: proc(io: ^nbio._IO, socket: net.TCP_Socket, p: $, p2: $, callback: $C/proc(p: $, p2: $, client: net.TCP_Socket, source: net.Endpoint, err: net.Network_Error)) {…}

    accept3 ¶

    accept3 :: proc(
    	io:       ^nbio._IO, 
    	socket:   net.TCP_Socket, 
    	p:        $, 
    	p2:       $, 
    	p3:       $, 
    	callback: $C/proc(
    	p:      $, 
    	p2:     $, 
    	p3:     $, 
    	client: net.TCP_Socket, 
    	source: net.Endpoint, 
    	err:    net.Network_Error, 
    ), 
    ) {…}

    close1 ¶

    close1 :: proc(io: ^nbio._IO, fd: nbio.Closable, p: $, callback: $C/proc(p: $, ok: bool)) {…}

    close2 ¶

    close2 :: proc(io: ^nbio._IO, fd: nbio.Closable, p: $, p2: $, callback: $C/proc(p: $, p2: $, ok: bool)) {…}

    close3 ¶

    close3 :: proc(
    	io:       ^nbio._IO, 
    	fd:       nbio.Closable, 
    	p:        $, 
    	p2:       $, 
    	p3:       $, 
    	callback: $C/proc(p: $, p2: $, p3: $, ok: bool), 
    ) {…}

    close_no_cb ¶

    close_no_cb :: proc(io: ^nbio._IO, fd: nbio.Closable) {…}

    connect1 ¶

    connect1 :: proc(io: ^nbio._IO, endpoint: net.Endpoint, p: $, callback: $C/proc(p: $, socket: net.TCP_Socket, err: net.Network_Error)) {…}

    connect2 ¶

    connect2 :: proc(io: ^nbio._IO, endpoint: net.Endpoint, p: $, p2: $, callback: $C/proc(p: $, p2: $, socket: net.TCP_Socket, err: net.Network_Error)) {…}

    connect3 ¶

    connect3 :: proc(
    	io:       ^nbio._IO, 
    	endpoint: net.Endpoint, 
    	p:        $, 
    	p2:       $, 
    	p3:       $, 
    	callback: $C/proc(p: $, p2: $, p3: $, socket: net.TCP_Socket, err: net.Network_Error), 
    ) {…}

    next_tick1 ¶

    next_tick1 :: proc(io: ^nbio._IO, p: $, callback: $C/proc(p: $)) {…}

    next_tick2 ¶

    next_tick2 :: proc(io: ^nbio._IO, p: $, p2: $, callback: $C/proc(p: $, p2: $)) {…}

    next_tick3 ¶

    next_tick3 :: proc(io: ^nbio._IO, p: $, p2: $, p3: $, callback: $C/proc(p: $, p2: $, p3: $)) {…}

    poll1 ¶

    poll1 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	event:    nbio.Poll_Event, 
    	multi:    bool, 
    	p:        $, 
    	callback: $C/proc(p: $, event: nbio.Poll_Event), 
    ) {…}

    poll2 ¶

    poll2 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	event:    nbio.Poll_Event, 
    	multi:    bool, 
    	p:        $, 
    	p2:       $, 
    	callback: $C/proc(p: $, p2: $, event: nbio.Poll_Event), 
    ) {…}

    poll3 ¶

    poll3 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	event:    nbio.Poll_Event, 
    	multi:    bool, 
    	p:        $, 
    	p2:       $, 
    	p3:       $, 
    	callback: $C/proc(p: $, p2: $, p3: $, event: nbio.Poll_Event), 
    ) {…}

    read1 ¶

    read1 :: proc(io: ^nbio._IO, fd: os.Handle, buf: []u8, p: $, callback: $C/proc(p: $, read: int, err: os.Error)) {…}

    read2 ¶

    read2 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	callback: $C/proc(p: $, p2: $, read: int, err: os.Error), 
    ) {…}

    read3 ¶

    read3 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	p3:       $, 
    	callback: $C/proc(p: $, p2: $, p3: $, read: int, err: os.Error), 
    ) {…}

    read_all1 ¶

    read_all1 :: proc(io: ^nbio._IO, fd: os.Handle, buf: []u8, p: $, callback: $C/proc(p: $, read: int, err: os.Error)) {…}

    read_all2 ¶

    read_all2 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	callback: $C/proc(p: $, p2: $, read: int, err: os.Error), 
    ) {…}

    read_all3 ¶

    read_all3 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	p3:       $, 
    	callback: $C/proc(p: $, p2: $, p3: $, read: int, err: os.Error), 
    ) {…}

    read_at1 ¶

    read_at1 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	offset:   int, 
    	buf:      []u8, 
    	p:        $, 
    	callback: $C/proc(p: $, read: int, err: os.Error), 
    ) {…}

    read_at2 ¶

    read_at2 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	offset:   int, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	callback: $C/proc(p: $, p2: $, read: int, err: os.Error), 
    ) {…}

    read_at3 ¶

    read_at3 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	offset:   int, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	p3:       $, 
    	callback: $C/proc(p: $, p2: $, p3: $, read: int, err: os.Error), 
    ) {…}

    read_at_all1 ¶

    read_at_all1 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	offset:   int, 
    	buf:      []u8, 
    	p:        $, 
    	callback: $C/proc(p: $, read: int, err: os.Error), 
    ) {…}

    read_at_all2 ¶

    read_at_all2 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	offset:   int, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	callback: $C/proc(p: $, p2: $, read: int, err: os.Error), 
    ) {…}

    read_at_all3 ¶

    read_at_all3 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	offset:   int, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	p3:       $, 
    	callback: $C/proc(p: $, p2: $, p3: $, read: int, err: os.Error), 
    ) {…}

    read_full1 ¶

    read_full1 :: proc(io: ^nbio._IO, fd: os.Handle, p: $, callback: $C/proc(p: $, buf: []u8, read: int, err: os.Error), allocator := context.allocator) {…}

    read_full2 ¶

    read_full2 :: proc(
    	io:        ^nbio._IO, 
    	fd:        os.Handle, 
    	p:         $, 
    	p2:        $, 
    	callback:  $C/proc(p: $, p2: $, buf: []u8, read: int, err: os.Error), 
    	allocator := context.allocator, 
    ) {…}

    read_full3 ¶

    read_full3 :: proc(
    	io:        ^nbio._IO, 
    	fd:        os.Handle, 
    	p:         $, 
    	p2:        $, 
    	p3:        $, 
    	callback:  $C/proc(
    	p:    $, 
    	p2:   $, 
    	p3:   $, 
    	buf:  []u8, 
    	read: int, 
    	err:  os.Error, 
    ), 
    	allocator := context.allocator, 
    ) {…}

    recv1 ¶

    recv1 :: proc(io: ^nbio._IO, socket: net.Any_Socket, buf: []u8, p: $, callback: $C/proc(p: $, received: int, udp_client: runtime.Maybe($T=Endpoint), err: net.Network_Error)) {…}

    recv2 ¶

    recv2 :: proc(
    	io:       ^nbio._IO, 
    	socket:   net.Any_Socket, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	callback: $C/proc(p: $, p2: $, received: int, udp_client: runtime.Maybe($T=Endpoint), err: net.Network_Error), 
    ) {…}

    recv3 ¶

    recv3 :: proc(
    	io:       ^nbio._IO, 
    	socket:   net.Any_Socket, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	p3:       $, 
    	callback: $C/proc(
    	p:          $, 
    	p2:         $, 
    	p3:         $, 
    	received:   int, 
    	udp_client: runtime.Maybe($T=Endpoint), 
    	err:        net.Network_Error, 
    ), 
    ) {…}

    recv_all1 ¶

    recv_all1 :: proc(io: ^nbio._IO, socket: net.Any_Socket, buf: []u8, p: $, callback: $C/proc(p: $, received: int, udp_client: runtime.Maybe($T=Endpoint), err: net.Network_Error)) {…}

    recv_all2 ¶

    recv_all2 :: proc(
    	io:       ^nbio._IO, 
    	socket:   net.Any_Socket, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	callback: $C/proc(p: $, p2: $, received: int, udp_client: runtime.Maybe($T=Endpoint), err: net.Network_Error), 
    ) {…}

    recv_all3 ¶

    recv_all3 :: proc(
    	io:       ^nbio._IO, 
    	socket:   net.Any_Socket, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	p3:       $, 
    	callback: $C/proc(
    	p:          $, 
    	p2:         $, 
    	p3:         $, 
    	received:   int, 
    	udp_client: runtime.Maybe($T=Endpoint), 
    	err:        net.Network_Error, 
    ), 
    ) {…}

    send_all_tcp1 ¶

    send_all_tcp1 :: proc(io: ^nbio._IO, socket: net.TCP_Socket, buf: []u8, p: $, callback: $C/proc(p: $, sent: int, err: net.Network_Error)) {…}

    send_all_tcp2 ¶

    send_all_tcp2 :: proc(
    	io:       ^nbio._IO, 
    	socket:   net.TCP_Socket, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	callback: $C/proc(p: $, p2: $, sent: int, err: net.Network_Error), 
    ) {…}

    send_all_tcp3 ¶

    send_all_tcp3 :: proc(
    	io:       ^nbio._IO, 
    	socket:   net.TCP_Socket, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	p3:       $, 
    	callback: $C/proc(p: $, p2: $, p3: $, sent: int, err: net.Network_Error), 
    ) {…}

    send_all_udp1 ¶

    send_all_udp1 :: proc(
    	io:       ^nbio._IO, 
    	endpoint: net.Endpoint, 
    	socket:   net.UDP_Socket, 
    	buf:      []u8, 
    	p:        $, 
    	callback: $C/proc(p: $, sent: int, err: net.Network_Error), 
    ) {…}

    send_all_udp2 ¶

    send_all_udp2 :: proc(
    	io:       ^nbio._IO, 
    	endpoint: net.Endpoint, 
    	socket:   net.UDP_Socket, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	callback: $C/proc(p: $, p2: $, sent: int, err: net.Network_Error), 
    ) {…}

    send_all_udp3 ¶

    send_all_udp3 :: proc(
    	io:       ^nbio._IO, 
    	endpoint: net.Endpoint, 
    	socket:   net.UDP_Socket, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	p3:       $, 
    	callback: $C/proc(p: $, p2: $, p3: $, sent: int, err: net.Network_Error), 
    ) {…}

    send_tcp1 ¶

    send_tcp1 :: proc(io: ^nbio._IO, socket: net.TCP_Socket, buf: []u8, p: $, callback: $C/proc(p: $, sent: int, err: net.Network_Error)) {…}

    send_tcp2 ¶

    send_tcp2 :: proc(
    	io:       ^nbio._IO, 
    	socket:   net.TCP_Socket, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	callback: $C/proc(p: $, p2: $, sent: int, err: net.Network_Error), 
    ) {…}

    send_tcp3 ¶

    send_tcp3 :: proc(
    	io:       ^nbio._IO, 
    	socket:   net.TCP_Socket, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	p3:       $, 
    	callback: $C/proc(p: $, p2: $, p3: $, sent: int, err: net.Network_Error), 
    ) {…}

    send_udp1 ¶

    send_udp1 :: proc(
    	io:       ^nbio._IO, 
    	endpoint: net.Endpoint, 
    	socket:   net.UDP_Socket, 
    	buf:      []u8, 
    	p:        $, 
    	callback: $C/proc(p: $, sent: int, err: net.Network_Error), 
    ) {…}

    send_udp2 ¶

    send_udp2 :: proc(
    	io:       ^nbio._IO, 
    	endpoint: net.Endpoint, 
    	socket:   net.UDP_Socket, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	callback: $C/proc(p: $, p2: $, sent: int, err: net.Network_Error), 
    ) {…}

    send_udp3 ¶

    send_udp3 :: proc(
    	io:       ^nbio._IO, 
    	endpoint: net.Endpoint, 
    	socket:   net.UDP_Socket, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	p3:       $, 
    	callback: $C/proc(p: $, p2: $, p3: $, sent: int, err: net.Network_Error), 
    ) {…}

    timeout1 ¶

    timeout1 :: proc(io: ^nbio._IO, dur: time.Duration, p: $, callback: $C/proc(p: $)) {…}

    timeout2 ¶

    timeout2 :: proc(io: ^nbio._IO, dur: time.Duration, p: $, p2: $, callback: $C/proc(p: $, p2: $)) {…}

    timeout3 ¶

    timeout3 :: proc(
    	io:       ^nbio._IO, 
    	dur:      time.Duration, 
    	p:        $, 
    	p2:       $, 
    	p3:       $, 
    	callback: $C/proc(p: $, p2: $, p3: $), 
    ) {…}

    write1 ¶

    write1 :: proc(io: ^nbio._IO, fd: os.Handle, buf: []u8, p: $, callback: $C/proc(p: $, read: int, err: os.Error)) {…}

    write2 ¶

    write2 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	callback: $C/proc(p: $, p2: $, read: int, err: os.Error), 
    ) {…}

    write3 ¶

    write3 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	p3:       $, 
    	callback: $C/proc(p: $, p2: $, p3: $, read: int, err: os.Error), 
    ) {…}

    write_all1 ¶

    write_all1 :: proc(io: ^nbio._IO, fd: os.Handle, buf: []u8, p: $, callback: $C/proc(p: $, read: int, err: os.Error)) {…}

    write_all2 ¶

    write_all2 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	callback: $C/proc(p: $, p2: $, read: int, err: os.Error), 
    ) {…}

    write_all3 ¶

    write_all3 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	p3:       $, 
    	callback: $C/proc(p: $, p2: $, p3: $, read: int, err: os.Error), 
    ) {…}

    write_at1 ¶

    write_at1 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	offset:   int, 
    	buf:      []u8, 
    	p:        $, 
    	callback: $C/proc(p: $, read: int, err: os.Error), 
    ) {…}

    write_at2 ¶

    write_at2 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	offset:   int, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	callback: $C/proc(p: $, p2: $, read: int, err: os.Error), 
    ) {…}

    write_at3 ¶

    write_at3 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	offset:   int, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	p3:       $, 
    	callback: $C/proc(p: $, p2: $, p3: $, read: int, err: os.Error), 
    ) {…}

    write_at_all1 ¶

    write_at_all1 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	offset:   int, 
    	buf:      []u8, 
    	p:        $, 
    	callback: $C/proc(p: $, read: int, err: os.Error), 
    ) {…}

    write_at_all2 ¶

    write_at_all2 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	offset:   int, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	callback: $C/proc(p: $, p2: $, read: int, err: os.Error), 
    ) {…}

    write_at_all3 ¶

    write_at_all3 :: proc(
    	io:       ^nbio._IO, 
    	fd:       os.Handle, 
    	offset:   int, 
    	buf:      []u8, 
    	p:        $, 
    	p2:       $, 
    	p3:       $, 
    	callback: $C/proc(p: $, p2: $, p3: $, read: int, err: os.Error), 
    ) {…}

    Procedure Groups

    accept ¶

    accept :: proc{
    	accept1,
    	accept2,
    	accept3,
    }
    

    poll ¶

    poll :: proc{
    	poll1,
    	poll2,
    	poll3,
    }
    

    read ¶

    read :: proc{
    	read1,
    	read2,
    	read3,
    }
    

    recv ¶

    recv :: proc{
    	recv1,
    	recv2,
    	recv3,
    }
    

    write ¶

    write :: proc{
    	write1,
    	write2,
    	write3,
    }
    

    Source Files

    Generation Information

    Generated with odin version dev-2024-10 (vendor "odin") Linux_amd64 @ 2024-10-30 12:34:52.776837575 +0000 UTC