ihaoqihao / fastsocket.net Goto Github PK
View Code? Open in Web Editor NEWc#异步通信库
c#异步通信库
Is there any complete documentation available in english?
I could read the whole codebase, but that would miss out the point of documentation. Other then that, great project! :)
如题
环境:win 8.1 ,VS 2013
SocketServerManager.Init(); 出错
An unhandled exception of type 'System.Configuration.ConfigurationErrorsException' occurred in System.Configuration.dll
我自己看看源码吧
@ihaoqihao 最新版本的AsyncBinaryCommandInfo 二进制协议不可用,请问后面会支持吗
服务端在运行时,难免会出现一些不可觉察的且未做过处理的异常,造成客户端无法获知这些异常而一直等待到超时抛出超时异常,这两个异常不是同一种异常。
可以参考
https://github.com/xljiulang/NetworkSocket/tree/master/Net40/NetworkSocket/Fast
实现远程端异常后,客户端可以如此编码:
private async void btn_Login_Click(object sender, EventArgs e)
{
var user = new User
{
Account = this.textBox_Account.Text,
Password = this.textBox_Password.Text
};
try
{
var state = await RemoteServer.Instance.Login(user, false);
MessageBox.Show("登录" + (state ? "成功" : "失败"));
}
catch (TimeoutException ex)
{
this.Text = ex.Message;
}
catch (RemoteException ex)
{
MessageBox.Show(ex.Message, "远程服务器异常");
}
}
就像ToDesk一样
this._listener.Accepted注册了不用释放?
可以增加文件传输模块吗
是不是该更新一下了,或者干脆就撤掉。这样太不严谨了。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.