Lines Matching full:address
12 // A Dialer contains options for connecting to an address.
38 // LocalAddr is the local address to use when dialing an
39 // address. The address must be of a compatible type for the
41 // If nil, a local address is automatically chosen.
47 // tolerate networks where one address family is silently broken.
76 // partialDeadline returns the deadline to use for a single address,
86 // Tentatively allocate equal time to each remaining address.
88 // If the time per address is too short, steal from the end of the list.
156 // Dial connects to the address on the named network.
164 // If host is a literal IPv6 address it must be enclosed
177 // literal IP address.
183 // For Unix networks, the address must be a file system path.
184 func Dial(network, address string) (Conn, error) {
186 return d.Dial(network, address)
191 func DialTimeout(network, address string, timeout time.Duration) (Conn, error) {
193 return d.Dial(network, address)
199 network, address string
203 // Dial connects to the address on the named network.
205 // See func Dial for a description of the network and address
207 func (d *Dialer) Dial(network, address string) (Conn, error) {
209 addrs, err := resolveAddrList("dial", network, address, finalDeadline)
217 address: address,
250 // primary address.
314 var firstErr error // The error from the first address is most relevant.
354 // the destination address. This must be called through the OS-specific
359 return nil, &OpError{Op: "dial", Net: ctx.network, Source: la, Addr: ra, Err: errors.New("mismatched local address type " + la.Network())}
375 return nil, &OpError{Op: "dial", Net: ctx.network, Source: la, Addr: ra, Err: &AddrError{Err: "unexpected address type", Addr: ctx.address}}
383 // Listen announces on the local network address laddr.
399 return nil, &OpError{Op: "listen", Net: net, Source: nil, Addr: la, Err: &AddrError{Err: "unexpected address type", Addr: laddr}}
407 // ListenPacket announces on the local network address laddr.
425 return nil, &OpError{Op: "listen", Net: net, Source: nil, Addr: la, Err: &AddrError{Err: "unexpected address type", Addr: laddr}}