Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Communication multithreading technology

A multi-threading technology and communication technology, applied in the direction of program control devices, etc., can solve problems such as inconvenience for developers to use, and achieve the effects of strong program stability, strong readability, and stable communication between threads

Inactive Publication Date: 2014-05-28
苏州博远容天信息科技股份有限公司
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In NET Framework 2.0 and previous versions, Microsoft developed communication support such as Web Service (SOAP with HTTP communication), NET Remoting (TCP / HTTP / Pipeline communication) and basic Winsock. There are also mutual overlaps between them (for example, NET Remoting can develop SOAP, HTTP communication). For developers, different choices will have different programming models, and they must be relearned, so that developers have many options in use. inconvenient

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The present invention will be described in detail below in conjunction with embodiments.

[0022] A communication multithreading technology, the steps are as follows:

[0023] Step 1) Define the contract of the WCF service, create a WCF service project, declare a contract interface, introduce the contract definition and the properties of the interface function, and define the callback function of the asynchronous interface;

[0024] Step 2) Implement WCF service, create a class inheriting WCF service interface, declare before the class, implement interface function, declare a synchronous phase signal before notifying the message to the interface, and then call the callback method through the signal;

[0025] Step 3) Define the delegate class, and make a declaration at the place where the delegate event is delegated, and the declaration includes the parameters and name of the delegate message function;

[0026] Step 4) Start the WCF service as a host, declare a ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a communication multithreading technology which includes the steps of firstly, defining a WCF service contract, and building a WCF service project; secondly, realizing a WCF service, and building a class inheritance WCF service interface; thirdly, defining a delegation class, and declaring at the location of a delegation event; fourthly, starting the WCF service; fifthly, using the delegation event, declaring the class of a WCF service delegation message, and declaring the delegation event of an interface thread; sixthly, guiding into a thread pool, and opening another thread. The communication multithreading technology has the advantages that cross-platform communication can be achieved; coding methods are high in readability and easy to expand; large amount of If-Else (Switch) statement used in a program can be avoided; program stability and stable communication among threads are achieved; program quality and efficiency are increased.

Description

technical field [0001] The invention relates to a communication technology, in particular to a communication multi-thread technology. Background technique [0002] Communication Technology: [0003] WCF: Windows Communication Foundation (WCF) is a set of application development interfaces for data communication developed by Microsoft. It is a part of the NET framework and was introduced from NET Framework 3.0. It is a new generation of Windows in parallel with Windows Presentation Foundation and Windows Workflow Foundation. Operating system and three major application development libraries for WinFX. In NET Framework 2.0 and previous versions, Microsoft developed communication support such as Web Service (SOAP with HTTP communication), NET Remoting (TCP / HTTP / Pipeline communication) and basic Winsock. There are also mutual overlaps between them (for example, NET Remoting can develop SOAP, HTTP communication). For developers, different choices will have different pro...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/44
Inventor 梁俊斌董阳孙学磊
Owner 苏州博远容天信息科技股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products