Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
57f6e87f
Commit
57f6e87f
authored
Dec 31, 2012
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
detect timeout
parent
deed2a60
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
81 additions
and
36 deletions
+81
-36
assets/shadowsocks
assets/shadowsocks
+0
-0
jni/shadowsocks/local.c
jni/shadowsocks/local.c
+70
-29
jni/shadowsocks/local.h
jni/shadowsocks/local.h
+11
-7
libs/armeabi/pdnsd
libs/armeabi/pdnsd
+0
-0
libs/armeabi/shadowsocks
libs/armeabi/shadowsocks
+0
-0
No files found.
assets/shadowsocks
View file @
57f6e87f
No preview for this file type
jni/shadowsocks/local.c
View file @
57f6e87f
This diff is collapsed.
Click to expand it.
jni/shadowsocks/local.h
View file @
57f6e87f
...
...
@@ -10,6 +10,12 @@ struct listen_ctx {
struct
sockaddr
sock
;
};
struct
server_ctx
{
ev_io
io
;
int
connected
;
struct
server
*
server
;
};
struct
server
{
int
fd
;
char
buf
[
BUF_SIZE
];
// server send from, remote recv into
...
...
@@ -19,11 +25,14 @@ struct server {
struct
server_ctx
*
send_ctx
;
struct
remote
*
remote
;
};
struct
server_ctx
{
struct
remote_ctx
{
ev_io
io
;
ev_timer
watcher
;
int
connected
;
struct
server
*
server
;
struct
remote
*
remote
;
};
struct
remote
{
int
fd
;
char
buf
[
BUF_SIZE
];
// remote send from, server recv into
...
...
@@ -32,11 +41,6 @@ struct remote {
struct
remote_ctx
*
send_ctx
;
struct
server
*
server
;
};
struct
remote_ctx
{
ev_io
io
;
int
connected
;
struct
remote
*
remote
;
};
static
void
accept_cb
(
EV_P_
ev_io
*
w
,
int
revents
);
...
...
libs/armeabi/pdnsd
View file @
57f6e87f
No preview for this file type
libs/armeabi/shadowsocks
View file @
57f6e87f
No preview for this file type
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