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
ddbc85ce
Commit
ddbc85ce
authored
Aug 28, 2012
by
Mikio Hara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: delete unused socket-level option helpers
R=golang-dev, bradfitz CC=golang-dev
https://golang.org/cl/6499043
parent
baf426f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
sockopt.go
src/pkg/net/sockopt.go
+0
-16
No files found.
src/pkg/net/sockopt.go
View file @
ddbc85ce
...
...
@@ -144,22 +144,6 @@ func setDeadline(fd *netFD, t time.Time) error {
return
setWriteDeadline
(
fd
,
t
)
}
func
setReuseAddr
(
fd
*
netFD
,
reuse
bool
)
error
{
if
err
:=
fd
.
incref
(
false
);
err
!=
nil
{
return
err
}
defer
fd
.
decref
()
return
os
.
NewSyscallError
(
"setsockopt"
,
syscall
.
SetsockoptInt
(
fd
.
sysfd
,
syscall
.
SOL_SOCKET
,
syscall
.
SO_REUSEADDR
,
boolint
(
reuse
)))
}
func
setDontRoute
(
fd
*
netFD
,
dontroute
bool
)
error
{
if
err
:=
fd
.
incref
(
false
);
err
!=
nil
{
return
err
}
defer
fd
.
decref
()
return
os
.
NewSyscallError
(
"setsockopt"
,
syscall
.
SetsockoptInt
(
fd
.
sysfd
,
syscall
.
SOL_SOCKET
,
syscall
.
SO_DONTROUTE
,
boolint
(
dontroute
)))
}
func
setKeepAlive
(
fd
*
netFD
,
keepalive
bool
)
error
{
if
err
:=
fd
.
incref
(
false
);
err
!=
nil
{
return
err
...
...
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