]> Cypherpunks repositories - gostls13.git/commitdiff
net: update documentation for UnixConn, UnixListener and related stuff
authorMikio Hara <mikioh.mikioh@gmail.com>
Sun, 31 Mar 2013 07:48:18 +0000 (16:48 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Sun, 31 Mar 2013 07:48:18 +0000 (16:48 +0900)
Closes the API documentation gap between platforms.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/8063044

src/pkg/net/unixsock.go
src/pkg/net/unixsock_plan9.go
src/pkg/net/unixsock_posix.go

index 977ff91031c672de87cc6751b0fd37e33aca54de..21a19eca2c021ab79caae57635549e0153aa7df6 100644 (file)
@@ -2,8 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Unix domain sockets
-
 package net
 
 // UnixAddr represents the address of a Unix domain socket end point.
index 00a0be5b08c71dc37fa591de913202d7b32f6d04..0390207f0f7949f784caed877981f222345c0de1 100644 (file)
@@ -2,8 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Unix domain sockets stubs for Plan 9
-
 package net
 
 import (
@@ -133,9 +131,9 @@ func (l *UnixListener) File() (*os.File, error) {
 }
 
 // ListenUnixgram listens for incoming Unix datagram packets addressed
-// to the local address laddr.  The returned connection c's ReadFrom
-// and WriteTo methods can be used to receive and send packets with
-// per-packet addressing.  The network net must be "unixgram".
+// to the local address laddr.  The network net must be "unixgram".
+// The returned connection's ReadFrom and WriteTo methods can be used
+// to receive and send packets with per-packet addressing.
 func ListenUnixgram(net string, laddr *UnixAddr) (*UnixConn, error) {
        return nil, syscall.EPLAN9
 }
index abdff09a8ac20e5e5d8c8ce12d2c184f0bbf4d31..760d38f2731d1c505fc9e2cf01ff578a5da4eb29 100644 (file)
@@ -4,8 +4,6 @@
 
 // +build darwin freebsd linux netbsd openbsd windows
 
-// Unix domain sockets
-
 package net
 
 import (
@@ -344,9 +342,9 @@ func (l *UnixListener) SetDeadline(t time.Time) (err error) {
 func (l *UnixListener) File() (f *os.File, err error) { return l.fd.dup() }
 
 // ListenUnixgram listens for incoming Unix datagram packets addressed
-// to the local address laddr.  The returned connection c's ReadFrom
-// and WriteTo methods can be used to receive and send packets with
-// per-packet addressing.  The network net must be "unixgram".
+// to the local address laddr.  The network net must be "unixgram".
+// The returned connection's ReadFrom and WriteTo methods can be used
+// to receive and send packets with per-packet addressing.
 func ListenUnixgram(net string, laddr *UnixAddr) (*UnixConn, error) {
        switch net {
        case "unixgram":