Lightbug

Default

Default package containing top-level modules

Modules

__init__

Traits

DefaultConstructible

Extends: AnyType

Methods

__init__
1 Methods
1 Parent Traits

client

1 types

Types

error

1 types1 variables

Types

Aliases

TODO_MESSAGE

as_bytes("TODO")

libc

31 functions6 types255 variables

Functions

Types

Aliases

char_UnsafePointer

UnsafePointer[SIMD[uint8, 1], 0, 0, alignof[::AnyType,__mlir_type.!kgen.target]() if triple_is_nvidia_cuda() else 1]

c_void

SIMD[uint8, 1]

c_char

SIMD[uint8, 1]

c_schar

SIMD[int8, 1]

c_uchar

SIMD[uint8, 1]

c_short

SIMD[int16, 1]

c_ushort

SIMD[uint16, 1]

c_int

SIMD[int32, 1]

c_uint

SIMD[uint32, 1]

c_long

SIMD[int64, 1]

c_ulong

SIMD[uint64, 1]

c_float

SIMD[float32, 1]

c_double

SIMD[float64, 1]

ptrdiff_t

SIMD[int64, 1]

intptr_t

SIMD[int64, 1]

uintptr_t

SIMD[uint64, 1]

sa_family_t

SIMD[uint16, 1]

socklen_t

SIMD[uint32, 1]

in_addr_t

SIMD[uint32, 1]

in_port_t

SIMD[uint16, 1]

O_CLOEXEC

524288

net

9 functions8 types5 variables

Functions

Types

Aliases

TCPAddrList

List[TCPAddr, 0]

missingPortError

"missing port in address"

tooManyColonsError

"too many colons in address"

Traits

Connection

Extends: AnyType, Movable

Methods

__init__
2 overloads
__moveinit__
read
write
close
local_addr
remote_addr
7 Methods
2 Parent Traits

Addr

Extends: AnyType, CollectionElement, Copyable, Movable

Methods

__init__
2 overloads
__copyinit__
__moveinit__
network
string
5 Methods
4 Parent Traits

AnAddrInfo

Extends: AnyType

Methods

get_ip_address
1 Methods
1 Parent Traits

server

1 types2 variables

Types

service

4 types

Types

Traits

HTTPService

Extends: AnyType

Methods

func
1 Methods
1 Parent Traits

strings

1 functions7 types17 variables

Functions

Types

Aliases

strHttp

"http"

http

"http"

strHttps

"https"

https

"https"

strHttp11

"HTTP/1.1"

strHttp10

"HTTP/1.0"

rChar

"\0D"

nChar

"\0A"

lineBreak

"\0D\0A"

tab

"\09"

tab_byte

ord("\09")

uri

1 functions1 types

Functions

Types

utils

2 functions2 types

Functions

Types