Documentation
¶
Overview ¶
Copyright (C) 2016 Nippon Telegraph and Telephone Corporation.
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 ¶
- func DialerControl(logger *slog.Logger, network, address string, c syscall.RawConn, ...) error
- func SetBindToDevSockopt(sc syscall.RawConn, device string) error
- func SetTCPMD5SigSockopt(l *net.TCPListener, address string, key string) error
- func SetTCPMSSSockopt(conn net.Conn, mss uint16) error
- func SetTCPMinTTLSockopt(conn net.Conn, ttl int) error
- func SetTCPTTLSockopt(conn net.Conn, ttl int) error
- type TCPConn
- type TCPListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialerControl ¶
func SetTCPMD5SigSockopt ¶
func SetTCPMD5SigSockopt(l *net.TCPListener, address string, key string) error
Types ¶
type TCPListener ¶
type TCPListener struct {
// contains filtered or unexported fields
}
func NewTCPListener ¶
func NewTCPListener(logger *slog.Logger, address string, port uint32, bindToDev string, connChan chan net.Conn) (*TCPListener, error)
avoid mapped IPv6 address
func (*TCPListener) Addr ¶
func (l *TCPListener) Addr() net.Addr
func (*TCPListener) Close ¶
func (l *TCPListener) Close()
func (*TCPListener) Listener ¶
func (l *TCPListener) Listener() *net.TCPListener
Click to show internal directories.
Click to hide internal directories.