atls

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Code generated by cmd/cgo; DO NOT EDIT. Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialTLSClient

func DialTLSClient(hostname string, port int) (net.Conn, error)

func Listen

func Listen(addr string, cert []byte, key []byte) (net.Listener, error)

Types

type ATLSConn

type ATLSConn struct {
	// contains filtered or unexported fields
}

func (*ATLSConn) Close

func (c *ATLSConn) Close() error

func (*ATLSConn) LocalAddr

func (c *ATLSConn) LocalAddr() net.Addr

func (*ATLSConn) Read

func (c *ATLSConn) Read(b []byte) (int, error)

func (*ATLSConn) RemoteAddr

func (c *ATLSConn) RemoteAddr() net.Addr

func (*ATLSConn) SetDeadline

func (c *ATLSConn) SetDeadline(t time.Time) error

func (*ATLSConn) SetReadDeadline

func (c *ATLSConn) SetReadDeadline(t time.Time) error

func (*ATLSConn) SetWriteDeadline

func (c *ATLSConn) SetWriteDeadline(t time.Time) error

func (*ATLSConn) Write

func (c *ATLSConn) Write(b []byte) (int, error)

type ATLSServerListener

type ATLSServerListener struct {
	// contains filtered or unexported fields
}

func (*ATLSServerListener) Accept

func (l *ATLSServerListener) Accept() (net.Conn, error)

accept implements the Accept method in the [Listener] interface; it waits for the next call and returns a generic [Conn].

func (*ATLSServerListener) Addr

func (l *ATLSServerListener) Addr() net.Addr

addr returns the listener's network address, a [*TCPAddr]. the Addr returned is shared by all invocations of Addr, so do not modify it.

func (*ATLSServerListener) Close

func (l *ATLSServerListener) Close() error

close stops listening on the TCP address. already Accepted connections are not closed.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL