Invention content
The technical issues of present invention need to solve is to overcome the shortcomings of above-mentioned, provides to configure on a kind of broadband cat and come into force in real time
Method.
The method to come into force in real time is configured on a kind of broadband cat, including:
A managing process is created, process message ought to be used with receiving area;
The managing process parses the type of the message of the application process, judges whether the application process message will turn
Issue other application process;
If the application process message need not be transmitted to other application process, stop the application process, then again
Start the process, reads new configuration file, reinitialize.
If the application process message needs to be transmitted to other application process, the application is forwarded by the managing process
Process message is to other application process.
Preferably, after the managing process forwards the application process message to other application process, further include:
The other application process receives the application process message;
The other application process re-reads configuration file, updates relevant parameter.
Preferably, the application process includes PPPOE, DHCP, DNS, IGMP and HTTP.
Preferably, the managing process is cfg manager processes.
After the method for the present invention, application process message is received by a managing process, after application process changes, hair
Message give the managing process, judged whether to need to be forwarded to other application process by managing process, avoid application process it
Between cannot communicate, after being changed in an application process, can not inform other application process, prevent configuration from coming into force in real time
Problem.
Specific implementation mode
In order to make relevant technical staff in the field more fully understand technical scheme of the present invention, below in conjunction with of the invention real
The technical solution in embodiment of the present invention is clearly and completely described in the attached drawing for applying mode, it is clear that described reality
The mode of applying is only some embodiments of the invention, rather than whole embodiments.
The invention will be further described with embodiment below in conjunction with the accompanying drawings.
Refering to fig. 1, be configure the method to come into force in real time on a kind of broadband cat of embodiment provided by the invention, including:
Step S101 creates a managing process, and the message of application process is managed with receiving area;
The managing process of establishment is powered on by broadband cat and is created that later, never exited, and is handled and is applied with real-time reception
The message of process removes non-broadband cat power down.In the cat of broadband, it cannot be communicated between each application process, application process becomes
After more, other application process can not be notified.For example, when user has modified the user name or password of PPPOE, PPPOE processes are first protected
It deposits in new user name or password to configuration file, but can not inform the user name or password hair of other applications PPPOE
Life changes, and broadband cat needs to restart, and application process reads the user name or password of new PPPOE in configuration file again, this
When, user name new PPPOE or password just come into force.
Certainly, application process includes but not limited to PPPOE, DHCP, DNS, IGMP and HTTP, in the present embodiment, manage into
Journey is cfg manager processes.
Step S102, managing process parse the type of application process message, judge whether application process message will be transmitted to
Other application process;
It is changed in application process, its what generation told to managing process for application process sending application process message
Change, and tell whether it needs to be transmitted to other application process in application message.If application process message needs to forward
Other application process is given, the application process that needs forward is added in application process message, managing process is allowed to go to forward.
If application process message need not forward, then follow the steps S103, stop application process, then restart this into
Journey reads new configuration file, reinitializes.
If application process message needs to be transmitted to other application process, S104 is thened follow the steps, it should by managing process forwarding
Application process message is to other application process.
After managing process forwards the application process message to other application process, further include:
Other application process receives application process message;
Other application process re-reads configuration file, updates relevant parameter.
For example, when the default gateway for having modified broadband cat in the page, it is responsible for the HTTP processes of the page first by new acquiescence net
Pass is write in configuration file, retransmits the newer message of default gateway to cfg manager processes, cfg manager process solutions
Analyse HTTP application process message, it is found that the HTTP application process message is default gateway update, and need to be forwarded to PPPOE,
DHCP application processes, PPPoE and DHCP application processes receive that the default gateway sent by cfg manager processes is newer to answer
With configuration file is just re-read immediately after process message, the gateway parameter of oneself is updated, to realize default gateway configuration
It comes into force in real time.
After the method for the present invention, by a managing process individual reception application process message, application process changes
Afterwards, hair message give the managing process, judged whether to need to be forwarded to other application process by managing process, avoid using into
It cannot be communicated between journey, after being changed in an application process, can not inform other application process, prevent configuration from giving birth in real time
The problem of effect.
Only several embodiments of the present invention are expressed above, the description thereof is more specific and detailed, but can not therefore and
It is interpreted as the limitation to the scope of the claims of the present invention.It should be pointed out that for those of ordinary skill in the art, not taking off
Under the premise of present inventive concept, various modifications and improvements can be made, these are all within the scope of protection of the present invention.Cause
This, the protection domain of patent of the present invention should be determined by the appended claims.