package
Version:
v0.0.0-...-a7c7adb
Opens a new window with list of versions in this module.
Published: Sep 3, 2023
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Socket struct {
FileDescriptor int
}
3.关闭 socket 可以调用 close()[9
为了稍后能打印一些有用的错误和日志,我们也需要实现 fmt.Stringer 接口。我们通过不同的文件描述符来区分不同的 socket
Source Files
¶
Click to show internal directories.
Click to hide internal directories.