View Complete Thread | FoxWeb Forum Home
Search:
Date:    Msg ID:   
From:    Thread:   
Subject:   
There's no way to direct a request to a particular channel, but there is a way to check the status of channels programmatically.  Unfortunately this is not a documented interface, but I may be able to dig out some code. 
 
What exactly are you trying to do?  Are you trying to write a monitoring application that will restart channels, or alert you if there is a problem?  This would be better handled by the FoxWeb Channel Monitor.  In the rare cases where the FoxWeb Channel Monitor fails to restart channels, it would probably not be posible to restart them another way either.

FoxWeb Support Team
support@foxweb.com email

Sent by Joe Cosby on 12/29/2003 12:56:32 PM:
I need to set up a script to check the number of channels active on a FW server.
 
I thought this would be easier than it is ...
 
show_channels.fwx appears to be able to look at individual channels selectively, which is what I have in mind.  There doesn't appear to be code for this anywhere in my FW install though, it appears to be inlined to the FW binary or DLL or something or other.
 
I found the Request.CurrentChannel property, which is helpful, but not quite what I need.  This will allow me to say, my request is currently on channel X, but I need to be able to specifically make a request to channel X.  According to the docs Request.CurrentChannel is read-only.
 
Basically if we have say three channels, I need a script to do something like this
 
FOR i = 1 to 3
   CallChannel(i)
ENDFOR
 
and either trap an error if channel 'i' doesn't respond or get a failure message back or what have you.
 
Is there a way to do this?