type net.Conn
109 uses
net (current package)
dial.go#L398: func Dial(network, address string) (Conn, error) {
dial.go#L413: func DialTimeout(network, address string, timeout time.Duration) (Conn, error) {
dial.go#L432: func (d *Dialer) Dial(network, address string) (Conn, error) {
dial.go#L454: func (d *Dialer) DialContext(ctx context.Context, network, address string) (Conn, error) {
dial.go#L513: func (sd *sysDialer) dialParallel(ctx context.Context, primaries, fallbacks addrList) (Conn, error) {
dial.go#L522: Conn
dial.go#L587: func (sd *sysDialer) dialSerial(ctx context.Context, ras addrList) (Conn, error) {
dial.go#L631: func (sd *sysDialer) dialSingle(ctx context.Context, ra Addr) (c Conn, err error) {
dnsclient_unix.go#L101: func dnsPacketRoundTrip(c Conn, id uint16, query dnsmessage.Question, b []byte) (dnsmessage.Parser, dnsmessage.Header, error) {
dnsclient_unix.go#L128: func dnsStreamRoundTrip(c Conn, id uint16, query dnsmessage.Question, b []byte) (dnsmessage.Parser, dnsmessage.Header, error) {
file.go#L21: func FileConn(f *os.File) (c Conn, err error) {
file_unix.go#L70: func fileConn(f *os.File) (Conn, error) {
lookup.go#L150: Dial func(ctx context.Context, network, address string) (Conn, error)
lookup.go#L678: func (r *Resolver) dial(ctx context.Context, network, server string) (Conn, error) {
lookup.go#L684: var c Conn
net.go#L109: type Conn interface {
net.go#L382: Accept() (Conn, error)
pipe.go#L113: func Pipe() (Conn, Conn) {
tcpsock.go#L311: func (l *TCPListener) Accept() (Conn, error) {
unixsock.go#L256: func (l *UnixListener) Accept() (Conn, error) {
net/http
h2_bundle.go#L3092: func http2tlsUnderlyingConn(tc *tls.Conn) net.Conn {
h2_bundle.go#L4213: func (s *http2Server) ServeConn(c net.Conn, opts *http2ServeConnOpts) {
h2_bundle.go#L4346: func http2serverConnBaseContext(c net.Conn, opts *http2ServeConnOpts) (ctx context.Context, cancel func()) {
h2_bundle.go#L4367: conn net.Conn
h2_bundle.go#L7158: DialTLSContext func(ctx context.Context, network, addr string, cfg *tls.Config) (net.Conn, error)
h2_bundle.go#L7168: DialTLS func(network, addr string, cfg *tls.Config) (net.Conn, error)
h2_bundle.go#L7377: tconn net.Conn // usually *tls.Conn, except specialized impls
h2_bundle.go#L7539: conn net.Conn
h2_bundle.go#L7771: func (t *http2Transport) dialTLS(ctx context.Context, network, addr string, tlsCfg *tls.Config) (net.Conn, error) {
h2_bundle.go#L7819: func (t *http2Transport) NewClientConn(c net.Conn) (*http2ClientConn, error) {
h2_bundle.go#L7823: func (t *http2Transport) newClientConn(c net.Conn, singleUse bool) (*http2ClientConn, error) {
responsecontroller.go#L66: func (c *ResponseController) Hijack() (net.Conn, *bufio.ReadWriter, error) {
server.go#L205: Hijack() (net.Conn, *bufio.ReadWriter, error)
server.go#L265: rwc net.Conn
server.go#L316: func (c *conn) hijackLocked() (rwc net.Conn, buf *bufio.ReadWriter, err error) {
server.go#L624: func (srv *Server) newConn(rwc net.Conn) *conn {
server.go#L1794: func (c *conn) setState(nc net.Conn, state ConnState, runHook bool) {
server.go#L2072: func (w *response) Hijack() (rwc net.Conn, buf *bufio.ReadWriter, err error) {
server.go#L2691: ConnState func(net.Conn, ConnState)
server.go#L2711: ConnContext func(ctx context.Context, c net.Conn) context.Context
server.go#L3552: net.Conn
server.go#L3560: func newLoggingConn(baseName string, c net.Conn) net.Conn {
socks_bundle.go#L27: func (d *socksDialer) connect(ctx context.Context, c net.Conn, address string) (_ net.Addr, ctxErr error) {
socks_bundle.go#L262: net.Conn
socks_bundle.go#L284: ProxyDial func(context.Context, string, string) (net.Conn, error)
socks_bundle.go#L307: func (d *socksDialer) DialContext(ctx context.Context, network, address string) (net.Conn, error) {
socks_bundle.go#L317: var c net.Conn
socks_bundle.go#L343: func (d *socksDialer) DialWithConn(ctx context.Context, c net.Conn, network, address string) (net.Addr, error) {
socks_bundle.go#L366: func (d *socksDialer) Dial(network, address string) (net.Conn, error) {
socks_bundle.go#L372: var c net.Conn
transport.go#L136: DialContext func(ctx context.Context, network, addr string) (net.Conn, error)
transport.go#L148: Dial func(network, addr string) (net.Conn, error)
transport.go#L160: DialTLSContext func(ctx context.Context, network, addr string) (net.Conn, error)
transport.go#L168: DialTLS func(network, addr string) (net.Conn, error)
transport.go#L1181: func (t *Transport) dial(ctx context.Context, network, addr string) (net.Conn, error) {
transport.go#L1333: func (t *Transport) customDialTLS(ctx context.Context, network, addr string) (conn net.Conn, err error) {
transport.go#L1905: conn net.Conn
transport_default_other.go#L14: func defaultTransportDialContext(dialer *net.Dialer) func(context.Context, string, string) (net.Conn, error) {
net/http/httptrace
trace.go#L242: Conn net.Conn
crypto/tls
common.go#L446: Conn net.Conn
conn.go#L29: conn net.Conn
conn.go#L161: func (c *Conn) NetConn() net.Conn {
conn.go#L574: Conn net.Conn
conn.go#L579: func (c *Conn) newRecordHeaderError(conn net.Conn, msg string) (err RecordHeaderError) {
tls.go#L34: func Server(conn net.Conn, config *Config) *Conn {
tls.go#L47: func Client(conn net.Conn, config *Config) *Conn {
tls.go#L65: func (l *listener) Accept() (net.Conn, error) {
tls.go#L196: func (d *Dialer) Dial(network, addr string) (net.Conn, error) {
tls.go#L216: func (d *Dialer) DialContext(ctx context.Context, network, addr string) (net.Conn, error) {
github.com/gotd/td/internal/mtproxy/obfuscator
dialer.go#L12: net.Conn
dialer.go#L17: func Obfuscated2(rand io.Reader, conn net.Conn) *Conn {
dialer.go#L25: func FakeTLS(rand io.Reader, conn net.Conn) *Conn {
github.com/gotd/td/internal/wsutil
conn.go#L11: func NetConn(c *websocket.Conn) net.Conn {
github.com/gotd/td/telegram/dcs
mtproxy.go#L61: func (m mtProxy) handshakeConn(c net.Conn, dc int) (transport.Conn, error) {
protocol.go#L10: Handshake(conn net.Conn) (transport.Conn, error)
resolver.go#L20: type DialFunc func(ctx context.Context, network, addr string) (net.Conn, error)
resolver.go#L27: Handshake(conn net.Conn) (transport.Conn, error)
github.com/gotd/td/transport
connection.go#L25: conn net.Conn
listener.go#L35: net.Conn
obfuscated.go#L22: net.Conn
obfuscated.go#L43: func (l obfListener) Accept() (_ net.Conn, err error) {
protocol.go#L63: func (p Protocol) Handshake(conn net.Conn) (Conn, error) {
websocket.go#L91: func (l wsListener) Accept() (net.Conn, error) {
websocket.go#L117: net.Conn
golang.org/x/net/internal/socks
client.go#L21: func (d *Dialer) connect(ctx context.Context, c net.Conn, address string) (_ net.Addr, ctxErr error) {
socks.go#L106: net.Conn
socks.go#L128: ProxyDial func(context.Context, string, string) (net.Conn, error)
socks.go#L151: func (d *Dialer) DialContext(ctx context.Context, network, address string) (net.Conn, error) {
socks.go#L161: var c net.Conn
socks.go#L187: func (d *Dialer) DialWithConn(ctx context.Context, c net.Conn, network, address string) (net.Addr, error) {
socks.go#L210: func (d *Dialer) Dial(network, address string) (net.Conn, error) {
socks.go#L216: var c net.Conn
golang.org/x/net/proxy
dial.go#L14: DialContext(ctx context.Context, network, address string) (net.Conn, error)
dial.go#L25: func Dial(ctx context.Context, network, address string) (net.Conn, error) {
dial.go#L35: func dialContext(ctx context.Context, d Dialer, network, address string) (net.Conn, error) {
dial.go#L37: conn net.Conn
direct.go#L23: func (direct) Dial(network, addr string) (net.Conn, error) {
direct.go#L28: func (direct) DialContext(ctx context.Context, network, addr string) (net.Conn, error) {
per_host.go#L36: func (p *PerHost) Dial(network, addr string) (c net.Conn, err error) {
per_host.go#L47: func (p *PerHost) DialContext(ctx context.Context, network, addr string) (c net.Conn, err error) {
proxy.go#L21: Dial(network, addr string) (c net.Conn, err error)
socks5.go#L21: d.ProxyDial = func(ctx context.Context, network string, address string) (net.Conn, error) {
socks5.go#L25: d.ProxyDial = func(ctx context.Context, network string, address string) (net.Conn, error) {
nhooyr.io/websocket
netconn.go#L48: func NetConn(ctx context.Context, c *Conn, msgType MessageType) net.Conn {
netconn.go#L115: var _ net.Conn = &netConn{}
netconn_notjs.go#L9: if unc, ok := nc.c.rwc.(net.Conn); ok {
netconn_notjs.go#L16: if unc, ok := nc.c.rwc.(net.Conn); ok {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |