MCPcopy Create free account
hub / github.com/DNAProject/DNA / nonTLSDial

Function nonTLSDial

p2pserver/net/netserver/net_utils.go:61–68  ·  view source on GitHub ↗

nonTLSDial return net.Conn with nonTls

(addr string)

Source from the content-addressed store, hash-verified

59
60//nonTLSDial return net.Conn with nonTls
61func nonTLSDial(addr string) (net.Conn, error) {
62 log.Trace()
63 conn, err := net.DialTimeout("tcp", addr, time.Second*common.DIAL_TIMEOUT)
64 if err != nil {
65 return nil, err
66 }
67 return conn, nil
68}
69
70//TLSDial return net.Conn with TLS
71func TLSDial(nodeAddr string) (net.Conn, error) {

Callers 1

ConnectMethod · 0.85

Calls 1

TraceFunction · 0.92

Tested by

no test coverage detected