Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sock5开启密码认证时,connect会进入死循环退不出? #2

Open
howl-im opened this issue Oct 29, 2021 · 1 comment
Open

Comments

@howl-im
Copy link

howl-im commented Oct 29, 2021

			auto act = _auth->next();
			while (act != SUCCESS && act != FAILURE) {
				if (act == SEND) {
					size_t len;
					auto p = _auth->construct_send(len);
					_socket.send(boost::asio::buffer(p.get(), len));
					_auth->sent();
				}
				else if (act == RECV) {
					size_t len;
					auto p = _auth->construct_receive(len);
					_socket.receive(boost::asio::buffer(p.get(), len));
					_auth->received(p.get(), len);
				}
                                   
                                   **//act = _auth->next(); 缺这句???**
			}
@liulilittle
Copy link
Owner

liulilittle commented Oct 30, 2021

该项目为测试项目,不具备任何实用价值,如果你需要轻松构建于 Windows 上工作的构建3层虚拟网卡应用(可商业),可以参考我们以下基于 VEthernet 框架开发的 tun2socks demo(支持UDP/TCP/ICMP,IP分片)

开发语言及环境为 C# + .NET4.0(x86)提供多核优化(EMC-MCx)支持!
开源项目代码:https://github.com/liulilittle/VEthernet
关于项目描述:liulilittle/VEthernet#1 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants