Supercharge Your Innovation With Domain-Expert AI Agents!

A Multi-channel Duplex Communication Method Based on Socket Connection

A communication method and multi-channel technology, which is applied in the field of multi-channel duplex communication based on Socket connection, can solve the problems of low Socket connection management efficiency, CPU and memory occupation, etc., and achieve the effect of less resource occupation and high management efficiency

Active Publication Date: 2018-01-23
MAPUNI TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] However, during the development of Socket communication software, operations such as creating, using, and destroying Socket connections need to be frequently performed; and every time a Socket connection is established, the server needs to start a thread to manage the Socket connection. This leads to inefficient management of Socket connections, which takes up a lot of resources such as CPU and memory on the server side.

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A Multi-channel Duplex Communication Method Based on Socket Connection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The present invention is described in detail below in conjunction with accompanying drawing:

[0033] to combine figure 1 , the present invention provides a kind of multi-channel duplex communication method based on Socket connection, comprises the following steps:

[0034] Step 1: Create an adapter, a server-side Socket container, and a client-side Socket container; the adapter is connected to the server-side Socket container and the client-side Socket container respectively.

[0035] (1) Adapter

[0036] The adapter is used to record the matching relationship between the server-side address and the client-side address that need to establish a Socket connection.

[0037] In terms of specific implementation, the adapter can use the following methods to record the matching relationship between the server-side address and the client-side address that need to establish a Socket connection:

[0038] Deploy a unique and corresponding link listener on each server, monitor ...

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 provides a multichannel duplex communication method based on a Socket connection. The method comprises the following steps that an adapter, a server side Socket container and a client Socket container are respectively established; the adapter is respectively connected to the server side Socket container and the client Socket container, wherein the adapter is used for recording a matching relation between a server side address and a client address which need establishment of the Socket connection; the server side Socket container is used for storing a server side socket whose matching relation is recorded by the adapter; and the client Socket container used for storing a client socket whose matching relation is recorded by the adapter. The method has the advantages of capability of implementing multichannel duplex communication of a server side and a client through a simple way, high management efficiency for the Socket connection and less resource occupancy.

Description

technical field [0001] The invention belongs to the technical field of communication, and in particular relates to a multi-channel duplex communication method based on Socket connection. Background technique [0002] At this stage, the process of establishing a Socket connection between the server and the client is as follows: [0003] (1) The server listens to a certain port and waits for the client's Socket connection request; [0004] (2) The client sends a Socket connection request to the server, wherein the Socket connection request carries the address and port number of the client; [0005] (3) When the server listens to the connection request sent by the client, the server creates a new thread to manage the formally established Socket connection between the server and the client through the thread. After the server establishes the Socket connection, the client and The server can communicate based on TCP / IP. [0006] However, during the development of Socket communi...

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
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/06H04L29/08H04L5/14
CPCH04L5/14H04L67/141H04L69/162
Inventor 李正黄勇刘海英刘艳民焦高超
Owner MAPUNI TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More