Java -- using TCP to upload files

Java -- using TCP to upload files Blog description The information involved in this article comes from Internet collation and personal summary, which means personal learning and experience summary. If there is any infringement, please contact me to delete, thank you! graphic step [Client] input stream, read the file data from the hard disk ...

Added by varzosu on Sat, 25 Apr 2020 17:47:49 +0300

[network programming 01] basic knowledge of socket - simple network communication program

1. What is socket Socket is simply a combination of IP address and port, which can communicate with the application of remote host. A host can be determined by IP address, and an application can be determined by port. IP + port can completely determine an application of a host. Socket originated from UNIX, similar to a special file, can be open ...

Added by munuindra on Wed, 15 Apr 2020 11:46:48 +0300

go language series -TCP programming

TCP programming One of the main design goals of Go is to face the large-scale back-end service program. Network communication is the server, and the program is an indispensable and vital part Basic introduction of network programming There are two kinds of network programming Tcp socket programming is the mainstream of network programming. It i ...

Added by kat89 on Wed, 08 Apr 2020 08:05:01 +0300

Python 3 Standard Library: selectors I/O Multiplex Abstraction

1. selectors I/O Multiplex Abstraction The selectors module provides a platform-independent abstraction layer on top of platform-specific I/O monitoring functions in select. 1.1 Operational Model The API in selectors is event-based, similar to poll() in selectors.It has multiple implementations, and this module automatically sets the alias Defa ...

Added by king.oslo on Tue, 07 Apr 2020 04:42:04 +0300

OkHttp3 source code (I) ---- OkHttpClient

The internal implementation process of OkHttp3 was not considered when it was used before. Today, I will sort out and record it. Next, I will add the common methods, internal classes and fields in the OkHttpClient class with my own understanding of comments, and understand the main purpose of OkHttpClient by looking at the com ...

Added by nnpdn on Sat, 04 Apr 2020 18:24:50 +0300

Using python to communicate with Xiaomi gateway

Three parts of communication between python and Xiaomi gateway: The understanding of the following content needs to be used in conjunction with the green meter gateway LAN communication protocol 1. Monitor the multicast information sent by the gateway: (there are life signals and event information of the gateway and connected equipment) 2. Read ...

Added by immobilarity on Sat, 04 Apr 2020 00:44:26 +0300

Node.js implementation of Websocket real-time communication small Demo

A small Demo simulates real-time communication, which is mainly realized by socket.io framework (further encapsulation of websocket) 1. Environmental preparation: 1) Node.js environment – > download and install on the official website 2) socket.io.js file https://cdnjs.com/libraries/socket.io 3) Install the module ...

Added by crazyjeremy on Fri, 03 Apr 2020 22:39:39 +0300

socket communication experiment for non connection

Facing non connection is udp communication Topology: -------------------------------------------------------------------------------------------------------------                                     Server<---------------------------->Client                              127.0.0.1:8888 ------------------------------------------------- ...

Added by Teaky on Thu, 26 Mar 2020 17:41:40 +0200

Python3 Standard Library: io Text, Decimal, and Original Stream I/O Tools

1. io Text, Decimal, and Original Stream I/O Tools The io module implements classes on top of the interpreter's built-in open() to complete file-based input and output operations.These classes are properly decomposed so that they can be reassembled for different purposes - for example, to support writing Unicode data to a network socket. 1.1 St ...

Added by rharter on Sat, 21 Mar 2020 04:56:59 +0200

Using websocket (redis subscription) in nginx distributed cluster

Preface 1.1 principle The core of websocket is to store the session information of successful handshake into static variables. However, there are many servers in the distributed system, Tomcat, which use nginx to forward to different tomcat, so it can not guarantee that this Tomcat stores the sessio ...

Added by Spudgun on Mon, 16 Mar 2020 12:58:54 +0200