I suspect you would need to write, or use a third party's, event gateway.
Message was edited by: JR "Bob" Dobbs
Now that I think about it, I might not even need to use CF. What I need is the abillity to log the scan into my SQL database, and just display the info from the database. No point in getting CF involved if I dont have to.
The way it works "out of the box" is that a telnet session needs to be running somewhere on the network. It monitors the IP / Port in question for activity and writes the scan to a simple text file. I just need to figure out how to change it so the telnet session writes to my DB rather than to a text file.
My original thought was to have CF monitor and maintain a telnet session, but that may be unnecessary if I can find another way to get the data into SQL Server directly.
I changed course a bit, but I am not totally happy with the solution.
The scanner logs the collected data to a text file (a CSV)
When a visitor hits my web page, it reads the CSV file, loops through it and inserts the data into SQL Server.
The program then deletes the CSV file completely.
The program then recreates the CSV file with just the headers.
The very next scan after a page view always goes into an empty table.
Not sure what will happen when the timing overlaps. We shall see.
It sounds like the scanner can't put the data directly in the database, huh? That being the case, your approach sounds pretty good but note that you don't have to wait for someone to hit the page: you can use the DirectoryWatcherGateway, you can create your own event gateway, you can use a scheduled task, or you can even do it all in code by using asynchronous threads.
I realize I can use the other options, but I dont see any point in using up cycles and resources when there
very well may be nothing new in the interim.
So, my philosoply is, when somene is interested enough to look at the web page, I will poll the text file to see if there is anything new.