Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
net
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
net
Commits
5b599ab5
Commit
5b599ab5
authored
Jun 05, 2013
by
Mikio Hara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go.net/ipv6: add Close method to PacketConn
R=dave CC=golang-dev
https://golang.org/cl/9961046
parent
d99d2dcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
endpoint.go
ipv6/endpoint.go
+8
-0
No files found.
ipv6/endpoint.go
View file @
5b599ab5
...
...
@@ -72,6 +72,14 @@ func (c *PacketConn) SetControlMessage(cf ControlFlags, on bool) error {
return
setControlMessage
(
fd
,
&
c
.
payloadHandler
.
rawOpt
,
cf
,
on
)
}
// Close closes the endpoint.
func
(
c
*
PacketConn
)
Close
()
error
{
if
!
c
.
payloadHandler
.
ok
()
{
return
syscall
.
EINVAL
}
return
c
.
payloadHandler
.
PacketConn
.
Close
()
}
// NewPacketConn returns a new PacketConn using c as its underlying
// transport.
func
NewPacketConn
(
c
net
.
PacketConn
)
*
PacketConn
{
...
...
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