GithubHelp home page GithubHelp logo

Comments (5)

umby24 avatar umby24 commented on July 24, 2024

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.

caniggia1 avatar caniggia1 commented on July 24, 2024

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.

umby24 avatar umby24 commented on July 24, 2024

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.

caniggia1 avatar caniggia1 commented on July 24, 2024

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.

umby24 avatar umby24 commented on July 24, 2024

Sweet! Enjoy!

from managedsockets.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.