mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-28 11:43:50 +00:00
refine the buffer idx
This commit is contained in:
+2
-2
@@ -52,7 +52,7 @@ struct server
|
||||
{
|
||||
int fd;
|
||||
ssize_t buf_len;
|
||||
int buf_idx;
|
||||
ssize_t buf_idx;
|
||||
char *buf; // server send from, remote recv into
|
||||
int addr_len;
|
||||
char *addr_to_send;
|
||||
@@ -77,7 +77,7 @@ struct remote
|
||||
{
|
||||
int fd;
|
||||
ssize_t buf_len;
|
||||
int buf_idx;
|
||||
ssize_t buf_idx;
|
||||
int direct;
|
||||
char *buf; // remote send from, server recv into
|
||||
struct remote_ctx *recv_ctx;
|
||||
|
||||
+2
-2
@@ -49,7 +49,7 @@ struct server
|
||||
{
|
||||
int fd;
|
||||
ssize_t buf_len;
|
||||
int buf_idx;
|
||||
ssize_t buf_idx;
|
||||
char *buf; // server send from, remote recv into
|
||||
struct sockaddr_in destaddr;
|
||||
struct enc_ctx *e_ctx;
|
||||
@@ -71,7 +71,7 @@ struct remote
|
||||
{
|
||||
int fd;
|
||||
ssize_t buf_len;
|
||||
int buf_idx;
|
||||
ssize_t buf_idx;
|
||||
char *buf; // remote send from, server recv into
|
||||
struct remote_ctx *recv_ctx;
|
||||
struct remote_ctx *send_ctx;
|
||||
|
||||
+2
-2
@@ -56,7 +56,7 @@ struct server
|
||||
int fd;
|
||||
int stage;
|
||||
ssize_t buf_len;
|
||||
int buf_idx;
|
||||
ssize_t buf_idx;
|
||||
char *buf; // server send from, remote recv into
|
||||
asyncns_query_t *query;
|
||||
struct enc_ctx *e_ctx;
|
||||
@@ -78,7 +78,7 @@ struct remote
|
||||
{
|
||||
int fd;
|
||||
ssize_t buf_len;
|
||||
int buf_idx;
|
||||
ssize_t buf_idx;
|
||||
char *buf; // remote send from, server recv into
|
||||
struct remote_ctx *recv_ctx;
|
||||
struct remote_ctx *send_ctx;
|
||||
|
||||
+2
-2
@@ -53,7 +53,7 @@ struct server
|
||||
{
|
||||
int fd;
|
||||
ssize_t buf_len;
|
||||
int buf_idx;
|
||||
ssize_t buf_idx;
|
||||
char *buf; // server send from, remote recv into
|
||||
struct enc_ctx *e_ctx;
|
||||
struct enc_ctx *d_ctx;
|
||||
@@ -75,7 +75,7 @@ struct remote
|
||||
{
|
||||
int fd;
|
||||
ssize_t buf_len;
|
||||
int buf_idx;
|
||||
ssize_t buf_idx;
|
||||
char *buf; // remote send from, server recv into
|
||||
struct remote_ctx *recv_ctx;
|
||||
struct remote_ctx *send_ctx;
|
||||
|
||||
Reference in New Issue
Block a user