Types
DescriptorFlag {.pure.} = enum CloseOnExec, NonBlock
- Source Edit
Consts
AsyncDescriptorDefault = {DescriptorFlag.CloseOnExec, DescriptorFlag.NonBlock}
- Source Edit
PipeHeaderName = r"\\.\pipe\LOCAL\chronos\"
- Source Edit
SignalPrefixName = r"Local\chronos-events-"
- Source Edit
Procs
proc acceptConn(a1: cint; a2: ptr SockAddr; a3: ptr SockLen; a4: set[DescriptorFlag]): Result[cint, OSErrorCode] {. ...raises: [], tags: [].}
- Source Edit
proc createOsPipe(readset, writeset: set[DescriptorFlag]): Result[ tuple[read: cint, write: cint], OSErrorCode] {....raises: [], tags: [].}
- Source Edit
proc getDescriptorInheritance(s: cint): Result[bool, OSErrorCode] {....raises: [], tags: [].}
- Source Edit
proc setDescriptorBlocking(s: cint; value: bool): Result[void, OSErrorCode] {. ...raises: [], tags: [].}
- Source Edit
proc setDescriptorBlocking(s: SocketHandle; value: bool): Result[void, OSErrorCode] {....raises: [], tags: [].}
- Source Edit
proc setDescriptorFlags(s: cint; nonblock, cloexec: bool): Result[void, OSErrorCode] {....raises: [], tags: [].}
- Source Edit
proc setDescriptorInheritance(s: cint; value: bool): Result[void, OSErrorCode] {. ...raises: [], tags: [].}
- Source Edit
Templates
template handleEintr(body: untyped): untyped
- Source Edit