Hello Shawn,


Thursday, January 10, 2008, 2:16:24 PM, you wrote:


>

Hello,


I am evaluating Message Sniffer beta version but I am totally confused.  :-)


<snip/>


>

 



But how do I get the result code for the spam message to output back to the command prompt?  If I try to call SNFClient.exe from my C# code, I still cannot get a result code returned to me.


I can get a result code if I do this:


SNFClient.exe -test xx.xx.xx.xx



but SNFClient.exe does not return the result code when I am passing a filename to be tested. 



Can someone point me in the right direction on how to see this result code via my C# software code or command prompt box?


I'm not sure how C# behaves when it calls an external program and how it handles that progam's result code -- I'll do some looking.


However, most programs that call SNFClient do so explicitly to get the result code so I know it works ;-)


One thing that you might try that will improve your performance since you're rolling your own C# code:


Check out the XCI interface. The SNFClient uses it to talk to the SNFServer instance. You should be able to write a quick bit of code to use XCI to talk to SNFServer also.


The basics are (per scan request):


1. Connect to 9001 on localhost via TCP

2. Transmit your request string (XML using the XCI examples as a guide)

3. Read the response string (XML again)

4. Close the connection


Making your own XCI request saves the step of launching yet another program to do it for you.


Hope this helps,


_M





-- 

Pete McNeil

Chief Scientist,

Arm Research Labs, LLC.

#############################################################
This message is sent to you because you are subscribed to
  the mailing list <sniffer@sortmonster.com>.
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>



Reply via email to