socks-private.h

来自「GNet是一个简单的网络库。它是目标定向的」· C头文件 代码 · 共 57 行

H
57
字号
/* GNet - Networking library * Copyright (C) 2001-2002  Marius Eriksen, David Helder * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the  * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA  02111-1307, USA. */#ifndef _GNET_SOCKS_PRIVATE_H#define _GNET_SOCKS_PRIVATE_H#include "gnet-private.h"struct socks4_h {	guint8  vn;	guint8  cd;	guint16 dport;	guint32 dip;	guint8  userid;};struct socks5_h {	guint8  vn;	guint8  cd;	guint8  rsv;	guint8  atyp;		guint32 dip;	guint16 dport;};#define GNET_DEFAULT_SOCKS_VERSION 5GTcpSocket* gnet_private_socks_tcp_socket_new (const GInetAddr* addr);GTcpSocketNewAsyncIDgnet_private_socks_tcp_socket_new_async (const GInetAddr* addr, 					 GTcpSocketNewAsyncFunc func,					 gpointer data);GTcpSocket* gnet_private_socks_tcp_socket_server_new (gint port);GTcpSocket* gnet_private_socks_tcp_socket_server_accept (GTcpSocket* s);void gnet_private_socks_tcp_socket_server_accept_async (GTcpSocket* s, 							GTcpSocketAcceptFunc accept_func, 							gpointer user_data);#endif /* _GNET_SOCKS_PRIVATE_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?