package http:nbio/poly
⌘K
Ctrl+K
or
/
Overview
Package nbio/poly contains variants of the nbio procedures that use generic/poly data so users can avoid casts and use multiple arguments.
Please reference the documentation in nbio
.
Intention is to import this like so import nbio "nbio/poly"
Index
Types (5)
Constants (0)
This section is empty.
Variables (0)
This section is empty.
Procedures (64)
- accept1
- accept2
- accept3
- close1
- close2
- close3
- close_no_cb
- connect1
- connect2
- connect3
- next_tick1
- next_tick2
- next_tick3
- poll1
- poll2
- poll3
- read1
- read2
- read3
- read_all1
- read_all2
- read_all3
- read_at1
- read_at2
- read_at3
- read_at_all1
- read_at_all2
- read_at_all3
- read_full1
- read_full2
- read_full3
- recv1
- recv2
- recv3
- recv_all1
- recv_all2
- recv_all3
- send_all_tcp1
- send_all_tcp2
- send_all_tcp3
- send_all_udp1
- send_all_udp2
- send_all_udp3
- send_tcp1
- send_tcp2
- send_tcp3
- send_udp1
- send_udp2
- send_udp3
- timeout1
- timeout2
- timeout3
- write1
- write2
- write3
- write_all1
- write_all2
- write_all3
- write_at1
- write_at2
- write_at3
- write_at_all1
- write_at_all2
- write_at_all3
Types
Closable ¶
Closable :: nbio.Closable
Completion ¶
Completion :: nbio.Completion
Poll_Event ¶
Poll_Event :: nbio.Poll_Event
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, ), ) {…}
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), ) {…}
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: $), ) {…}
Procedure Groups
next_tick ¶
next_tick :: proc{ next_tick1, next_tick2, next_tick3, }
read_at_all ¶
read_at_all :: proc{ read_at_all1, read_at_all2, read_at_all3, }
read_entire_file ¶
read_entire_file :: proc{ read_full1, read_full2, read_full3, }
read_full ¶
read_full :: proc{ read_full1, read_full2, read_full3, }
send_all ¶
send_all :: proc{ send_all_tcp1, send_all_tcp2, send_all_tcp3, send_all_udp1, send_all_udp2, send_all_udp3, }
write_all ¶
write_all :: proc{ write_all1, write_all2, write_all3, }
write_at_all ¶
write_at_all :: proc{ write_at_all1, write_at_all2, write_at_all3, }
Source Files
Generation Information
Generated with odin version dev-2024-10 (vendor "odin") Linux_amd64 @ 2024-10-30 12:34:52.776837575 +0000 UTC