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
d5514120
Commit
d5514120
authored
Nov 23, 2011
by
Dave Cheney
Committed by
Adam Langley
Nov 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exp/ssh: remove unused forwarding methods in Server Listener
R=agl, rsc CC=golang-dev
https://golang.org/cl/5436056
parent
4874d141
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
13 deletions
+3
-13
server.go
src/pkg/exp/ssh/server.go
+3
-13
No files found.
src/pkg/exp/ssh/server.go
View file @
d5514120
...
...
@@ -636,15 +636,15 @@ func (s *ServerConn) Accept() (Channel, error) {
// A Listener implements a network listener (net.Listener) for SSH connections.
type
Listener
struct
{
listener
net
.
Listener
config
*
ServerConfig
net
.
Listener
config
*
ServerConfig
}
// Accept waits for and returns the next incoming SSH connection.
// The receiver should call Handshake() in another goroutine
// to avoid blocking the accepter.
func
(
l
*
Listener
)
Accept
()
(
*
ServerConn
,
error
)
{
c
,
err
:=
l
.
l
istener
.
Accept
()
c
,
err
:=
l
.
L
istener
.
Accept
()
if
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -652,16 +652,6 @@ func (l *Listener) Accept() (*ServerConn, error) {
return
conn
,
nil
}
// Addr returns the listener's network address.
func
(
l
*
Listener
)
Addr
()
net
.
Addr
{
return
l
.
listener
.
Addr
()
}
// Close closes the listener.
func
(
l
*
Listener
)
Close
()
error
{
return
l
.
listener
.
Close
()
}
// Listen creates an SSH listener accepting connections on
// the given network address using net.Listen.
func
Listen
(
network
,
addr
string
,
config
*
ServerConfig
)
(
*
Listener
,
error
)
{
...
...
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