Font Size: a A A

Development Of A Multithreading & IOCP Based Communication Middleware

Posted on:2015-09-26Degree:MasterType:Thesis
Country:ChinaCandidate:G X BianFull Text:PDF
GTID:2308330473952908Subject:Software engineering
Abstract/Summary:PDF Full Text Request
In this paper, author researched on the development a Multi-threading & Completion-Port based communication-middleware by using buffer-reuse and Windows Service technology.With the communication middleware, all communications-related works are processed by the Communication Server and the client API. So the users can focuse on the processing of business logic data, regardless of how the connection builded, maintained and how the data sended and received. It can simplify the user’s system structure, reducing the work of programing and makes the user’s application is easy to configur and publish.The communication Server uses Multi-threading and Completion-port technology for data transmission. Data transmited by the underlying system, the CPU have more time to carry out data processing; By control the number of threads, frequence of thread switch is reduced, it improved the system’s efficiency. In the memory management, clients information and IO data buffer are stored in a reusable queue. Through centralized memory application, distributed use and recycling mechanism reducing the memory operations, reducing the memory fragmentation.Client APIs are easy to use. With interface functions, users can create communication interface, configure the interface parameters, specify your own data processing thread,start and stop the interface. When the client interface is started. it while connect to communications server, send and receive data automaticly. By specify the client ID to which the data will be sent, you can send data to any client that connected to the communication server.The communication server can be managed by commands that inputed through local interface or remote management program. With a command to code mapping table, the command mapped to a specific function; the function is called and the result is stored in a buffer; and the buffer will returned to the function-caller. The managerment functions can get service information, get client information, send message to client, send debug data, disconnect the client; startup, shut down communication server ect.Communication server has a built-in extension management module. The module can load plugin that meet the plugin standard, process data transit via the communication server. Using extensions, you can achieve logging and debuging, communication data encryption and decryption, communications program status monitoring and other functions.It is proved by actual users, the communication middleware is stable, efficient, simple, easy to use, scalable, and it achieve the design goals and meet the needs of railway traffic simulation system.
Keywords/Search Tags:multi-threading, completion port, TCP/IP, network communications, plugin
PDF Full Text Request
Related items