Implementation of network communication chat room based on java TCP

1.1 Preface In today's information society, with the rapid development of the network, people rely more and more on the network and are more and more inseparable from the network. As a result, there are more and more chat tools, such as MSN and QQ. The development of chat systems such as online chat is changing with each passing day. Therefo ...

Posted by Xiphoid8 on Wed, 19 Jan 2022 01:03:27 +0100

Netty battle NIO

Introduction to Netty 1. Netty is an asynchronous, event driven network application framework to quickly develop high-performance and reliable network IO programs. 2. Netty is mainly aimed at high concurrency applications for Clients under TCP protocol, or applications for continuous transmission of a large amount of data in Peer-to-Peer sc ...

Posted by vapokerpro on Tue, 18 Jan 2022 07:56:38 +0100

[DPDK] Linux UIO Technology

brief introduction UIO (Userspace I/O) runs in user space I/O Technology, Linux The general driving equipment in the system runs on kernel Space, which can be called by application in user space, while UIO is drive A small part of the driver runs in kernel space, while the vast majority of the functions of the driver are implemented in user ...

Posted by galvin on Mon, 17 Jan 2022 09:59:07 +0100

Multiplex IO transfer server

Multiplex IO transfer server The multi-channel IO transfer server is also called multi task IO server. The main idea of this kind of server is that the application program no longer monitors the client connection, but gives it to the kernel to replace the application program monitoring file. There are three main methods used: select, poll and ...

Posted by ROCKINDANO on Mon, 17 Jan 2022 08:43:18 +0100

socket programming of OSI layer 7, TCP/IP layer 5, UDP and TCP (server and client), byte order conversion, implementation of multi process and multi-threaded server

1. The network is divided by coverage: LAN / man / WAN, Internet / Internet, Ethernet / token ring - networking mode 2. Each host must be represented by one in the network to realize point-to-point accurate communication IP address: ipv4: uint32_t unsigned 4-byte integer} DHCP/NAT} ipv6: uint_t addr[16]; Each data in network communication mu ...

Posted by VanHagar on Fri, 14 Jan 2022 05:03:31 +0100

Java NIO Channel usage

Channel classification in Java NIO: FileChannelSocketChannelServerSocketChannelDatagramChannel channel classification FileChannel: it is mainly used for reading and writing files. You can read files from disk or write files to disk. SocketChannel: used for data reading and writing of Socket TCP connection. You can read data from the Channel or ...

Posted by tauchai83 on Wed, 12 Jan 2022 03:17:15 +0100

C# UDP Socket notes

(all notes are from C# official documents) address) Network related common interfaces Get local IP //Obtain IP through network interface description public static string GetLocalIP_LAN80211() { //GetAllNetworkInterfaces returns an object describing the network interface on the local computer. fore ...

Posted by stringfield on Tue, 11 Jan 2022 00:46:09 +0100

java network learning notes

1: InetAddress class 1. What is InetAddress This class represents an Internet Protocol (IP) address. 2. Common usage: InetAddress inetAddress = InetAddress.getByName("www.jd.com");//Create an InetAddress object through the domain name InetAddress inetAddress1 = InetAddress.getLocalHost();//Create a native InetAddres ...

Posted by satanclaus on Wed, 05 Jan 2022 22:59:28 +0100

Linux Network IPC: introduction and use of Socket socket

Communication between different hosts: ❤️ The concept of process communication originated from single machine system. Since each process runs within its own address range, the operating system provides corresponding facilities for process communication to ensure that two processes communicating with each other do not interfere with each o ...

Posted by tyson on Sat, 01 Jan 2022 13:38:37 +0100

First knowledge of java network programming

Network programming 1.1 general Call - connect - answer - call TCP Send SMS - send it and it's done - receive UDP Computer network: Computer network refers to Geography Multiple sets with independent functions in different positions computer And its external equipment are connected through communication lines Network operating system,Netw ...

Posted by slshmily on Tue, 28 Dec 2021 16:20:22 +0100