Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shrapnel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
shrapnel
Commits
e47be476
Commit
e47be476
authored
May 08, 2013
by
Sam Rushing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SSH_Transport.send(): helper for sending packets
parent
0d471126
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
coro/ssh/transport/transport.py
coro/ssh/transport/transport.py
+6
-0
No files found.
coro/ssh/transport/transport.py
View file @
e47be476
...
...
@@ -117,6 +117,9 @@ class SSH_Transport:
else
:
self
.
s2c
=
server_transport
self
.
supported_key_storages
=
[
OpenSSH_Key_Storage
()]
# XXX who/what sets self.is_server? can we use self.is_server
# to decide which callbacks to register? Or should that be done
# by the subclass?
self
.
register_callbacks
(
'__base__'
,
{
SSH_MSG_IGNORE
:
self
.
msg_ignore
,
SSH_MSG_DEBUG
:
self
.
msg_debug
,
...
...
@@ -192,6 +195,9 @@ class SSH_Transport:
self
.
disconnect
()
raise
SSH_Protocol_Error
,
(
reason_code
,
description
)
def
send
(
self
,
format
,
values
):
self
.
send_packet
(
ssh_packet
.
pack_payload
(
format
,
values
))
def
send_packet
(
self
,
data
):
"""send_packet(self, data) -> None
Sends the given packet data.
...
...
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