CN103716405B - Game server long-range sharing system and method - Google Patents

Game server long-range sharing system and method Download PDF

Info

Publication number
CN103716405B
CN103716405B CN201310754262.2A CN201310754262A CN103716405B CN 103716405 B CN103716405 B CN 103716405B CN 201310754262 A CN201310754262 A CN 201310754262A CN 103716405 B CN103716405 B CN 103716405B
Authority
CN
China
Prior art keywords
server
file
far
binary
game
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310754262.2A
Other languages
Chinese (zh)
Other versions
CN103716405A (en
Inventor
刘德建
陈宏展
杨鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian TQ Digital Co Ltd
Original Assignee
Fujian TQ Digital Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian TQ Digital Co Ltd filed Critical Fujian TQ Digital Co Ltd
Priority to CN201310754262.2A priority Critical patent/CN103716405B/en
Publication of CN103716405A publication Critical patent/CN103716405A/en
Application granted granted Critical
Publication of CN103716405B publication Critical patent/CN103716405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of game server long-range sharing system, by the shared library file comprising game logic be arranged in order according to configuration file and storing according to binary format one by one for first far-end server, stores according to predetermined way to encrypting and being packed into binary stream file and be uploaded to the second far-end server.Home server is decomposed with the shared library file of correspondence according to the binary stream file that predetermined format will be downloaded, and the binary data stream obtained after loading decryption is to start game server.Further, the present invention also provides a kind of game server teleengineering support method, using the present invention, is obtained from the far-end server and loads shared library file to ensure the security of home server running game when home server needs and starts.

Description

Game server long-range sharing system and method
Technical field
The present invention relates to computer internet technical field, more particularly to a kind of game server long-range sharing system and side Method.
Background technology
The existing game server software built in linux operating systems contains substantial amounts of SB, and these are total to Enjoy support of the storehouse there is provided many various game logics.According to common realization, these SBs are placed on after compiling Locally(Put together with shell main programs), dynamic load one by one is carried out during startup by main program, and carry out just Beginningization.But, for a game item, game server is an extremely important kernel software, to security It is required that it is high, once game server environment is compromised, it will heavy losses are caused to whole game item.Done according to common Method, i.e. SB are placed on locally, there is great security risk, after game server environment is leaked out, game garment Business device just can easily in local boot.
The content of the invention
Embodiment of the present invention technical problem to be solved is, there is provided a kind of game server long-range sharing system and side Method, ensure that can not make it in the case where server environment is revealed in local directly operation, so as to provide a safety Server environment.
The present invention provides a kind of game server long-range sharing system, including the first far-end server, the second remote service Device and at least one home server, second far-end server by network and first far-end server and this at least one Individual home server is attached, and first far-end server is used to pass through configuration file by the shared library text comprising game logic Part is arranged in order, and the shared library file is stored according to binary format one by one according to configuration sequence, according to predetermined The shared library file of binary format of the mode to storing is encrypted, and according to predetermined packing form by by encryption Binary data stream is packed to form corresponding binary stream file, and the binary stream files passe that the packing is generated Stored to second far-end server.
The home server be used for second far-end server send request with download the binary stream file to this Ground server buffer, different some partial documents are resolved into according to predetermined format by the binary stream file of download, and according to Each partial document is corresponded to a shared library file by configuration file, each partial document is decrypted and is total to obtaining each The binary data stream of library file is enjoyed, and the loading of shared library file is carried out according to the binary data stream that decryption is obtained, and Start the home server after the completion of all shared library file loadings and provide the user game services.
Further, the present invention also provides a kind of game server teleengineering support method, and the method includes:
Make the first far-end server carries out order by predetermined configuration file by the shared library file comprising game logic Configuration.
Make the first far-end server that the shared library file is stored according to binary format one by one according to configuration sequence, according to The shared library file of binary format of the predetermined way to storing is encrypted to form the binary data stream of encryption, according to pre- Fixed packing form will be packed to form corresponding binary stream file and preserve by the binary data stream of encryption.
The first far-end server is made to store binary stream files passe to second far-end server of generation of packing.
Home server is made to send request to download corresponding binary stream file to home server to far-end server Caching.
Make home server that the binary stream file of download be resolved into different some partial documents according to predetermined format, Each partial document is corresponded to by a shared library file according to configuration file, and each partial document is decrypted to obtain The binary data stream of each shared library file.And
Making home server carries out the loading of shared library file according to the binary data stream that decryption is obtained, and when all common Startup game server provides the user game services after the completion of enjoying library file loading.
A kind of game server long-range sharing system and method that the present invention is provided, by setting home server and distal end Server and preserved in far-end server with the shared library file of game logic mailbox, when home server needs to start Shared library file is obtained and loaded from the far-end server, so as to ensure the security of home server running game.
Brief description of the drawings
Fig. 1 is the hardware structure schematic diagram of the game server long-range sharing system in embodiment of the present invention;
Fig. 2 is the first far-end server, the second far-end server in the game server long-range sharing system shown in Fig. 1 And the high-level schematic functional block diagram that home server carries out data transmission;
Fig. 3 is the schematic flow sheet of the game server teleengineering support method in embodiment of the present invention.
Label declaration:
System 10
First far-end server 20
Processing unit 21,41
Configuration module 211
File read module 212
Encrypting module 213
Packetization module 214
Memory cell 22
Communication unit 23,43
Far-end server 30
Home server 40
Document analysis module 411
Deciphering module 412
Load-on module 413
Temporary storage cell 42
Specific embodiment
To describe technology contents of the invention, structural feature, the objects and the effects in detail, below in conjunction with implementation method And coordinate accompanying drawing to be explained in detail.
Shell, the Chinese meaning is shell, in computer science, refers to the software of " carrying interface for users to use ", generally Refer to the resolver of Command Line Interface.In general, during this word refers to operating system, there is provided access the clothes that kernel is provided The program of business.But this word also brings finger application software, or any software in specific components periphery, for example browser or EUDORA is the shell of HTML typesetting engines.Shell this word comes from operating system(Kernel)With user interface Outer bed boundary.Shell is generally divided into two classes:Order line and graphical interfaces.Order line shell provides a Command Line Interface (CLI);And figure shell provides a graphic user interface(GUI).
Fig. 1 is referred to, is the hardware structure schematic diagram of the game server long-range sharing system in embodiment of the present invention. The system 10 includes the first far-end server 20, the second far-end server 30 and at least one home server 40, and this second Far-end server 30 is attached by network with least one home server 40 and first far-end server 20, the net Network can be internet, intranet or other applicable networks.In the present embodiment, first far-end server 20 are arranged to game logic processing server, and second far-end server 30 is arranged to shared server, the local service Device 40 is arranged to game server, and first far-end server 20 is used to be packed game logic and to be uploaded to second remote End server 30 is stored, and the home server 40 is used to obtain game logic from second far-end server 30 and run The game logic, so as to provide the user game services.
Please refer to Fig. 2, first far-end server 20 includes processing unit 21, memory cell 22 and communication unit 23.The processing unit 21 includes configuration module 211, file read module 212, encrypting module 213 and packetization module 214.Its In, the configuration module 211 is used to obtain the shared library file comprising game logic(.so file), and by predetermined configuration text Be arranged in order for the shared library file by part.In the present embodiment, the shared library file is by first far-end server 20 Keeper write-in, in other embodiments, the configuration module 211 can also be led to from first far-end server 20 Library file is shared in acquisition accordingly in believing the storage device of connection.This document read module 212 is used for complete according to configuration module 211 Into configuration sequence the shared library file is stored into the memory cell 22 according to binary format one by one, the encrypting module The 213 shared library files for being used for the binary format to being stored in memory cell 22 according to predetermined way are encrypted and are added with formation Close binary data stream.The packetization module 214 is used for two will encrypted by encrypting module 213 according to predetermined packing form Binary data stream is packed to form corresponding binary stream file, and is stored in memory cell 22.In present embodiment In, the packetization module 214 packs the binary data stream to form corresponding binary stream text according to the form of " length+buf " Part.
When first far-end server 20 completes the storage of the shared library file comprising game logic, the packetization module 214 are additionally operable to store binary stream files passe to second far-end server 30 for generation of packing by communication unit 23. In the present embodiment, after the packetization module 214 completes the binary stream files passe to second far-end server 30 also For removing binary stream file of the storage in local storage unit 22.
The home server 40 includes processing unit 41, temporary storage cell 42 and communication unit 43.The processing unit 21 For running shell main program modules, wherein, the shell main program modules do not include any game logic.Work as home server It is logical during the processing unit 21 operation shell main program module request shared data library files when 40 user needs loading game Cross the communication unit 43 and send corresponding request to second far-end server 30, and asked from second far-end server 30 And corresponding binary stream file to the home server 40, and storage are downloaded in the interim storage list of home server 40 In unit 42.In the present embodiment, the solicited message that second far-end server 30 sends according to the home server 40 judges The environment of the home server 40 whether safety, and when it is determined that the home server 40 Environmental security when respond the solicited message Send corresponding binary stream file to the home server 40.
The binary stream file that the home server 40 is downloaded from second far-end server 30 is preserved as temporary file In the temporary storage cell 42, when being started shooting again after the home server 40 shutdown and needing loading to play, the local clothes Business device 40 needs to send again request accordingly and downloads corresponding binary stream file with from second far-end server 30.
The processing unit 41 of the home server 40 includes document analysis module 411, deciphering module 412 and load-on module 413, this document parsing module 411 is used for the binary stream file that will be downloaded and preserve into memory cell 42 according to predetermined format Different some partial documents are resolved into, and each partial document is corresponded to by a shared library file according to configuration file. In present embodiment, this document parsing module 411 resolves into binary stream file according to the form of " length+buf " different Buffer files.The deciphering module 412 is used to that each partial document to be decrypted to enter to obtain the two of each shared library file Data flow processed.The binary data stream that the load-on module 413 is used to be obtained according to the decryption of deciphering module 412 carries out shared library file Loading, and start game server after the completion of all shared library files loadings and provide the user game services.
Fig. 3 is referred to, is the flow chart of the game server teleengineering support method in embodiment of the present invention.The method bag Include following steps:
Step S50, the configuration module 211 of first far-end server 20 obtains the shared library file comprising game logic (.so file), and the shared library file is arranged in order by predetermined configuration file.
In the present embodiment, the shared library file is write by the keeper of first far-end server 20, in other realities Apply in mode, the configuration module 211 can also be obtained from the storage device being communicatively coupled with first far-end server 20 Take shared library file accordingly.
Step S51, the configuration that the file read module 212 of first far-end server 20 is completed according to configuration module 211 Order is one by one stored into the memory cell 22 the shared library file according to binary format, and the encrypting module 213 is according to pre- The shared library file for determining binary format of the mode to being stored in memory cell 22 is encrypted to form the binary number of encryption According to stream, carried out according to the binary data stream that predetermined packing form will be encrypted by encrypting module 213 by the packetization module 214 Packing is stored in memory cell 22 with forming corresponding binary stream file.
In the present embodiment, the packetization module 214 according to the form of " length+buf " pack the binary data stream with Form corresponding binary stream file.
Step S52, the packetization module 214 of first far-end server 20 will pack the two of generation to enter by communication unit 23 Stream file processed is uploaded to second far-end server 30 and stores.
In the present embodiment, when the packetization module 214 completes the binary stream files passe to second remote service It is additionally operable to remove binary stream file of the storage in local storage unit 22 after device 30.
Step S53, the operation shell main program module request shared data library texts of processing unit 41 of the home server 40 Corresponding request is sent to second far-end server 30 during part, and is asked from second far-end server 30 and is downloaded phase The binary stream file answered is to the home server 40, and storage is in the temporary storage cell 42 of home server 40.
In the present embodiment, the solicited message that second far-end server 30 sends according to the home server 40 judges Whether the environment of the home server 40 is safe, and when the Environmental security phase for determining the home server 40 should solicited message Send corresponding binary stream file to the home server 40.
Step S54, the document analysis module 411 of the home server 40 will be downloaded and preserved to storage according to predetermined format Binary stream file in unit 42 resolves into different some partial documents, and according to configuration file by each partial document pair Each partial document should be decrypted by the deciphering module 412 obtain each shared library file to a shared library file Binary data stream.
In the present embodiment, this document parsing module 411 divides binary stream file according to the form of " length+buf " Solution is into different buffer files.
Step S55, the load-on module 413 of the home server 40 decrypts the binary number for obtaining according to deciphering module 412 The loading of shared library file is carried out according to stream, and starts game server after the completion of all shared library file loadings to provide the user Game services.
A kind of game server long-range sharing system and method that the present invention is provided, by setting home server and distal end Server and preserved in far-end server with the shared library file of game logic mailbox, when home server needs to start Shared library file is obtained and loaded from the far-end server, so as to ensure the security of home server running game.
Embodiments of the invention are the foregoing is only, the scope of the claims of the invention is not thereby limited, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related arts Field, is included within the scope of the present invention.

Claims (10)

1. a kind of game server long-range sharing system, including the first far-end server, the second far-end server and at least one Individual home server, second far-end server is by network and first far-end server and described at least one local Server is attached, it is characterised in that first far-end server is used for comprising game logic by configuration file Shared library file is arranged in order, and the shared library file is deposited according to binary format one by one according to configuration sequence Storage, the shared library file of the binary format according to predetermined way to storing is encrypted, and according to predetermined packing form To be packed by the binary data stream of encryption to form corresponding binary stream file, and the binary system that packing is generated Stream file is uploaded to second far-end server and is stored;
The home server is used to send request to download the binary stream file to institute to second far-end server Home server caching is stated, the binary stream file of download is resolved into different some partial documents according to predetermined format, and Each partial document is corresponded to by a shared library file according to configuration file, each partial document is decrypted every to obtain The binary data stream of individual shared library file, and adding for shared library file, is carried out according to the binary data stream that decryption is obtained Carry, and start the home server after the completion of all shared library file loadings and provide the user game services.
2. game server long-range sharing system as claimed in claim 1, it is characterised in that first far-end server is pressed Form according to " length+buf " packs the binary data stream to form corresponding binary stream file, the home server Binary stream file is resolved into different buffer files by the form according to " length+buf ".
3. game server long-range sharing system as claimed in claim 1, it is characterised in that the home server operation Shell programs send the request for downloading the binary stream file to second far-end server.
4. game server long-range sharing system as claimed in claim 1, it is characterised in that the second far-end server root The request sent according to the home server judges whether the environment of the home server is safe, and when the determination local clothes The request is responded during the Environmental security of business device and sends corresponding binary stream file to the home server.
5. game server long-range sharing system as claimed in claim 1, it is characterised in that the first far-end server quilt Game logic processing server is set to, the home server is arranged to game server, second far-end server It is arranged to shared server.
6. a kind of game server teleengineering support method, it is characterised in that methods described includes:
Make the first far-end server that the shared library file comprising game logic is arranged in order by predetermined configuration file;
Make the first far-end server that the shared library file is stored according to binary format one by one according to configuration sequence, according to pre- The shared library file for determining binary format of the mode to storing is encrypted to form the binary data stream of encryption, according to predetermined Packing form will by encryption binary data stream be packed to form corresponding binary stream file and preserve;
The first far-end server is made to store binary stream files passe to second far-end server of generation of packing;
Make home server send request to far-end server and cached with downloading corresponding binary stream file to home server;
Make home server that the binary stream file of download be resolved into different some partial documents according to predetermined format, according to Each partial document is corresponded to a shared library file by configuration file, and each partial document is decrypted to obtain each The binary data stream of shared library file;And
Making home server carries out the loading of shared library file according to the binary data stream that decryption is obtained, and when all SBs Start game server after the completion of file loading and provide the user game services.
7. game server teleengineering support method as claimed in claim 6, it is characterised in that described " according to predetermined packing Form will by encryption binary data stream be packed to form corresponding binary stream file " include according to " length+ The form of buf " packs the binary data stream to form corresponding binary stream file.
8. game server teleengineering support method as claimed in claim 7, it is characterised in that " make home server according to pre- The binary stream file of download is resolved into different some partial documents by the formula that fixes " including will according to the form of " length+buf " Binary stream file resolves into different buffer files.
9. game server teleengineering support method as claimed in claim 6, it is characterised in that " make home server to distal end Server sends request and is cached with downloading corresponding binary stream file to home server " include making the second far-end server root The request sent according to home server judges whether the environment of the home server is safe, and when the determination home server Environmental security when respond the request and send corresponding binary stream file to the home server.
10. game server teleengineering support method as claimed in claim 6, it is characterised in that " make home server to distal end Server sends request and is stored with downloading corresponding binary stream file to home server " include making home server run Shell programs send request and are cached with downloading corresponding binary stream file to home server to far-end server.
CN201310754262.2A 2013-12-31 2013-12-31 Game server long-range sharing system and method Active CN103716405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310754262.2A CN103716405B (en) 2013-12-31 2013-12-31 Game server long-range sharing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310754262.2A CN103716405B (en) 2013-12-31 2013-12-31 Game server long-range sharing system and method

Publications (2)

Publication Number Publication Date
CN103716405A CN103716405A (en) 2014-04-09
CN103716405B true CN103716405B (en) 2017-06-06

Family

ID=50408975

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310754262.2A Active CN103716405B (en) 2013-12-31 2013-12-31 Game server long-range sharing system and method

Country Status (1)

Country Link
CN (1) CN103716405B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893860A (en) * 2016-05-05 2016-08-24 百度在线网络技术(北京)有限公司 Key code protection method, code generation device and code operation device
CN109150843A (en) * 2018-07-25 2019-01-04 深圳点猫科技有限公司 The method and its system of network data transmission are realized based on graphic programming platform
CN112104650A (en) * 2020-09-15 2020-12-18 南方电网科学研究院有限责任公司 Protection system of server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369227A (en) * 2008-06-16 2009-02-18 腾讯数码(深圳)有限公司 Game virtual machine and game development system and method implemented by the same
CN101626380A (en) * 2009-07-24 2010-01-13 深圳市新飞扬数码技术有限公司 Data processing system, data processing server and processing method thereof for online games
CN102053853A (en) * 2010-12-30 2011-05-11 北京像素软件科技股份有限公司 Version updating method of online game

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120246226A1 (en) * 2011-03-23 2012-09-27 Tappin Inc. System and method for sharing data from a local network to a remote device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369227A (en) * 2008-06-16 2009-02-18 腾讯数码(深圳)有限公司 Game virtual machine and game development system and method implemented by the same
CN101626380A (en) * 2009-07-24 2010-01-13 深圳市新飞扬数码技术有限公司 Data processing system, data processing server and processing method thereof for online games
CN102053853A (en) * 2010-12-30 2011-05-11 北京像素软件科技股份有限公司 Version updating method of online game

Also Published As

Publication number Publication date
CN103716405A (en) 2014-04-09

Similar Documents

Publication Publication Date Title
US11468390B2 (en) Secure shipping interactions using blockchains
KR101471589B1 (en) Method for Providing Security for Common Intermediate Language Program
CN111552931A (en) Method and system for adding shell of java code
US11100244B2 (en) File packaging and unpackaging methods, apparatuses, and network devices
CN108563517B (en) Calling method and device of system interface
CN108229148B (en) Sandbox unshelling method and sandbox unshelling system based on Android virtual machine
CN104424423B (en) The permission of application program determines method and apparatus
CN103888485A (en) Method for distributing cloud computing resource, device thereof and system thereof
CN104714812B (en) Rapid deployment and the method and system of loading Java applications in cloud environment
CN103677948B (en) A kind of trigger and startup method
CN108229112A (en) A kind of operation method and device for protecting application program, application program
CN103176775B (en) A kind of method and apparatus realizing Web page application program localization
CN107273723B (en) So file shell adding-based Android platform application software protection method
CN105989252B (en) A kind of hulling method and system for function rank shell adding
WO2017219526A1 (en) Method for using graphic file format and storage device
CN103716405B (en) Game server long-range sharing system and method
CN111143869A (en) Application package processing method and device, electronic equipment and storage medium
CN105138333A (en) APK file compression method and system based on Android system
CN109840400B (en) Apparatus and method for providing security and apparatus and method for performing security for universal intermediate language
CN106708571A (en) Resource file loading method and device and source file reinforcing method and device
CN108134673A (en) A kind of method and device for generating whitepack library file
CN110532016B (en) Version management method, version updating method and version management system
CN105447349A (en) Method and device for protecting derived symbol in so file
CN111488169A (en) Method and device for hot updating of application program, storage medium and electronic equipment
CN103530169B (en) Method for protecting virtual machine files and user terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant