1
0
mirror of https://github.com/golang/go synced 2024-11-12 07:10:22 -07:00

net: update documentation for UnixConn, UnixListener and related stuff

Closes the API documentation gap between platforms.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/8063044
This commit is contained in:
Mikio Hara 2013-03-31 16:48:18 +09:00
parent e2c453e7a7
commit 8a448ef950
3 changed files with 6 additions and 12 deletions

View 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.

View 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
}

View 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":