Comments (5)
Hey! Thanks for the interest.
Do you have an example of running into that exception?
I'm able to get an exception on that line, but it's a socket exception mentioning the machine listed refused the connection (given a closed port), or I get a timeout exception (given an unroutable IP Address), both of which are expected behavior.
I'll go ahead and add some unit tests to cover a couple of those cases.
from managedsockets.
Hey, thanks for your reply.
I've just downloaded your Viewer project, opened it in Visual Studio Community 2017
and start Debuger on Viewer.
I've put into textbox non-existing IP on my network (192.168.10.150) and clicked on Connect Button .
Or i've put into textbox existing IP on my network (192.168.10.151) but closed port(6667) and clicked on Connect Button.
Both times i get 'Exception Unhandled' and if i continue(F10) program just crashes.
I cannot handle this error even if i add this to 'button1_Click':
try {
_mySock.Connect();
} catch {
WriteToBox("Connection Timeout");
}
BR
caniggia
from managedsockets.
reproduced and confirmed the issue.
I created some code (in the commit referenced above) that should cover this.
Strangely enough it doesn't fire in unit tests, so I have that commented out for now, but please pull the latest and see if this covers your issue.
from managedsockets.
Hey, that solved my issues.
From now on i dont have to mess around anymore with c# sokets, I'm just gonna use your library.
It fits all my needs and it's so easy to use :)
Thanks Man.
BR
caniggia
from managedsockets.
Sweet! Enjoy!
from managedsockets.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from managedsockets.