Internet of things training notes_ Network programming

Internet of things training notes_ Network programming Basic concepts of network programming: 1. Computer network A computer network is a collection of interconnected independent computers, The simplest form of network consists of two computers. 2. Network communication IP address: 1. Each host in the IP network must have a unique IP a ...

Posted by kid_drew on Fri, 24 Sep 2021 16:46:28 -0700

Socket Programming for TCP and UDP

This paper mainly talks about how to use Socket to communicate between server and client based on TCP and UDP, the communication flow and some details in the code, and the differences and reasons between them in the code. Catalog 1. Socket 2. Communications via TCP Server Side Create Welcome socket Create a dedicated socket Reading data ...

Posted by slipmatt2002 on Tue, 21 Sep 2021 09:14:06 -0700

java network programming

1. General 1. Computer network: Computer network refers to a computer system that connects multiple computers and their external devices with independent functions in different geographical locations through communication lines and realizes resource sharing and information transmission under the management and coordination of network operatin ...

Posted by dannyb785 on Mon, 20 Sep 2021 05:44:58 -0700

[computer network] Linux network programming basic API

Linux network programming basic API Socket address API Byte order Large end byte order (network byte order): the high-order byte (2331 bit) of an integer is stored at the low address of the memory, and the low-order byte (07 bit) is stored at the high address of the memorySmall end byte order (host byte order): the high-order byte of a ...

Posted by beebum on Sat, 11 Sep 2021 22:44:40 -0700

[java] BIO, NIO, AIO learning

BIO BIO(blocking I/O): Synchronization is blocked, and the server implementation mode is to connect a thread, that is, when a client has a connection request, the server side needs to start a thread to process it. If this connection does nothing and causes unnecessary thread overhead, it can be improved through the thread pool mechanism (to en ...

Posted by mortimerdude on Sat, 11 Sep 2021 12:15:24 -0700