Standard file IO operating system and method based on distributed network
A distributed network and standard file technology, applied in the field of standard file IO operations, can solve problems such as the impact on the development efficiency of distributed storage programs, affecting the distributed migration of applications, reducing network storage performance and computing efficiency, and reaching a large market. Prospects and business value, the effect of reducing development costs and cycles, and reducing demand
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] Basic as attached figure 1 Shown:
[0037] Standard file IO operating system based on distributed network, including: user terminal, transmission department, database and interface module;
[0038] User side, used for users to input file access commands and accept file data;
[0039] The transmission part is used to transmit file access commands from the user side. The transmission part includes a two-way communication module and a read-write module. The two-way communication module is used to transmit the user-side access command. The read-write module is used to read and write the database according to the access command. The two-way communication module works through SOCKET based on the TCP / IP protocol, and the read-write module works through the read-write handshake protocol of the transmission command buffer;
[0040] API interface files are stored in the interface module, and the API interface files include header files, static data connection library files and dynamic li...
Embodiment 2
[0068] The present invention includes three parts: network command transmission, server cluster logical file mirroring and code access API interface, and realizes standard file IO operations based on distributed network (such as figure 2 Shown).
[0069] The network command transmission part mainly includes SOCKET development based on TCP / IP protocol and development of read and write handshake protocol for transmission command buffer. It mainly realizes the transmission and reception of file access interface commands. (As shown in Figure 3)
[0070] Server cluster logical file mirroring mainly includes local file management and the development of service nesting, and it ensures that the output interface of each service is in the form of standard file handle FILE. When distributed storage is used, the corresponding pointer linked list should be used. The two servers are connected in the order of fragmentation, and perform relevant translation processing according to the access com...
Embodiment 3
[0076] The present invention also provides a method for network transplantation of local programs, replacing fopen as a whole with kfopen, and fread as a whole with kfread. This embodiment provides an example of constructing a class-like local API library from an existing local API library, which is implemented at the system level based on the C / C++ language supported by the operating system.
[0077] C / C++ language provides FILE, fopen, fclose, ftell, fseek, fread, fwrite, fflush and other application program interface (API) on the most basic local file I / O operation interface, and their respective function prototypes And functions are as follows:
[0078] FILE*fopen(const char*path,const char*mode);
[0079] int fclose(FILE*fp);
[0080] long ftell(FILE*stream);
[0081] int fseek(FILE*stream,long offset,int fromwhere);
[0082] size_t fread(void*buffer,size_t size,size_t count,FILE *stream);
[0083] size_t fwrite(const void*buffer,size_t size,size_t count,FILE*stream);
[0084] int f...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com