summaryrefslogtreecommitdiff
path: root/libgo/go/net/tcpsock.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/net/tcpsock.go')
-rw-r--r--libgo/go/net/tcpsock.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/libgo/go/net/tcpsock.go b/libgo/go/net/tcpsock.go
index db5d1f8482e..0daa2f6487a 100644
--- a/libgo/go/net/tcpsock.go
+++ b/libgo/go/net/tcpsock.go
@@ -154,7 +154,7 @@ func (c *TCPConn) SetLinger(sec int) error {
}
// SetKeepAlive sets whether the operating system should send
-// keepalive messages on the connection.
+// keep-alive messages on the connection.
func (c *TCPConn) SetKeepAlive(keepalive bool) error {
if !c.ok() {
return syscall.EINVAL
@@ -165,7 +165,7 @@ func (c *TCPConn) SetKeepAlive(keepalive bool) error {
return nil
}
-// SetKeepAlivePeriod sets period between keep alives.
+// SetKeepAlivePeriod sets period between keep-alives.
func (c *TCPConn) SetKeepAlivePeriod(d time.Duration) error {
if !c.ok() {
return syscall.EINVAL
@@ -224,6 +224,7 @@ func DialTCP(network string, laddr, raddr *TCPAddr) (*TCPConn, error) {
// use variables of type Listener instead of assuming TCP.
type TCPListener struct {
fd *netFD
+ lc ListenConfig
}
// SyscallConn returns a raw network connection.