Documentation
¶
Overview ¶
Copyright 2023-2024 antlabs. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func Accept(network, addr string, e PollingApi) error
- func Close(fd int) error
- func Dial(network, addr string, e PollingApi) (fd int, err error)
- func GetFdFromConn(c net.Conn) (newFd int, err error)
- func GetMaxFd() int
- func GetSendBufferSize(fd int) (int, error)
- func Read(fd int, p []byte) (n int, err error)
- func SetNoDelay(fd int, nodelay bool) error
- func Write(fd int, p []byte) (n int, err error)
- type PollingApi
- type SafeConns
- type State
- type TriggerType
Constants ¶
View Source
const ( EAGAIN = syscall.EAGAIN EINTR = syscall.EINTR )
Variables ¶
This section is empty.
Functions ¶
func GetSendBufferSize ¶
func SetNoDelay ¶
Types ¶
type PollingApi ¶
type SafeConns ¶
type SafeConns[T any] struct { // contains filtered or unexported fields }
func (*SafeConns[T]) UnsafeConns ¶
func (s *SafeConns[T]) UnsafeConns() []*T
type TriggerType ¶
type TriggerType uint32
水平触发还是边缘触发
const ( TriggerTypeLevel TriggerType = iota TriggerTypeEdge )
Click to show internal directories.
Click to hide internal directories.