refine the buffer idx

This commit is contained in:
Max Lv
2014-08-01 13:42:32 +08:00
parent cf04f73a98
commit 1a3e6b5127
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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;