The interaction between server and browser in network programming

Server code: //Server side public class Server { public static void main(String[] args) throws Exception { ServerSocket serverSocket = new ServerSocket(8888); System.out.println("Server startup=========="); while(!serverSocket.isClosed()){ Socket socket = serverSocket.accept(); //Blocking, waiting for ...

Added by jcleary on Fri, 28 Jan 2022 18:07:29 +0200

Python Network Programming (beginners can understand it at a glance)

Python Network Programming (Xiaobai can understand it at a glance) 1, Basic concepts of network programming 1. mac address and ip address For example, on the campus, the male god named Lucy can be separated from the campus by student number. If you want to find Lucy male god, you have to pass the ID card number. Here the student ID number is ...

Added by rulkster2 on Fri, 28 Jan 2022 05:38:39 +0200

Linux - Ubuntu web server development (full)

Linux - Ubuntu web server development Linux - Ubuntu server development The interface between the server and the client is through Socket communication Socket communication has three elements: Target address of communication (ip address of server)Port number used (different protocols specify different ports, for example, port 25 corresponds ...

Added by killsite on Tue, 25 Jan 2022 09:47:04 +0200

Python: network programming, TCP, mackfile, chat writing

catalogue Socket introduction TCP programming TCP server programming [server programming steps] Practice - write a group chat program Common Socket methods MakeFile Complete code for ChatServer experiment Socket introduction Socket: socket is provided in Python Py standard library, a very low-level interface library Socket is a gen ...

Added by bbxrider on Mon, 24 Jan 2022 05:01:26 +0200

2, TCP network programming

catalogue 1, Network programming for TCP 1. Example 1: the client sends information to the server, and the server displays the data on the console ① Client ② Server 2. Example 2: the client sends the file to the server, and the server saves the file locally ① Client ② Server 3. Example 3: Send a file from the client to the server, the s ...

Added by RoundPorch on Mon, 24 Jan 2022 03:59:37 +0200

tkinter + socket + keras recognize minst handwritten digits

The network programming course is designed to do what you want, with code + experimental report attached. Environment configuration python 3.7.3 pymysql 1.0.2 Tensorflow GPU 2.0.0 (cpu can also be used) numpy 1.19.2 tk 8.6.10 MySQL 8.0.23 Navicat version It's not critical. The environment setting is mainly related to tf code Click to d ...

Added by nielsene on Sun, 23 Jan 2022 03:37:48 +0200

netty introduction II NIO

s1.NIO overview First of all, we have reached a consensus that when we discuss the IO model, it is currently aimed at network programming, because network programming has large-scale connections, IO input and output. The purpose of NIO is to solve the pain point of a large number of threads caused by a large number of connections in the BIO ne ...

Added by Jackomo0815 on Wed, 19 Jan 2022 16:35:29 +0200

Basic concepts and preliminary learning in Netty

Important concepts Channel channel is one of the core concepts of Netty. It is the main body of Netty network communication. It is responsible for network communication, registration and data operation with the opposite end. Every time Netty establishes a connection, there will be a corresponding channel instance, and there is the concept o ...

Added by sharma on Tue, 18 Jan 2022 20:43:10 +0200

Java project: Java TCP realizes network communication chat room (java+socket+IP+Internet+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. Therefor ...

Added by komquat on Mon, 17 Jan 2022 04:36:36 +0200

java network programming (socket (Tcp small Dome))

Java stream Before network programming, we must understand how important streaming is to Java. We can store and read files through streams, and also transmit network data through streams. There is no concept of pointer in Java. We know that in C language, it regards all abstract concepts such as screen and keyboard as files, corresponding ...

Added by iii on Sun, 16 Jan 2022 14:07:33 +0200