type net.Conn
148 uses
net (current package)
dial.go#L317: func Dial(network, address string) (Conn, error) {
dial.go#L332: func DialTimeout(network, address string, timeout time.Duration) (Conn, error) {
dial.go#L350: func (d *Dialer) Dial(network, address string) (Conn, error) {
dial.go#L372: func (d *Dialer) DialContext(ctx context.Context, network, address string) (Conn, error) {
dial.go#L424: var c Conn
dial.go#L450: func (sd *sysDialer) dialParallel(ctx context.Context, primaries, fallbacks addrList) (Conn, error) {
dial.go#L459: Conn
dial.go#L524: func (sd *sysDialer) dialSerial(ctx context.Context, ras addrList) (Conn, error) {
dial.go#L568: func (sd *sysDialer) dialSingle(ctx context.Context, ra Addr) (c Conn, err error) {
dnsclient_unix.go#L84: func dnsPacketRoundTrip(c Conn, id uint16, query dnsmessage.Question, b []byte) (dnsmessage.Parser, dnsmessage.Header, error) {
dnsclient_unix.go#L111: 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#L147: Dial func(ctx context.Context, network, address string) (Conn, error)
lookup_unix.go#L58: func (r *Resolver) dial(ctx context.Context, network, server string) (Conn, error) {
lookup_unix.go#L64: var c Conn
net.go#L113: type Conn interface {
net.go#L386: Accept() (Conn, error)
pipe.go#L113: func Pipe() (Conn, Conn) {
tcpsock.go#L284: func (l *TCPListener) Accept() (Conn, error) {
unixsock.go#L256: func (l *UnixListener) Accept() (Conn, error) {
net/http
h2_bundle.go#L4074: func (s *http2Server) ServeConn(c net.Conn, opts *http2ServeConnOpts) {
h2_bundle.go#L4188: func http2serverConnBaseContext(c net.Conn, opts *http2ServeConnOpts) (ctx context.Context, cancel func()) {
h2_bundle.go#L4209: conn net.Conn
h2_bundle.go#L6791: DialTLS func(network, addr string, cfg *tls.Config) (net.Conn, error)
h2_bundle.go#L6965: tconn net.Conn // usually *tls.Conn, except specialized impls
h2_bundle.go#L7115: conn net.Conn
h2_bundle.go#L7329: func (t *http2Transport) dialTLS(ctx context.Context) func(string, string, *tls.Config) (net.Conn, error) {
h2_bundle.go#L7333: return func(network, addr string, cfg *tls.Config) (net.Conn, error) {
h2_bundle.go#L7362: func (t *http2Transport) NewClientConn(c net.Conn) (*http2ClientConn, error) {
h2_bundle.go#L7366: func (t *http2Transport) newClientConn(c net.Conn, singleUse bool) (*http2ClientConn, error) {
server.go#L200: Hijack() (net.Conn, *bufio.ReadWriter, error)
server.go#L260: rwc net.Conn
server.go#L311: func (c *conn) hijackLocked() (rwc net.Conn, buf *bufio.ReadWriter, err error) {
server.go#L613: func (srv *Server) newConn(rwc net.Conn) *conn {
server.go#L1753: func (c *conn) setState(nc net.Conn, state ConnState, runHook bool) {
server.go#L2020: func (w *response) Hijack() (rwc net.Conn, buf *bufio.ReadWriter, err error) {
server.go#L2635: ConnState func(net.Conn, ConnState)
server.go#L2655: ConnContext func(ctx context.Context, c net.Conn) context.Context
server.go#L3529: net.Conn
server.go#L3537: 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#L131: DialContext func(ctx context.Context, network, addr string) (net.Conn, error)
transport.go#L143: Dial func(network, addr string) (net.Conn, error)
transport.go#L155: DialTLSContext func(ctx context.Context, network, addr string) (net.Conn, error)
transport.go#L163: DialTLS func(network, addr string) (net.Conn, error)
transport.go#L1167: func (t *Transport) dial(ctx context.Context, network, addr string) (net.Conn, error) {
transport.go#L1315: func (t *Transport) customDialTLS(ctx context.Context, network, addr string) (conn net.Conn, err error) {
transport.go#L1880: conn net.Conn
transport_default_other.go#L15: func defaultTransportDialContext(dialer *net.Dialer) func(context.Context, string, string) (net.Conn, error) {
net/http/httptest
server.go#L53: conns map[net.Conn]http.ConnState // except terminal states
server.go#L316: s.Config.ConnState = func(c net.Conn, cs http.ConnState) {
server.go#L326: s.conns = make(map[net.Conn]http.ConnState)
server.go#L374: func (s *Server) closeConn(c net.Conn) { s.closeConnChan(c, nil) }
server.go#L378: func (s *Server) closeConnChan(c net.Conn, done chan<- struct{}) {
net/http/httptrace
trace.go#L242: Conn net.Conn
net/http/httputil
dump.go#L119: Dial: func(net, addr string) (net.Conn, error) {
persist.go#L39: c net.Conn
persist.go#L54: func NewServerConn(c net.Conn, r *bufio.Reader) *ServerConn {
persist.go#L65: func (sc *ServerConn) Hijack() (net.Conn, *bufio.Reader) {
persist.go#L232: c net.Conn
persist.go#L248: func NewClientConn(c net.Conn, r *bufio.Reader) *ClientConn {
persist.go#L265: func NewProxyClientConn(c net.Conn, r *bufio.Reader) *ClientConn {
persist.go#L275: func (cc *ClientConn) Hijack() (c net.Conn, r *bufio.Reader) {
crypto/tls
common.go#L440: Conn net.Conn
conn.go#L29: conn net.Conn
conn.go#L157: func (c *Conn) NetConn() net.Conn {
conn.go#L568: Conn net.Conn
conn.go#L573: 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/go-pg/pg/v10
options.go#L29: Dialer func(ctx context.Context, network, addr string) (net.Conn, error)
options.go#L115: opt.Dialer = func(ctx context.Context, network, addr string) (net.Conn, error) {
options.go#L259: func (opt *Options) getDialer() func(context.Context) (net.Conn, error) {
options.go#L260: return func(ctx context.Context) (net.Conn, error) {
github.com/go-pg/pg/v10/internal/pool
conn.go#L14: netConn net.Conn
conn.go#L27: func NewConn(netConn net.Conn) *Conn {
conn.go#L49: func (cn *Conn) SetNetConn(netConn net.Conn) {
conn.go#L64: func (cn *Conn) NetConn() net.Conn {
pool.go#L54: Dialer func(context.Context) (net.Conn, error)
golang.org/x/net/http2
go118.go#L15: func tlsUnderlyingConn(tc *tls.Conn) net.Conn {
server.go#L401: func (s *Server) ServeConn(c net.Conn, opts *ServeConnOpts) {
server.go#L534: func serverConnBaseContext(c net.Conn, opts *ServeConnOpts) (ctx context.Context, cancel func()) {
server.go#L555: conn net.Conn
transport.go#L74: DialTLSContext func(ctx context.Context, network, addr string, cfg *tls.Config) (net.Conn, error)
transport.go#L84: DialTLS func(network, addr string, cfg *tls.Config) (net.Conn, error)
transport.go#L293: tconn net.Conn // usually *tls.Conn, except specialized impls
transport.go#L455: conn net.Conn
transport.go#L682: func (t *Transport) dialTLS(ctx context.Context, network, addr string, tlsCfg *tls.Config) (net.Conn, error) {
transport.go#L730: func (t *Transport) NewClientConn(c net.Conn) (*ClientConn, error) {
transport.go#L734: func (t *Transport) newClientConn(c net.Conn, singleUse bool) (*ClientConn, error) {
google.golang.org/grpc
dialoptions.go#L383: func WithContextDialer(f func(context.Context, string) (net.Conn, error)) DialOption {
dialoptions.go#L400: func WithDialer(f func(string, time.Duration) (net.Conn, error)) DialOption {
dialoptions.go#L402: func(ctx context.Context, addr string) (net.Conn, error) {
server.go#L873: func (s *Server) handleRawConn(lisAddr string, rawConn net.Conn) {
server.go#L907: func (s *Server) newHTTP2Transport(c net.Conn) transport.ServerTransport {
google.golang.org/grpc/balancer
balancer.go#L194: Dialer func(context.Context, string) (net.Conn, error)
google.golang.org/grpc/credentials
credentials.go#L149: ClientHandshake(context.Context, string, net.Conn) (net.Conn, AuthInfo, error)
credentials.go#L156: ServerHandshake(net.Conn) (net.Conn, AuthInfo, error)
tls.go#L73: func (c *tlsCreds) ClientHandshake(ctx context.Context, authority string, rawConn net.Conn) (_ net.Conn, _ AuthInfo, err error) {
tls.go#L113: func (c *tlsCreds) ServerHandshake(rawConn net.Conn) (net.Conn, AuthInfo, error) {
google.golang.org/grpc/credentials/insecure
insecure.go#L43: func (insecureTC) ClientHandshake(ctx context.Context, _ string, conn net.Conn) (net.Conn, credentials.AuthInfo, error) {
insecure.go#L47: func (insecureTC) ServerHandshake(conn net.Conn) (net.Conn, credentials.AuthInfo, error) {
google.golang.org/grpc/internal/credentials
syscallconn.go#L38: net.Conn
syscallconn.go#L49: func WrapSyscallConn(rawConn, newConn net.Conn) net.Conn {
google.golang.org/grpc/internal/resolver/dns
dns_resolver.go#L89: var customAuthorityDialler = func(authority string) func(ctx context.Context, network, address string) (net.Conn, error) {
dns_resolver.go#L90: return func(ctx context.Context, network, address string) (net.Conn, error) {
google.golang.org/grpc/internal/syscall
syscall_linux.go#L71: func SetTCPUserTimeout(conn net.Conn, timeout time.Duration) error {
syscall_linux.go#L92: func GetTCPUserTimeout(conn net.Conn) (opt int, err error) {
google.golang.org/grpc/internal/transport
http2_client.go#L72: conn net.Conn // underlying communication channel
http2_client.go#L150: func dial(ctx context.Context, fn func(context.Context, string) (net.Conn, error), addr resolver.Address, useProxy bool, grpcUA string) (net.Conn, error) {
http2_client.go#L223: defer func(conn net.Conn) {
http2_client.go#L241: go func(conn net.Conn) {
http2_server.go#L72: conn net.Conn
http2_server.go#L141: func NewServerTransport(conn net.Conn, config *ServerConfig) (_ ServerTransport, err error) {
http2_server.go#L1451: func GetConnection(ctx context.Context) net.Conn {
http2_server.go#L1452: conn, _ := ctx.Value(connectionKey{}).(net.Conn)
http2_server.go#L1459: func setConnection(ctx context.Context, conn net.Conn) context.Context {
http_util.go#L316: conn net.Conn
http_util.go#L320: func newBufWriter(conn net.Conn, batchSize int) *bufWriter {
http_util.go#L364: func newFramer(conn net.Conn, writeBufferSize, readBufferSize int, maxHeaderListSize uint32) *framer {
proxy.go#L60: net.Conn
proxy.go#L73: func doHTTPConnectHandshake(ctx context.Context, conn net.Conn, backendAddr string, proxyURL *url.URL, grpcUA string) (_ net.Conn, err error) {
proxy.go#L115: func proxyDial(ctx context.Context, addr string, grpcUA string) (conn net.Conn, err error) {
proxy.go#L136: func sendHTTPRequest(ctx context.Context, req *http.Request, conn net.Conn) error {
transport.go#L553: Dialer func(context.Context, string) (net.Conn, error)
google.golang.org/grpc/resolver
resolver.go#L179: Dialer func(context.Context, string) (net.Conn, error)