echo_server.app

Undocumented in source.

Members

Aliases

IOBuffer
alias IOBuffer = ubyte[BUF_SIZE]
Undocumented in source.

Enums

ClientState
enum ClientState
Undocumented in source.
OP
enum OP
Undocumented in source.

Functions

acceptNext
int acceptNext(Uring ring, IOContext ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
closeClient
void closeClient(ClientContext* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
initServer
int initServer(Uring ring, ushort port)
Undocumented in source. Be warned that the author may not have intended to support it.
main
int main()
Undocumented in source. Be warned that the author may not have intended to support it.
onAccept
int onAccept(Uring ring, IOContext ioctx)
Undocumented in source. Be warned that the author may not have intended to support it.
onRead
int onRead(Uring ring, IOContext ioctx, int len)
Undocumented in source. Be warned that the author may not have intended to support it.
onWrite
int onWrite(Uring ring, IOContext ioctx, int len)
Undocumented in source. Be warned that the author may not have intended to support it.
readNext
int readNext(Uring ring, ClientContext ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
writeNext
int writeNext(Uring ring, ClientContext ctx)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

BUF_SIZE
enum BUF_SIZE;
Undocumented in source.
MAX_CLIENTS
enum MAX_CLIENTS;
Undocumented in source.
SOCK_NONBLOCK
enum SOCK_NONBLOCK;
Undocumented in source.

Structs

ClientContext
struct ClientContext
Undocumented in source.
IOContext
struct IOContext
Undocumented in source.

Variables

PORT
enum ushort PORT;
Undocumented in source.
bpool
FixedPool!(IOBuffer.sizeof, MAX_CLIENTS * 2, IOBuffer) bpool;
Undocumented in source.
cpool
FixedPool!(ClientContext.sizeof, MAX_CLIENTS, ClientContext) cpool;
Undocumented in source.
totalClients
int totalClients;
Undocumented in source.

Meta