Java Socket Network Programming I

Java originally appeared as a network programming language, which provides a high degree of support for the network, making the communication between client and server become a reality, and in network programming, Socket is the most used. Like QQ, MSN uses Socket technology. Socket programming I. Basic Knowledge of Network (Reference to Comp ...

Posted by ShiloVir on Thu, 18 Apr 2019 20:18:32 -0700

Android Bluetooth Summary

Android Bluetooth Android Bluetooth Basic concepts Bluetooth API Code distribution Key class Main method Bluetooth operation Turn Bluetooth on and off Search for Bluetooth Devices Bluetooth pairing Bluetooth UUID Data transmission between Bluetooth devices bluetooth Introduction of Bluetooth Protocol The Use of Bluetooth Protocol ...

Posted by ready2drum on Thu, 18 Apr 2019 10:24:33 -0700

hbase client timeout and reconnection settings

1. Purpose of setting up As an online service, it needs to be able to guarantee the characteristics of fast failure, fault-tolerant retry and so on. Fast failures can ensure low latency of the system and prevent the temporary use of service resources due to waiting for a resource, which eventually leads to the unavailability of services. Failu ...

Posted by slawrence10 on Wed, 17 Apr 2019 15:27:32 -0700

Resource isolation - system D

introduce systemd System and Users position /usr/lib/systemd/system /usr/lib/systemd/user unit The basic unit of system management, called unit, is divided into the following types Service unit: System services Target unit: A group of units Device Unit: Hardware Device Mount Unit: Mount Point of File System Automount Unit: Au ...

Posted by rashmi_k28 on Mon, 15 Apr 2019 21:45:32 -0700

Linux Practical Teaching Notes 21:Rsync Data Synchronization Tool

Section 21 Rsync Data Synchronization Tool Label (Space Separation): Linux Practical Teaching Notes - Chen Siqi This teaching note is a summary of my study and work career, which is the first draft (there are many imperfections), the original work, allowed to be reproduced, when reproduced, please be sure to indicate the original source of the ...

Posted by demetri007 on Fri, 12 Apr 2019 23:12:32 -0700

A Simple Introduction to Thrift and Practical Warfare

brief introduction Thift is a software framework for the development of extensible and cross-language services. It combines powerful software stacks and code generation engines to build seamlessly integrated and efficient services in C+, Java, Go, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, JavaScript, Node.js, Smalltalk, and OCaml.Off ...

Posted by misheck on Fri, 12 Apr 2019 13:30:31 -0700

Reflex Client-Server Model (4)

Because TCP is a byte-stream-based transmission, it belongs to no-boundary transmission, so it can not deal with the boundary problem between messages, so there is a sticky packet problem. As shown in the following figure: M1 and M2 are two messages transmitted from Host A to Host B. There may be several kinds of transmission in the middle: ...

Posted by mizz key_me on Thu, 11 Apr 2019 21:24:31 -0700

Improvement of Reflect Client-Server Model with select

This section focuses on how to use select functions to improve our previous client-server model. When we were dealing with the multi-client model, every time a client is connected, the server needs to open up a new process to handle the new client, which will consume a lot of memory resources. The select function allows the process to instruc ...

Posted by neiltaylormade on Thu, 11 Apr 2019 13:57:31 -0700

Implementation of a Simple Chat Room with vue + socket.io

vue + vuex + elementUi + socket.io implements a simple online chat room to improve their depth of application of vue Series in the project. Because it's easy to learn a library or framework, but it's not so easy to use a library or framework in conjunction with a project. Although not many functions, but there are gains. The idea of design and ...

Posted by hank9481 on Thu, 11 Apr 2019 11:39:32 -0700

Python-socket realizes communication between servers

Now we need to do a distributed curriculum design (simple games), which is completed by three groups of people. I need to design a login registration server to receive user login registration message requests from gateway server (message middleware), then generate a message to access the database server, send it to the database server, receive ...

Posted by Irvin Amoraal on Thu, 11 Apr 2019 10:06:32 -0700