Finally, someone understood the TCP protocol and UDP protocol
There are three elements of network programming, namely IP address, port number and communication protocol. This paper mainly describes the two communication protocols of TCP and UDP, as well as the implementation of programming.
First, we need to know about IP address, port number and communication protocol.
1, IP address
Computers in the n ...
Added by toniknik1982 on Fri, 21 Jan 2022 03:40:44 +0200
Chapter 19 of TCP/IP network programming
Kernel Objects
definition
Resources created and managed by Windows operating system, including processes, threads, files, semaphores, mutexes, etc.
Different resource management methods are different.
File management, register and update file related data I/O Location, file open mode (read or write), etc.Thread management, register and ...
Added by projectshifter on Sat, 15 Jan 2022 07:49:38 +0200
Java NIO Channel usage
Channel classification in Java NIO:
FileChannelSocketChannelServerSocketChannelDatagramChannel
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 write data to the C ...
Added by WhiteShade6 on Wed, 12 Jan 2022 08:01:48 +0200
Wireshark TS | Ping Google DNS 8.8.8.8 special result resolution
preface
In a word, Google DNS 8.8.8.8 will truncate the packet length of Ping response, and there will be different results on the system, but Wireshark packet capture results will show that Ping is not responding.
163 example
Start with www.163 Com as an example, Windows defaults to Ping, and the data length is 32.
$ ping www.163.com
I ...
Added by eraxian on Mon, 10 Jan 2022 14:53:54 +0200
LwIP pbuf of TCP/IP protocol stack
1, Overview lwIP - A Lightweight TCP/IP stack The focus of the lwIP TCP/IP implementation is to reduce resource usage while still having a full scale TCP. This makes lwIP suitable for use in embedded systems with tens of kilobytes of free RAM and room for around 40 kilobytes of code ROM. Main features include:
Protocols: IP, IPv6, ICMP, ND, ML ...
Added by kontesto on Wed, 05 Jan 2022 07:23:04 +0200
Introduction to netstat, a tool for monitoring TCP/IP networks
explain
netstat command is a very useful tool for monitoring TCP/IP network. It can display routing table, actual network connection and status information of each network interface device, as well as statistical data related to IP, TCP, UDP and ICMP protocols. It is generally used to check the network connection of each port of the machine an ...
Added by bluemonster on Tue, 04 Jan 2022 07:26:32 +0200
14 multicast and broadcast && 15 sockets and standard IO
**
Chapter XIV multicast and broadcasting
** Suppose we want to send the same data to 10000 users. If TCP is used to provide services, 10000 socket connections are required. Even if UDP sockets are used to provide services, 10000 data transmissions are required. When the same data needs to be sent to a large number of clients, it will have a ...
Added by jpmoriarty on Fri, 24 Dec 2021 06:05:57 +0200
Chapter 15 network programming
Basic knowledge
TCP/IP protocol
abbreviationFull nameProtocol typeIPInternet ProtocolNetwork protocolTCPTransmission Control ProtocalTransmission control protocol
IP address
Meaning: in the network, the unique identification of the communication entity (which can be host, printer, router port, etc.)
Format: 32bit integer, separated by dots ...
Added by webdevelope on Wed, 22 Dec 2021 00:22:29 +0200
Java network program related to IO, NIO and Netty -- chat program in C/S mode based on TCP
1, IO TCP chat program
1. IO introduction
① Server blocking point
server.accept(); When getting sockets inputStream.read(bytes); When the input stream reads data pass
② The unified socket is a short connection and can be used as a short connection server. It cannot make a long connection. It belongs to the ask and answer mode. For exam ...
Added by FD_F on Thu, 16 Dec 2021 16:47:16 +0200
Day23-3.TCP programming
1 TCP programming
TCP programming steps client: 1. Create a Socket object and establish a connection with the server 2. Obtain network output stream 3. Send data through I\O operation 4. Close resources Server: 1. Create a ServerSocket object, start the server and listen to the specified port 2. Call the accept method to receive the reques ...
Added by SargeZT on Thu, 16 Dec 2021 01:16:54 +0200