Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
getty
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wei.xuan
getty
Commits
444d54ed
Commit
444d54ed
authored
Sep 07, 2016
by
alexstocks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add remark for codec.go:(EventListener)OnOpen
parent
cef46d37
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
README.md
README.md
+1
-1
codec.go
codec.go
+1
-0
No files found.
README.md
View file @
444d54ed
...
...
@@ -12,7 +12,7 @@
---
-
2016/09/07
> 1 session.go:(Session)Close() -> session.go:(Session)
clear
() to be invoked by session.go:(Session)handleLoop
> 1 session.go:(Session)Close() -> session.go:(Session)
gc
() to be invoked by session.go:(Session)handleLoop
-
2016/09/06
> 1 codec.go:(Reader)Read(*Session, []byte) (interface{}, error) -> codec.go:(Reader)Read(*Session, []byte) (interface{}, int, error)
...
...
codec.go
View file @
444d54ed
...
...
@@ -36,6 +36,7 @@ type ReadWriter interface {
// EventListener is used to process pkg that recved from remote session
type
EventListener
interface
{
// invoked when session opened
// If the return error is not nil, @Session will be closed.
OnOpen
(
*
Session
)
error
// invoked when session closed
...
...
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