type net.Conn
141 uses
net (current package)
dial.go#L470: func Dial(network, address string) (Conn, error) {
dial.go#L485: func DialTimeout(network, address string, timeout time.Duration) (Conn, error) {
dial.go#L504: func (d *Dialer) Dial(network, address string) (Conn, error) {
dial.go#L526: func (d *Dialer) DialContext(ctx context.Context, network, address string) (Conn, error) {
dial.go#L655: func (sd *sysDialer) dialParallel(ctx context.Context, primaries, fallbacks addrList) (Conn, error) {
dial.go#L664: Conn
dial.go#L729: func (sd *sysDialer) dialSerial(ctx context.Context, ras addrList) (Conn, error) {
dial.go#L773: func (sd *sysDialer) dialSingle(ctx context.Context, ra Addr) (c Conn, err error) {
dnsclient_unix.go#L109: func dnsPacketRoundTrip(c Conn, id uint16, query dnsmessage.Question, b []byte) (dnsmessage.Parser, dnsmessage.Header, error) {
dnsclient_unix.go#L136: 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_posix.go#L59: func fileConn(f *os.File) (Conn, error) {
lookup.go#L161: Dial func(ctx context.Context, network, address string) (Conn, error)
lookup.go#L687: func (r *Resolver) dial(ctx context.Context, network, server string) (Conn, error) {
lookup.go#L693: var c Conn
net.go#L124: type Conn interface {
net.go#L414: Accept() (Conn, error)
pipe.go#L113: func Pipe() (Conn, Conn) {
tcpsock.go#L383: func (l *TCPListener) Accept() (Conn, error) {
unixsock.go#L263: func (l *UnixListener) Accept() (Conn, error) {
net/http
clientconn.go#L76: NewClientConn(nc net.Conn, internalStateHook func()) (RoundTripper, error)
h2_bundle.go#L882: func (p *http2clientConnPool) addConnIfNeeded(key string, t *http2Transport, c net.Conn) (used bool, err error) {
h2_bundle.go#L918: func (c *http2addConnCall) run(t *http2Transport, key string, nc net.Conn) {
h2_bundle.go#L3706: conn net.Conn // immutable
h2_bundle.go#L3711: func http2newBufferedWriter(conn net.Conn, timeout time.Duration) *http2bufferedWriter {
h2_bundle.go#L3769: func http2writeWithByteTimeout(conn net.Conn, timeout time.Duration, p []byte) (n int, err error) {
h2_bundle.go#L4287: protoHandler := func(hs *Server, c net.Conn, h Handler, sawClientPreface bool) {
h2_bundle.go#L4402: func (s *http2Server) ServeConn(c net.Conn, opts *http2ServeConnOpts) {
h2_bundle.go#L4409: func (s *http2Server) serveConn(c net.Conn, opts *http2ServeConnOpts, newf func(*http2serverConn)) {
h2_bundle.go#L4550: func http2serverConnBaseContext(c net.Conn, opts *http2ServeConnOpts) (ctx context.Context, cancel func()) {
h2_bundle.go#L4571: conn net.Conn
h2_bundle.go#L7365: DialTLSContext func(ctx context.Context, network, addr string, cfg *tls.Config) (net.Conn, error)
h2_bundle.go#L7375: DialTLS func(network, addr string, cfg *tls.Config) (net.Conn, error)
h2_bundle.go#L7545: upgradeFn := func(scheme, authority string, c net.Conn) RoundTripper {
h2_bundle.go#L7605: tconn net.Conn // usually *tls.Conn, except specialized impls
h2_bundle.go#L7804: conn net.Conn
h2_bundle.go#L8044: func (t *http2Transport) dialTLS(ctx context.Context, network, addr string, tlsCfg *tls.Config) (net.Conn, error) {
h2_bundle.go#L8078: func (t *http2Transport) NewClientConn(c net.Conn) (*http2ClientConn, error) {
h2_bundle.go#L8082: func (t *http2Transport) newClientConn(c net.Conn, singleUse bool, internalStateHook func()) (*http2ClientConn, error) {
h2_bundle.go#L10567: func (rt http2noDialH2RoundTripper) NewClientConn(conn net.Conn, internalStateHook func()) (RoundTripper, error) {
h2_bundle.go#L10748: func http2unencryptedNetConnFromTLSConn(tc *tls.Conn) (net.Conn, error) {
h2_bundle.go#L10750: UnencryptedNetConn() net.Conn
responsecontroller.go#L66: func (c *ResponseController) Hijack() (net.Conn, *bufio.ReadWriter, error) {
server.go#L206: Hijack() (net.Conn, *bufio.ReadWriter, error)
server.go#L266: rwc net.Conn
server.go#L317: func (c *conn) hijackLocked() (rwc net.Conn, buf *bufio.ReadWriter, err error) {
server.go#L634: func (s *Server) newConn(rwc net.Conn) *conn {
server.go#L660: rwc net.Conn // rwc is the underlying network connection.
server.go#L1829: func (c *conn) setState(nc net.Conn, state ConnState, runHook bool) {
server.go#L2123: c net.Conn
server.go#L2142: net.Conn // panic on all net.Conn methods
server.go#L2143: conn net.Conn
server.go#L2146: func (c unencryptedNetConnInTLSConn) UnencryptedNetConn() net.Conn {
server.go#L2150: func unencryptedTLSConn(c net.Conn) *tls.Conn {
server.go#L2201: func (w *response) Hijack() (rwc net.Conn, buf *bufio.ReadWriter, err error) {
server.go#L3041: ConnState func(net.Conn, ConnState)
server.go#L3061: ConnContext func(ctx context.Context, c net.Conn) context.Context
server.go#L3990: net.Conn
server.go#L3998: 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#L144: DialContext func(ctx context.Context, network, addr string) (net.Conn, error)
transport.go#L156: Dial func(network, addr string) (net.Conn, error)
transport.go#L168: DialTLSContext func(ctx context.Context, network, addr string) (net.Conn, error)
transport.go#L176: DialTLS func(network, addr string) (net.Conn, error)
transport.go#L1305: func (t *Transport) dial(ctx context.Context, network, addr string) (net.Conn, error) {
transport.go#L1500: func (t *Transport) customDialTLS(ctx context.Context, network, addr string) (conn net.Conn, err error) {
transport.go#L2123: 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#L484: Conn net.Conn
conn.go#L30: conn net.Conn
conn.go#L163: func (c *Conn) NetConn() net.Conn {
conn.go#L575: Conn net.Conn
conn.go#L580: func (c *Conn) newRecordHeaderError(conn net.Conn, msg string) (err RecordHeaderError) {
tls.go#L46: func Server(conn net.Conn, config *Config) *Conn {
tls.go#L59: func Client(conn net.Conn, config *Config) *Conn {
tls.go#L77: func (l *listener) Accept() (net.Conn, error) {
tls.go#L209: func (d *Dialer) Dial(network, addr string) (net.Conn, error) {
tls.go#L229: func (d *Dialer) DialContext(ctx context.Context, network, addr string) (net.Conn, error) {
github.com/coder/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#L8: if unc, ok := nc.c.rwc.(net.Conn); ok {
netconn_notjs.go#L15: if unc, ok := nc.c.rwc.(net.Conn); ok {
github.com/gotd/td/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/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
github.com/gotd/td/wsutil
conn.go#L11: func NetConn(c *websocket.Conn) net.Conn {
github.com/refraction-networking/utls
common.go#L473: Conn net.Conn
conn.go#L29: conn net.Conn
conn.go#L166: func (c *Conn) NetConn() net.Conn {
conn.go#L579: Conn net.Conn
conn.go#L584: 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#L197: func (d *Dialer) Dial(network, addr string) (net.Conn, error) {
tls.go#L217: func (d *Dialer) DialContext(ctx context.Context, network, addr string) (net.Conn, error) {
u_conn.go#L64: func UClient(conn net.Conn, config *Config, clientHelloID ClientHelloID) *UConn {
u_conn.go#L757: func (uconn *UConn) SetUnderlyingConn(c net.Conn) {
u_conn.go#L761: func (uconn *UConn) GetUnderlyingConn() net.Conn {
u_conn.go#L767: func MakeConnWithCompleteHandshake(tcpConn net.Conn, version uint16, cipherSuite uint16, masterSecret []byte, clientRandom []byte, serverRandom []byte, isClient bool) *Conn {
u_roller.go#L77: var tcpConn 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#L37: func (p *PerHost) Dial(network, addr string) (c net.Conn, err error) {
per_host.go#L48: 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) {
 |
The pages are generated with Golds v0.8.4. (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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |