Commit a7ed9ff7 authored by Mikio Hara's avatar Mikio Hara

net: document unimplemented methods and functions

Fixes #16802.

Change-Id: I41be7bb4e21e3beaa2136ee69771b0f455b2a7c6
Reviewed-on: https://go-review.googlesource.com/27417Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 4333d382
...@@ -6,6 +6,9 @@ package net ...@@ -6,6 +6,9 @@ package net
import "os" import "os"
// BUG(mikio): On NaCl and Windows, the FileConn, FileListener and
// FilePacketConn functions are not implemented.
type fileAddr string type fileAddr string
func (fileAddr) Network() string { return "file+net" } func (fileAddr) Network() string { return "file+net" }
......
...@@ -10,6 +10,12 @@ import ( ...@@ -10,6 +10,12 @@ import (
"time" "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 ( var (
errInvalidInterface = errors.New("invalid network interface") errInvalidInterface = errors.New("invalid network interface")
errInvalidInterfaceIndex = errors.New("invalid network interface index") errInvalidInterfaceIndex = errors.New("invalid network interface index")
......
...@@ -9,6 +9,12 @@ import ( ...@@ -9,6 +9,12 @@ import (
"syscall" "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. // IPAddr represents the address of an IP end point.
type IPAddr struct { type IPAddr struct {
IP IP IP IP
......
...@@ -12,6 +12,9 @@ import ( ...@@ -12,6 +12,9 @@ import (
"time" "time"
) )
// BUG(mikio): On Windows, the File method of TCPListener is not
// implemented.
// TCPAddr represents the address of a TCP end point. // TCPAddr represents the address of a TCP end point.
type TCPAddr struct { type TCPAddr struct {
IP IP IP IP
......
...@@ -9,6 +9,15 @@ import ( ...@@ -9,6 +9,15 @@ import (
"syscall" "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. // UDPAddr represents the address of a UDP end point.
type UDPAddr struct { type UDPAddr struct {
IP IP IP IP
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment