Summary of the invention
In view of this, the application provides a kind of network control method and device, and the network legal power of control terminal, meets the demand of controlling network under specific environment flexibly.
For solving the problems of the technologies described above, the application's technical scheme is achieved in that
A network control method, described method comprises:
Server creates group, and configures the network legal power information of this group, and the information that need to add the terminal of this group;
Add as required the information of the terminal of this group to each terminal, to send the notice message that adds this group;
When receiving arbitrary described terminal and adding the request message of this group, this terminal is added to this group, and described network legal power information is sent to this terminal, and make this terminal according to after this network legal power information configuration network legal power, can only communicate with the network that described network legal power does not limit.
A network control method, described method comprises:
Terminal receives that server sends while adding the notice message of group, sends the request message that adds this group to this server;
When receiving server this terminal being added to the network legal power information sending after this group, according to this network legal power information configuration network legal power, this terminal can only be communicated with the network that described network legal power does not limit.
A network control unit, can be applicable in server, and this device comprises:
Dispensing unit, for creating group, and configures the network legal power information of this group and the information that need to add the terminal of this group;
Transmit-Receive Unit, according to needing to add the information of the terminal of this group to send the notice message that adds this group to each terminal in described dispensing unit; The request message that adds this group that receiving terminal sends;
Processing unit, while adding the request message of this group for receiving arbitrary described terminal when described Transmit-Receive Unit, this terminal is added to this group, and the network legal power information of described dispensing unit configuration is sent to this terminal, make this terminal according to after this network legal power information configuration network legal power, can only communicate with the network that described network legal power does not limit.
A network control unit, can be applicable in terminal, and this device comprises:
Receiving element, the notice message that adds group sending for reception server; Reception server adds by this place, unit terminal the network legal power information sending after this group;
Transmitting element, for described receiving element, receive that server sends add the notice message of group time, to this server, send the request message that adds this group;
Processing unit, while this terminal being added to the network legal power information sending after this group for receiving server when described receiving element, according to this network legal power information configuration network legal power, terminal described in this unit can only be communicated with the network that described network legal power does not limit.
In sum, the application is by increasing by a station server, this server is by making the terminal that need to carry out network control add Yi Ge group, and configure the network legal power of this group, make to add the network that each terminal of this group can only not limit with network legal power to communicate, thereby the network legal power of control terminal, meets the demand of controlling network under specific environment flexibly.
Embodiment
For making the application's object, technical scheme and advantage clearer, referring to the accompanying drawing embodiment that develops simultaneously, scheme described in the application is described in further detail.
A kind of network control method is proposed in the embodiment of the present application, by increasing by a station server, this server is by making the terminal that need to carry out network control add Yi Ge group, and configure the network legal power of this group, make to add the network that each terminal of this group can only not limit with network legal power to communicate, thereby the network legal power of control terminal, meets the demand of controlling network under specific environment flexibly.
Newly-increased server in the application's specific embodiment can and be realized between the application's terminal and is carried out network service.Each terminal can be passed through local application interface logon server.
Referring to Fig. 1, Fig. 1 is that in the embodiment of the present application, server is realized network limits method flow schematic diagram.Concrete steps are:
Step 101, server creates group, and configures the network legal power information of this group, and the information that need to add the terminal of this group.
When specific implementation server creates group, can also be to pass through mobile terminal, as mobile phone carries out the establishment of group, and the configuration of relevant information, also can be as fixed terminals such as desktop computers, to carry out the establishment of group, and relevant information, then send to server by http protocol message, by server, in this locality, create and generate.
The network legal power information configuring in this step, can comprise: group member can above which website, cannot go up which website; Can login software, cannot login which software, as QQ, micro-letter etc.; The beginning and ending time of network limits etc.
The information of the terminal that need to add this group configuring in this step, comprise: IP address of terminal, for easy identification, also can be each IP address of terminal binding logo, as have the people's of this terminal a name etc., be convenient to or those terminals add Liao Gai group, those need to add and not add.
Step 102, this server adds the information of the terminal of this group to each terminal, to send the notice message that adds this group as required.
This server, carry the pressure rank of this group when each terminal sends the notice message that adds this group, makes each terminal when not adding this group, determine whether to notify book server.
Terminal, when receiving the notice message of server transmission, if when the pressure rank of wherein carrying is high, if do not add this group, needs to send to server the message that refusal adds this group; If add this group, to this server, send the request that adds this group.
If the pressure rank that this notice message carries is low, or do not carry while forcing rank, if this terminal does not add this group, can send the message that refusal adds this group to server, can respond any information yet; If this terminal adds this group, to this server, send the request that adds this group.
When server receives arbitrary described terminal refusal and adds the message of this group, record this terminal refusal and add this group, thereby can know which terminal refusal adds this group, the i.e. restriction of the network legal power of the network Bu Shougai group of which terminal.
Step 103, when this server receives arbitrary described terminal and adds the request message of this group, this terminal is added to this group, and described network legal power information is sent to this terminal, make this terminal according to after this network legal power information configuration network legal power, can only communicate with the network that described network legal power does not limit.
Server is when receiving arbitrary described terminal and add the request of this group, can also first judge whether it has added other group, if so, point out this terminal first to exit added group, treat that this terminal has exited added group, then the group that adds current hope to add.
Realize like this, can avoid the network legal power of a plurality of groups of terminal configuration, whether compatible for the configuration of the network legal power of each group, whether affect the normal function of this terminal.If can guarantee that the configuration of the network legal power of each group is independent of each other, can make this terminal add a plurality of groups.
When server sends to this terminal by described network legal power information, can also carry time started and the end time that need to add this group, make this terminal the described time started then, according to this network legal power information configuration network legal power, the end time then, delete this network legal power of configuration.
This terminal, when receiving the network legal power information of server transmission, determines whether also to carry the start and end time that adds this group, if, the time started then, according to this network legal power information configuration network legal power, the end time then, delete this network legal power of configuration; Otherwise, directly according to network legal power information configuration network legal power.
This server, to adding each terminal of this group to send the notice message that exits this group, makes each terminal that network legal power corresponding to this group of this locality configuration deleted.
Server can Jiang Gai group relevant information delete, also can retain, to use next time.
Ru Gai group is used under the scene of having a meeting or attending class, when meeting adjourned, or lower class hour, notify each terminal can exit this group.
Referring to Fig. 2, Fig. 2 is that in the embodiment of the present application, terminal realizes network limits method flow schematic diagram.Concrete steps are:
Step 201, terminal receives that server sends while adding the notice message of group, sends the request message that adds this group to this server.
When this terminal receives the notice message that adds group that server sends and carries the pressure rank of this group, if determine, this forces rank high, and this terminal do not add this group, to this server, sends the message that refusal adds this group; If determine, this pressure rank is low, and does not add this group, can to this server, not send the message that refusal add this group.
No matter whether carry pressure rank, no matter force rank high or low, if determine, add this group, directly to server, send the request message that adds this group.
Step 202, when this terminal receives server this terminal is added to the network legal power information sending after this group, according to this network legal power information configuration network legal power, can only communicate with the network that described network legal power does not limit this terminal.
When receiving server, this terminal is added to the network legal power information sending after this group, while carrying start and end time, the described time started then, according to described network legal power information configuration network legal power; The described end time then, delete the network legal power of configuration.
After terminal configuration network legal power, during to the network request data of network legal power restriction, can be filtered.The network that terminal can only not limit with network legal power communicates.
When server does not need each terminal in Dui Gai group to carry out network limits, each terminal in Xiang Gai group sends the notice message that exits this group.
This terminal receive that this server sends exit the notice message of this group time, delete the network legal power of configuration;
This terminal is situation according to actual needs also, initiatively exits this group.As due to interim busy reason, leave meeting-place.Be implemented as follows:
This terminal, when needs exit this group, delete the network legal power of configuration, and announcement server has exited this group.
When server receives this notice, know that this terminal has exited this group, can will in this terminal Cong Gai group, delete, and record this terminal and exited this group, server can know whether each terminal adds the situation of this group in real time like this.Due to the information of each terminal that need to add this group having configured in advance, also can know whether the terminal that need to add adds, situation about exiting in the middle of whether the terminal adding has, thus know flexibly whether the current network legal power of each terminal is limited.
Inventive concept based on same, the application also proposes a kind of network control unit, can be applicable in server.Referring to Fig. 3, Fig. 3 is the network control unit structural representation being applied in the embodiment of the present application in server.This device comprises:
Dispensing unit 301, for creating group, and configures the network legal power information of this group and the information that need to add the terminal of this group;
Transmit-Receive Unit 302, according to needing to add the information of the terminal of this group to send the notice message that adds this group to each terminal in dispensing unit 301; The request message that adds this group that receiving terminal sends;
Processing unit 303, while adding the request message of this group for receiving arbitrary described terminal when Transmit-Receive Unit 302, this terminal is added to this group, and the network legal power information of dispensing unit 301 configurations is sent to this terminal, make this terminal according to after this network legal power information configuration network legal power, can only communicate with the network that described network legal power does not limit.
Preferably,
Transmit-Receive Unit 302, is further used for the message that receiving terminal refusal adds this group; Carry the pressure rank of this group when each terminal sends the notice message that adds this group, make each terminal when not adding this group, determine whether to notify this place, unit server;
Dispensing unit 301, is further used for, when Transmit-Receive Unit 302 receives arbitrary described terminal refusal and adds the message of this group, recording this terminal refusal and adding this group.
Preferably,
When Transmit-Receive Unit 302 sends to this terminal by described network legal power information, carry time started and the end time that need to add this group, make this terminal the described time started then, according to described network legal power information configuration network limits, the end time then, delete the network legal power of configuration.
Preferably,
Transmit-Receive Unit 302, is further used for, to adding each terminal of this group to send the notice message that exits this group, each terminal being deleted network legal power corresponding to this group of this locality configuration.
Inventive concept based on same, the application also proposes a kind of network control unit, can be applicable in terminal.Referring to Fig. 4, Fig. 4 is the network control unit structural representation that is applied to terminal in the embodiment of the present application.This device comprises:
Receiving element 401, the notice message that adds group sending for reception server; Reception server adds by this place, unit terminal the network legal power information sending after this group;
Transmitting element 402, for receiving element 401, receive that server sends add the notice message of group time, to this server, send the request message that adds this group;
Processing unit 403, while this terminal being added to the network legal power information sending after this group for receiving server when receiving element 401, according to this network legal power information configuration network legal power, this place, unit terminal can only be communicated with the network that described network legal power does not limit.
Preferably,
Transmitting element 402, be further used for when receiving element 401 receives the notice message that adds group that server sends and carries the pressure rank of this group, if determine, this forces rank high, and this terminal do not add this group, to this server, sends the message that refusal adds this group; If determine, this forces rank low, and this terminal do not add this group, to this server, does not send the message that refusal adds this group.
Preferably,
Processing unit 403, be further used for this terminal being added to the network legal power information sending after this group when receiving element 401 receives server, while carrying start and end time, the described time started then, according to described network legal power information configuration network legal power; The described end time then, delete the network legal power of configuration.
Preferably,
Receiving element 401, is further used for the notice message that exits this group that reception server sends;
Processing unit 403, be further used for when receiving element 401 receive that this server sends exit the notice message of this group time, delete the network legal power of configuration; When this terminal is when needs exit this group, delete the network legal power of configuration, and trigger transmitting element 402 these terminals of announcement server and exited this group.
The unit of above-described embodiment can be integrated in one, and also can separatedly dispose; A unit can be merged into, also a plurality of subelements can be further split into.
In sum, the application is by increasing by a station server, this server is by making the terminal that need to carry out network control add Yi Ge group, and configure the network legal power of this group, make to add the network that each terminal of this group can only not limit with network legal power to communicate, thereby the network legal power of control terminal, meets the demand of controlling network under specific environment flexibly.
The above, be only the application's preferred embodiment, is not intended to limit the application's protection range.All within the application's spirit and principle, any modification of doing, be equal to replacement, improvement etc., within all should being included in the application's protection range.