aboutsummaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorMikio Hara <mikioh.mikioh@gmail.com>2016-08-22 05:52:15 +0900
committerMikio Hara <mikioh.mikioh@gmail.com>2016-08-23 14:19:39 +0000
commita7ed9ff754dd66a75070a376382ca0fa520deefd (patch)
treea927d6922683e9c3d60aa72566ef33a8ea8c716a /src/net
parent4333d3823dd78f755f90e5f63b7de180d4a90025 (diff)
downloadgo-a7ed9ff754dd66a75070a376382ca0fa520deefd.tar.xz
net: document unimplemented methods and functions
Fixes #16802. Change-Id: I41be7bb4e21e3beaa2136ee69771b0f455b2a7c6 Reviewed-on: https://go-review.googlesource.com/27417 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/net')
-rw-r--r--src/net/file.go3
-rw-r--r--src/net/interface.go6
-rw-r--r--src/net/iprawsock.go6
-rw-r--r--src/net/tcpsock.go3
-rw-r--r--src/net/udpsock.go9
5 files changed, 27 insertions, 0 deletions
diff --git a/src/net/file.go b/src/net/file.go
index 1aad477400..07099851cb 100644
--- a/src/net/file.go
+++ b/src/net/file.go
@@ -6,6 +6,9 @@ package net
import "os"
+// BUG(mikio): On NaCl and Windows, the FileConn, FileListener and
+// FilePacketConn functions are not implemented.
+
type fileAddr string
func (fileAddr) Network() string { return "file+net" }
diff --git a/src/net/interface.go b/src/net/interface.go
index 4947b52faf..295ab2dc92 100644
--- a/src/net/interface.go
+++ b/src/net/interface.go
@@ -10,6 +10,12 @@ import (
"time"
)
+// BUG(mikio): On NaCl, Plan9 and Solaris, methods and functions
+// related to Interface are not implemented.
+
+// BUG(mikio): On DragonFly BSD, NetBSD and OpenBSD, the
+// MulticastAddrs method of Interface is not implemented.
+
var (
errInvalidInterface = errors.New("invalid network interface")
errInvalidInterfaceIndex = errors.New("invalid network interface index")
diff --git a/src/net/iprawsock.go b/src/net/iprawsock.go
index 173b3cb411..95761b3a9c 100644
--- a/src/net/iprawsock.go
+++ b/src/net/iprawsock.go
@@ -9,6 +9,12 @@ import (
"syscall"
)
+// BUG(mikio): On NaCl, Plan 9 and Windows, the ReadMsgIP and
+// WriteMsgIP methods of IPConn are not implemented.
+
+// BUG(mikio): On Windows, the File method of IPConn is not
+// implemented.
+
// IPAddr represents the address of an IP end point.
type IPAddr struct {
IP IP
diff --git a/src/net/tcpsock.go b/src/net/tcpsock.go
index ce6e009451..e02e6c9c7d 100644
--- a/src/net/tcpsock.go
+++ b/src/net/tcpsock.go
@@ -12,6 +12,9 @@ import (
"time"
)
+// BUG(mikio): On Windows, the File method of TCPListener is not
+// implemented.
+
// TCPAddr represents the address of a TCP end point.
type TCPAddr struct {
IP IP
diff --git a/src/net/udpsock.go b/src/net/udpsock.go
index 980f67c81f..a859f4d4c0 100644
--- a/src/net/udpsock.go
+++ b/src/net/udpsock.go
@@ -9,6 +9,15 @@ import (
"syscall"
)
+// BUG(mikio): On NaCl, Plan 9 and Windows, the ReadMsgUDP and
+// WriteMsgUDP methods of UDPConn are not implemented.
+
+// BUG(mikio): On Windows, the File method of UDPConn is not
+// implemented.
+
+// BUG(mikio): On NaCl and Plan 9, the ListenMulticastUDP function is
+// not implemented.
+
// UDPAddr represents the address of a UDP end point.
type UDPAddr struct {
IP IP