Content of the invention
Embodiments of the invention provide a kind of wireless communication system, can realize the high concurrent of communication data at low cost
Transmission, improves data transmission efficiency and accuracy.
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that
The embodiment of the present invention in a first aspect, provide a kind of wireless communication system, comprising: netty server, receiving terminal,
Transmitting terminal and line server;
Described line server is used for distributing described netty server for described receiving terminal, records described receiving terminal and institute
State the connection status of netty server;The mark of the described netty server being connected with described receiving terminal to the instruction of described transmitting terminal
Know or address information;
Described netty server is used for setting up the connection and described receiving terminal between, sets up and described transmitting terminal between
Connect;Communication data is forwarded between described receiving terminal and described transmitting terminal.
In conjunction with a first aspect, in a kind of possible implementation, described netty server, specifically for adopting
Google protobuf agreement receives the described communication data from described transmitting terminal;Using described google protobuf association
View sends described communication data to described receiving terminal;
Wherein, comprise the address information of described receiving terminal in described communication data.
In conjunction with first aspect and above-mentioned possible implementation, in alternatively possible implementation, described online clothes
Business device includes security module, and described security module is used for carrying out purview certification to described receiving terminal;
The described receiving terminal that described line server is only the purview certification by described security module distributes described netty
Server, and record the connection status of described receiving terminal and described netty server.
In conjunction with first aspect and above-mentioned possible implementation, in alternatively possible implementation, described safe mould
Block is additionally operable to carry out purview certification to described transmitting terminal;
The described transmitting terminal instruction that described line server is only the purview certification by described security module is connect with described
The mark of described netty server or address information that receiving end connects.
In conjunction with first aspect and above-mentioned possible implementation, in alternatively possible implementation, described online clothes
There is the first declarative state between business device and described receiving terminal and shift rest interface;
Described line server, specifically for by a described rest interface be derived from described receiving terminal log in letter
Breath, carries out purview certification by described security module to the logon information of described receiving terminal, by a described rest interface is
Distribute described netty server by the described receiving terminal of the purview certification of described security module.
In conjunction with first aspect and above-mentioned possible implementation, in alternatively possible implementation, described online clothes
There is the 2nd rest interface between business device and described transmitting terminal;
Described line server, specifically for by described 2nd rest interface be derived from described transmitting terminal log in letter
Breath, is carried out purview certification by described security module to the logon information of described transmitting terminal, is connect by described 2nd rest interface
Receive the first identification request message from the described transmitting terminal by the purview certification of described security module, described first mark please
Seek the identification information comprising described receiving terminal in message, according to the described receiving terminal comprising in described first identification request message
Identification information obtains the mark of described netty server being connected with described receiving terminal or address information, and passes through described second
The mark of the described netty server that rest interface is connected to the instruction of described transmitting terminal with described receiving terminal or address information.
In conjunction with first aspect and above-mentioned possible implementation, in alternatively possible implementation, described channel radio
At least one described netty server is comprised in letter system.
Wireless communication system provided in an embodiment of the present invention, comprising: netty server, receiving terminal, transmitting terminal and online
Server;Line server is used for distributing netty server, the connection shape of record receiving terminal and netty server for receiving terminal
State;The mark of the netty server being connected with receiving terminal to transmitting terminal instruction or address information;Netty server is used for setting up
Connection and receiving terminal between, sets up the connection and transmitting terminal between;Communication data is forwarded between receiving terminal and transmitting terminal.Logical
Cross the program, because netty server has higher concurrently support function, and support that google protobuf agreement passes
Defeated, therefore can realize the high concurrent transmission of communication data at low cost, and then data transmission efficiency and accurately can be improved
Property.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work
Embodiment, broadly falls into the scope of protection of the invention.
The embodiment of the present invention provides a kind of wireless communication system 1, as shown in figure 1, including netty server 10, receiving terminal
11st, transmitting terminal 12 and line server 13.
Described line server 13 is used for distributing described netty server 10 for described receiving terminal 11, records described reception
End 11 and the connection status of described netty server 10;Indicate to described transmitting terminal 12 described in being connected with described receiving terminal 11
The mark of netty server 10 or address information.
Described netty server 10 is used for setting up the connection and described receiving terminal 11 between, sets up and described transmitting terminal 12
Between connection;Communication data is forwarded between described receiving terminal 11 and described transmitting terminal 12.
Further, described netty server 10, is derived from institute specifically for receiving using google protobuf agreement
State the described communication data of transmitting terminal 12;Send described communication data using described google protobuf agreement to connect to described
Receiving end 11.
Wherein, comprise the address information of described receiving terminal 11 in described communication data.
Further, as shown in Fig. 2 described line server 13 includes security module 131, described security module 131 is used
In purview certification is carried out to described receiving terminal 11.
Described line server 13 is only distributed described by the described receiving terminal 11 of the purview certification of described security module
Netty server 10, and record the connection status of described receiving terminal 11 and described netty server 10.
Further, described security module 131 is additionally operable to carry out purview certification to described transmitting terminal 12.
Described line server 13 is only and is indicated and institute by the described transmitting terminal 12 of the purview certification of described security module
State the mark of described netty server 10 or the address information of receiving terminal 11 connection.
Further, as shown in figure 3, there is the first statement proterties between described line server 13 and described receiving terminal 11
State shifts (representational state transfer, rest) interface.
Described line server 13, specifically for being derived from stepping on of described receiving terminal 11 by a described rest interface
Land information, carries out purview certification by described security module to the logon information of described receiving terminal 11, by a described rest
Interface is that the described receiving terminal 11 of the purview certification by described security module distributes described netty server 10.
Further, there is the 2nd rest interface between described line server 13 and described transmitting terminal 12.
Described line server 13, specifically for being derived from stepping on of described transmitting terminal 12 by described 2nd rest interface
Land information, carries out purview certification by described security module to the logon information of described transmitting terminal 12, by described 2nd rest
Interface is derived from the first identification request message of the described transmitting terminal 12 by the purview certification of described security module, and described the
The identification information of described receiving terminal 11 is comprised, according to the institute comprising in described first identification request message in one identification request message
The identification information stating receiving terminal 11 obtains the mark of described netty server 10 being connected with described receiving terminal 11 or address letter
Breath, and the described netty service being connected to the instruction of described transmitting terminal 12 with described receiving terminal 11 by described 2nd rest interface
The mark of device 10 or address information.
Further, comprise at least one described netty server 10 in described wireless communication system.
Wherein, line server 13 exists for HTTP (hypertext transfer protocol, http)
Line server.
In order to clearly describe, the relevant device in wireless communication system provided in an embodiment of the present invention is how work
Make, so that a communication data of netty server forwards as a example, this specific implementation method is described, as shown in figure 4,
Wireless communications method corresponding to above-mentioned wireless communication system includes:
S101, receiving terminal pass through a rest interface and send the first log on request message to line server, and first logs in
The logon information of receiving terminal is comprised in request message.
Wherein, the logon information of receiving terminal at least can comprise to receive the username and password of end subscriber.Rest interface can
Think interactive interface or direct request interface, rest interface has unified interface requirement, using the teaching of the invention it is possible to provide the discrepancy of batch
Library facility.
S102, line server purview certification is carried out to the logon information of receiving terminal by security module.
The receiving terminal distribution that s103, line server are purview certification by security module by a rest interface
Netty server.
Wherein, line server can be the receiving terminal distribution netty server of the purview certification by security module, and
Send the address information of allocated netty server identification or allocated netty server by a rest interface
To receiving terminal.
It should be noted that netty server can provide higher concurrently support.Specifically, a netty server
Can support that 100,000 terminals are simultaneously online (set up with 100,000 terminals simultaneously and be connected), and forward communication data for online terminal.
S104, receiving terminal are set up for this receiving terminal distribution netty server with line server and are connected.
Specifically, receiving terminal is on the mark receiving the netty server that line server distributes for receiving terminal or ground
Can find and access corresponding netty server after the information of location.
Exemplary, netty server can also comprise the security module for described receiving terminal is carried out with purview certification,
I.e. the security module of netty server can be carried out to this receiving terminal when receiving terminal sends connection request to netty server
Purview certification, and be connected with being set up by the receiving terminal of the purview certification of security module.
The connection status of s105, line server record receiving terminal and netty server.
Wherein, receiving terminal can be after being connected with the foundation of netty server, and transmission is comprised this receiving terminal and taken with netty
Business device establishes a connection, and that is, this receiving terminal has been in the message of the configured information of presence to line server, so that
Line server record receiving terminal and the connection status of netty server.
S106, transmitting terminal pass through the 2nd rest interface and send the second log on request message to line server, and second logs in
The logon information of transmitting terminal is comprised in request message.
Wherein, the logon information of transmitting terminal at least can comprise to receive the username and password of end subscriber.2nd rest connects
Mouth is similar with a rest interface, and the embodiment of the present invention repeats no more here.
S107, line server purview certification is carried out to the logon information of transmitting terminal by security module.
If s108 passes through purview certification, transmitting terminal then passes through the 2nd rest interface transmission the first identification request message and extremely exists
Line server, comprises the identification information of receiving terminal in the first identification request message.
Wherein, comprise the identification information of receiving terminal in the first identification request message, the first identification request message is used for indicating
Line server searches mark or the address letter setting up the netty server being connected with receiving terminal according to the identification information of receiving terminal
Breath.
S109, line server obtain according to the identification information of the receiving terminal comprising in the first identification request message and receive
The mark of netty server or address information that end connects.
S110, line server pass through the netty server that the 2nd rest interface is connected with receiving terminal to transmitting terminal instruction
Mark or address information.
Netty server corresponding to the mark of s111, transmitting terminal and netty server or address information is set up and is connected.
Specifically, transmitting terminal is permissible after the mark receiving the netty server being connected with receiving terminal or address information
Find and access corresponding netty server.
Exemplary, netty server can also comprise the security module for transmitting terminal is carried out with purview certification, that is,
The security module of netty server can be weighed to this transmitting terminal when transmitting terminal sends connection request to netty server
Limit certification, and be connected with being set up by the transmitting terminal of the purview certification of security module.
S112, transmitting terminal send communication data to netty server.
S113, netty server will be received from the data is activation of transmitting terminal to receiving terminal.
It should be noted that netty server can using google protobuf agreement transmitting terminal and receiving terminal it
Between forward data.Google protobuf agreement is more succinct compared with http agreement, using google protobuf agreement
When carrying out data transmission, it is possible to reduce the transmission of the redundant data in addition to communication data, it is possible to reduce forward data volume, improve
Data transmission efficiency and accuracy.
Wireless communication system provided in an embodiment of the present invention, comprising: netty server, receiving terminal, transmitting terminal and online
Server;Line server is used for distributing netty server, the connection shape of record receiving terminal and netty server for receiving terminal
State;The mark of the netty server being connected with receiving terminal to transmitting terminal instruction;Netty server be used for set up with receiving terminal it
Between connection, set up and transmitting terminal between connection;Communication data is forwarded between receiving terminal and transmitting terminal.By the program,
Because netty server has higher concurrently support function, and support google protobuf protocol transmission, therefore may be used
Transmitted with the high concurrent realizing communication data at low cost, and then data transmission efficiency and accuracy can be improved.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each function
The division of module is illustrated, and in practical application, can distribute above-mentioned functions by different function moulds as desired
Block completes, and the internal structure of device will be divided into different functional modules, to complete all or part of work(described above
Energy.The specific work process of the system, apparatus, and unit of foregoing description, may be referred to corresponding in preceding method embodiment
Journey, will not be described here.
It should be understood that disclosed system in several embodiments provided herein, apparatus and method are permissible
Realize by another way.For example, device embodiment described above is only schematically, for example, described module or
The division of unit, only a kind of division of logic function, actual can have other dividing mode when realizing, for example multiple units
Or assembly can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not execute.Another, institute
Display or the coupling each other discussing or direct-coupling or communication connection can be by some interfaces, device or unit
INDIRECT COUPLING or communication connection, can be electrical, mechanical or other forms.
The described unit illustrating as separating component can be or may not be physically separate, show as unit
The part showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.The mesh to realize this embodiment scheme for some or all of unit therein can be selected according to the actual needs
's.
In addition, can be integrated in a processing unit in each functional unit in each embodiment of the present invention it is also possible to
It is that unit is individually physically present it is also possible to two or more units are integrated in a unit.Above-mentioned integrated list
Unit both can be to be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If described integrated unit is realized and as independent production marketing or use using in the form of SFU software functional unit
When, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part in other words prior art being contributed or all or part of this technical scheme can be in the form of software products
Embody, this computer software product is stored in a storage medium, including some instructions with so that a computer
Equipment (can be personal computer, server, or network equipment etc.) or processor (processor) execution the present invention each
The all or part of step of embodiment methods described.And aforesaid storage medium includes: u disk, portable hard drive, read-only storage
(rom, read-only memory), random access memory (ram, random access memory), magnetic disc or CD
Etc. various can be with the medium of store program codes.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by described scope of the claims.