feat(c/libuv): Add tcp, udp, poll, core, stream, err features

feat(c/io): add libuv async io with io, tcp, udp, timer, dns, loop

feat(c/io): add libuv async io with stream, req, handle

feat(c/libuv): rename c/io to c/libuv, and improve errro, net, handle, stream

feat(c/libuv): Add a libuv demo: echo_server

refactor(c/libuv): Adjust comments and file names to accommodate merge
This commit is contained in:
赵英杰
2024-07-19 15:17:20 +08:00
committed by hackerchai
parent 545f9f2cca
commit e9d4328fad
5 changed files with 895 additions and 74 deletions

View File

@@ -91,10 +91,23 @@ type SockaddrIn struct {
Zero [8]c.Char
}
type SockaddrIn6 struct {
Len uint8
Family uint8
Port uint16
Flowinfo c.Uint
Addr In6Addr
ScopeId c.Uint
}
type InAddr struct {
Addr c.Uint
}
type In6Addr struct {
U6Addr [16]uint8
}
type SockAddr struct {
Len uint8
Family uint8