Browse Source

refine the buffer idx

pull/100/head
Max Lv 10 years ago
parent
commit
1a3e6b5127
4 changed files with 8 additions and 8 deletions
  1. 4
      src/local.h
  2. 4
      src/redir.h
  3. 4
      src/server.h
  4. 4
      src/tunnel.h

4
src/local.h

@ -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;

4
src/redir.h

@ -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;

4
src/server.h

@ -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;

4
src/tunnel.h

@ -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;

Loading…
Cancel
Save