during v0.3.0-rc.3 (2021-10-23T17:45:46Z)
Home
Dub
Repo
ClientContext
echo_server
app
Undocumented in source.
nothrow @
nogc
struct
ClientContext {
BitFlags
!
ClientState
state
;
ubyte
[][
2
]
buffers
;
IOContext
readCtx
;
IOContext
writeCtx
;
int
lastRead
;
void
swapBuffers
();
}
Members
Functions
swapBuffers
void
swapBuffers
()
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
buffers
ubyte
[][
2
]
buffers
;
Undocumented in source.
lastRead
int
lastRead
;
Undocumented in source.
readCtx
IOContext
readCtx
;
Undocumented in source.
state
BitFlags
!
ClientState
state
;
Undocumented in source.
writeCtx
IOContext
writeCtx
;
Undocumented in source.
Meta
Source
See Implementation
echo_server
app
aliases
IOBuffer
enums
ClientState
OP
functions
acceptNext
closeClient
initServer
main
onAccept
onRead
onWrite
readNext
writeNext
manifest constants
BUF_SIZE
MAX_CLIENTS
SOCK_NONBLOCK
structs
ClientContext
IOContext
variables
PORT
bpool
cpool
totalClients