Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
7bf8355d
Commit
7bf8355d
authored
Jul 19, 2012
by
Mikio Hara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: fix typo
R=golang-dev, bsiegert, r CC=golang-dev
https://golang.org/cl/6428050
parent
fc360f23
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
dial.go
src/pkg/net/dial.go
+1
-1
iprawsock.go
src/pkg/net/iprawsock.go
+2
-2
iprawsock_plan9.go
src/pkg/net/iprawsock_plan9.go
+2
-2
iprawsock_posix.go
src/pkg/net/iprawsock_posix.go
+2
-2
No files found.
src/pkg/net/dial.go
View file @
7bf8355d
...
@@ -173,7 +173,7 @@ func (a stringAddr) String() string { return a.addr }
...
@@ -173,7 +173,7 @@ func (a stringAddr) String() string { return a.addr }
// Listen announces on the local network address laddr.
// Listen announces on the local network address laddr.
// The network string net must be a stream-oriented network:
// The network string net must be a stream-oriented network:
// "tcp", "tcp4", "tcp6",
or "unix",
or "unixpacket".
// "tcp", "tcp4", "tcp6",
"unix"
or "unixpacket".
func
Listen
(
net
,
laddr
string
)
(
Listener
,
error
)
{
func
Listen
(
net
,
laddr
string
)
(
Listener
,
error
)
{
afnet
,
a
,
err
:=
resolveNetAddr
(
"listen"
,
net
,
laddr
)
afnet
,
a
,
err
:=
resolveNetAddr
(
"listen"
,
net
,
laddr
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
src/pkg/net/iprawsock.go
View file @
7bf8355d
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
package
net
package
net
// IPAddr represents the address of a IP end point.
// IPAddr represents the address of a
n
IP end point.
type
IPAddr
struct
{
type
IPAddr
struct
{
IP
IP
IP
IP
}
}
...
@@ -21,7 +21,7 @@ func (a *IPAddr) String() string {
...
@@ -21,7 +21,7 @@ func (a *IPAddr) String() string {
return
a
.
IP
.
String
()
return
a
.
IP
.
String
()
}
}
// ResolveIPAddr parses addr as a IP address and resolves domain
// ResolveIPAddr parses addr as a
n
IP address and resolves domain
// names to numeric addresses on the network net, which must be
// names to numeric addresses on the network net, which must be
// "ip", "ip4" or "ip6". A literal IPv6 host address must be
// "ip", "ip4" or "ip6". A literal IPv6 host address must be
// enclosed in square brackets, as in "[::]".
// enclosed in square brackets, as in "[::]".
...
...
src/pkg/net/iprawsock_plan9.go
View file @
7bf8355d
...
@@ -59,7 +59,7 @@ func (c *IPConn) RemoteAddr() Addr {
...
@@ -59,7 +59,7 @@ func (c *IPConn) RemoteAddr() Addr {
// IP-specific methods.
// IP-specific methods.
// ReadFromIP reads a IP packet from c, copying the payload into b.
// ReadFromIP reads a
n
IP packet from c, copying the payload into b.
// It returns the number of bytes copied into b and the return address
// It returns the number of bytes copied into b and the return address
// that was on the packet.
// that was on the packet.
//
//
...
@@ -75,7 +75,7 @@ func (c *IPConn) ReadFrom(b []byte) (int, Addr, error) {
...
@@ -75,7 +75,7 @@ func (c *IPConn) ReadFrom(b []byte) (int, Addr, error) {
return
0
,
nil
,
syscall
.
EPLAN9
return
0
,
nil
,
syscall
.
EPLAN9
}
}
// WriteToIP writes a IP packet to addr via c, copying the payload from b.
// WriteToIP writes a
n
IP packet to addr via c, copying the payload from b.
//
//
// WriteToIP can be made to time out and return
// WriteToIP can be made to time out and return
// an error with Timeout() == true after a fixed time limit;
// an error with Timeout() == true after a fixed time limit;
...
...
src/pkg/net/iprawsock_posix.go
View file @
7bf8355d
...
@@ -60,7 +60,7 @@ func newIPConn(fd *netFD) *IPConn { return &IPConn{conn{fd}} }
...
@@ -60,7 +60,7 @@ func newIPConn(fd *netFD) *IPConn { return &IPConn{conn{fd}} }
// IP-specific methods.
// IP-specific methods.
// ReadFromIP reads a IP packet from c, copying the payload into b.
// ReadFromIP reads a
n
IP packet from c, copying the payload into b.
// It returns the number of bytes copied into b and the return address
// It returns the number of bytes copied into b and the return address
// that was on the packet.
// that was on the packet.
//
//
...
@@ -98,7 +98,7 @@ func (c *IPConn) ReadFrom(b []byte) (int, Addr, error) {
...
@@ -98,7 +98,7 @@ func (c *IPConn) ReadFrom(b []byte) (int, Addr, error) {
return
n
,
uaddr
.
toAddr
(),
err
return
n
,
uaddr
.
toAddr
(),
err
}
}
// WriteToIP writes a IP packet to addr via c, copying the payload from b.
// WriteToIP writes a
n
IP packet to addr via c, copying the payload from b.
//
//
// WriteToIP can be made to time out and return
// WriteToIP can be made to time out and return
// an error with Timeout() == true after a fixed time limit;
// an error with Timeout() == true after a fixed time limit;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment