doc updates

This commit is contained in:
Miek Gieben 2011-03-27 11:46:15 +02:00
parent 55c41c82b7
commit ac0f4afcc9
1 changed files with 4 additions and 2 deletions

6
dns.go
View File

@ -119,7 +119,8 @@ func Dial(n, laddr, raddr string) (*Conn, os.Error) {
return d, nil
}
// Fill in a Conn from a TCPConn
// Fill in a Conn from a TCPConn. If a is nil, the
// remote address in the connection is used.
func (d *Conn) SetTCPConn(l *net.TCPConn, a net.Addr) {
d.TCP = l
d.UDP = nil
@ -129,7 +130,8 @@ func (d *Conn) SetTCPConn(l *net.TCPConn, a net.Addr) {
d.Port = d.Addr.(*net.TCPAddr).Port
}
// Fill in a Conn from a UDPConn
// Fill in a Conn from a TCPConn. If a is nil, the
// remote address in the connection is used.
func (d *Conn) SetUDPConn(l *net.UDPConn, a net.Addr) {
d.TCP = nil
d.UDP = l