Entry
is there a way to connect ColdFusion to a Socket, e.g. to read real-time data
Dec 2nd, 2000 23:18
Julz, Brigitte Maenhout,
I'm not 100% sure, but Cold Fusion is not really a real time scripting
engine.
You could do CFHTTP to an arbitary port at an interval. Once you have
the CF script setup you could then use the CF Administrator to schedule
it, etc or just run it from some other trigger.
A more real time way to do it would be to write a custom VB or C++
object that sits in the background, maybe run from a service, and sucks
the data from the port and buffers it to disk/memory and then use CF
script CFOBJECT to open a connection to the object and ask for the data
since last time you requested it.
They is probably a much cleaner way but this is just what came to mind
first.
If you want some help with this you could email me.