Socket encryption communication method for server

An encrypted communication and server technology, which is applied in the field of socket encrypted communication of the server, can solve the problems of unsatisfactory speed, efficiency and security of the communication method, and achieve the effect of improving security, speed and efficiency

Inactive Publication Date: 2017-07-07
WUHAN NOTE EXCHANGE CENT CO LTD
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The invention provides a socket encryption communication method of a server, which solves the unsatisfac

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
  • Socket encryption communication method for server
  • Socket encryption communication method for server
  • Socket encryption communication method for server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] The principles and features of the present invention are described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.

[0055] Such as figure 1 As shown, a server socket encryption communication method is provided, including:

[0056] S1. Start a new thread, create a socket processor object of the server according to predetermined parameters, and start a new thread to create a socket connection monitor object at the same time. The predetermined parameters include: service type, listening address, listening port, connection setting parameters, and message format conversion processing classes and message handlers;

[0057] S2. In the socket processor object, create a server socket channel object, a server socket connection object and an event selector, and set the server socket channel object to non-blocking mode, and bind the server ...

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 socket encryption communication method for a server. The method comprises the steps of S1, starting a new thread and establishing a socket processor object of the server according to a preset parameter; S2, establishing a server socket channel object, a server socket connection object and an event selector in the socket processor object; S3, registering for a client connection request event for the server socket channel object in the event selector; S4, starting the new thread, receiving the connection request event sent by a first client, and establishing socket connection with the first client; and S5, after the connection is successful, carrying out data interaction with the first client. The method has the beneficial effects that according to the technical scheme, a socket channel object, a socket connection object and an SSL engine are generated for the client at the server, the socket connection is established with the client, and the data interaction is carried out with the client, so the data interaction speed and efficiency are improved, and the data interaction security is greatly improved.

Description

technical field [0001] The invention relates to the field of data communication, in particular to a socket encryption communication method of a server. Background technique [0002] In the prior art, communication methods of the server include simplex communication, half-duplex communication and full-duplex communication. Simplex communication refers to a working method in which messages can only be transmitted in one direction. Half-duplex communication can realize two-way communication, but it cannot be carried out in two directions at the same time, and must be carried out alternately. Full-duplex communication means that at any moment of communication, data is allowed to be transmitted in two directions at the same time. However, general communication methods are not ideal in terms of speed, efficiency, and security. Contents of the invention [0003] The invention provides a socket encryption communication method of a server, which solves the unsatisfactory technic...

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): H04L29/06
CPCH04L69/162H04L63/045H04L63/0823H04L63/123
Inventor 方敏
Owner WUHAN NOTE EXCHANGE CENT CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products