Thread: test when my firewall blocks my application

  1. #1
    Registered User
    Join Date
    Nov 2002

    test when my firewall blocks my application

    i am trying to figure out what todo if i allow my app access the net and let the socket connect
    then about 10 mins later ,, block it with my firewall ,
    i want something to report that its been blocked instantly after i block it
    it must be some condtion with the socket i think
    anyone know how?
    Last edited by Anddos; 09-02-2006 at 04:01 AM.

  2. #2
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    As far as I noticed, you will get an error from the socket functions. For example, the send() will return a -1.
    I don't think the program is capable of identifying a FW block. Think about it, for the application it's the same if the connection fails or the connection is blocked, the result is the same.
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe - Developing free software for the community.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Integer Emulation
    By Elysia in forum C++ Programming
    Replies: 31
    Last Post: 03-18-2008, 01:03 PM
  2. Windows form application and Windows application
    By |Wiz| in forum Windows Programming
    Replies: 5
    Last Post: 10-01-2005, 04:14 PM
  3. test scores
    By ucme_me in forum C Programming
    Replies: 4
    Last Post: 11-14-2001, 01:48 PM
  4. How To Call A User-defined Class in Win32 Application?
    By SonicWave in forum Windows Programming
    Replies: 2
    Last Post: 09-18-2001, 10:23 AM