Re: [Flightgear-devel] Reloading a protocol file

2009-09-07 Thread Erik Hofman
Gene Buckle wrote:
 Would it or could it be possible to reload a protocol file as the sim is
 running.

 I'll second this one.  I'm working on adding FG support to RJGlass and the 
 little tweaks are killing me with 30+ second cycle times. :)

I think I've nailed this down in CVS. There is a new entry ind e Debug 
section of the gui Reload Network, although this is a bit misleading 
since it applies to serial port and file i/o also but I couldn't find a 
better (and short) name for it.

I've confirmed this change to work properly with the generic protocol 
and hope it doesn't affect any other protocols either. But it might be a 
good idea to test them out now.

Erik

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Reloading a protocol file

2009-09-07 Thread Gene Buckle

 I've confirmed this change to work properly with the generic protocol
 and hope it doesn't affect any other protocols either. But it might be a
 good idea to test them out now.


Thanks Eric!!

g.

-- 
Proud owner of F-15C 80-0007
http://www.f15sim.com - The only one of its kind.

ScarletDME - The red hot Data Management Environment
A Multi-Value database for the masses, not the classes.
http://www.scarletdme.org - Get it _today_!

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Reloading a protocol file

2009-09-07 Thread Curtis Olson
On Mon, Sep 7, 2009 at 2:38 AM, Erik Hofman e...@ehofman.com wrote:

 Gene Buckle wrote:
  Would it or could it be possible to reload a protocol file as the sim is
  running.
 
  I'll second this one.  I'm working on adding FG support to RJGlass and
 the
  little tweaks are killing me with 30+ second cycle times. :)

 I think I've nailed this down in CVS. There is a new entry ind e Debug
 section of the gui Reload Network, although this is a bit misleading
 since it applies to serial port and file i/o also but I couldn't find a
 better (and short) name for it.

 I've confirmed this change to work properly with the generic protocol
 and hope it doesn't affect any other protocols either. But it might be a
 good idea to test them out now.


Eric,

I'd be interested to know if things like the telnet interface (and other
network interfaces) get closed and reopened correctly.  This sounds like a
kind of drastic thing to do ... to reset the entire network subsystem, but
maybe it will be ok.

Does it only reset when you explicitly ask for a Network subsystem reset, or
does this also get reset whenever you reposition the aircraft or select
reset from the file menu.  That could actually be a problem for situations
where a person is running a hybrid of systems talking to each other, or
multiple copies of flightgear and connections are broken and have to be
re-established.

This one sounds drastic enough that it might come back and bite us in a
variety of ways for certain uses of the software.

Thanks,

Curt.
-- 
Curtis Olson: http://baron.flightgear.org/~curt/
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Reloading a protocol file

2009-09-07 Thread Erik Hofman
Curtis Olson wrote:
 I'd be interested to know if things like the telnet interface (and 
 other network interfaces) get closed and reopened correctly.  This 
 sounds like a kind of drastic thing to do ... to reset the entire 
 network subsystem, but maybe it will be ok.
The FGIO class has always been derived from the subsystem class but it 
was controlled explicitly. I' ve added a reinit stub for most classes 
since it wasn't present and isn't added to other classes than the 
generic protocol handler. So the reset should have no result for other 
classes. The only thing the generic protocol do is read the 
configuration file and setup the internals so they get used on the next 
update call, no sockets activity there.

 Does it only reset when you explicitly ask for a Network subsystem 
 reset, or does this also get reset whenever you reposition the 
 aircraft or select reset from the file menu.  That could actually be 
 a problem for situations where a person is running a hybrid of systems 
 talking to each other, or multiple copies of flightgear and 
 connections are broken and have to be re-established.

I think reinit also runs when FlightGear gets reset, but like I said, 
only the generic protocol implements reinit.

 This one sounds drastic enough that it might come back and bite us in 
 a variety of ways for certain uses of the software.
I think it's less drastic than it sounds and don' t expect any problems 
(unless I've overlooked something).

Erik

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Reloading a protocol file

2009-09-07 Thread Curtis Olson
Sounds good, I had envisioned that all the network and IO interfaces were
being closed and deleted and reopened, but if that's not happening with this
change then I think we are fine.

Thanks,

Curt.


On Mon, Sep 7, 2009 at 3:54 PM, Erik Hofman wrote:

 Curtis Olson wrote:
  I'd be interested to know if things like the telnet interface (and
  other network interfaces) get closed and reopened correctly.  This
  sounds like a kind of drastic thing to do ... to reset the entire
  network subsystem, but maybe it will be ok.
 The FGIO class has always been derived from the subsystem class but it
 was controlled explicitly. I' ve added a reinit stub for most classes
 since it wasn't present and isn't added to other classes than the
 generic protocol handler. So the reset should have no result for other
 classes. The only thing the generic protocol do is read the
 configuration file and setup the internals so they get used on the next
 update call, no sockets activity there.
 
  Does it only reset when you explicitly ask for a Network subsystem
  reset, or does this also get reset whenever you reposition the
  aircraft or select reset from the file menu.  That could actually be
  a problem for situations where a person is running a hybrid of systems
  talking to each other, or multiple copies of flightgear and
  connections are broken and have to be re-established.

 I think reinit also runs when FlightGear gets reset, but like I said,
 only the generic protocol implements reinit.
 
  This one sounds drastic enough that it might come back and bite us in
  a variety of ways for certain uses of the software.
 I think it's less drastic than it sounds and don' t expect any problems
 (unless I've overlooked something).

 Erik


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus
 on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel




-- 
Curtis Olson: http://baron.flightgear.org/~curt/
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Reloading a protocol file

2009-09-06 Thread Gene Buckle
 Would it or could it be possible to reload a protocol file as the sim is
 running.

I'll second this one.  I'm working on adding FG support to RJGlass and the 
little tweaks are killing me with 30+ second cycle times. :)

g.

-- 
Proud owner of F-15C 80-0007
http://www.f15sim.com - The only one of its kind.

ScarletDME - The red hot Data Management Environment
A Multi-Value database for the masses, not the classes.
http://www.scarletdme.org - Get it _today_!

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel