Socket Client

How do you open a network connection?

Sockets are the basis of any network communication in your computer.

If you open a website, a socket is created in the background. The same thing applies to chat applications or any other network application.

Related Courses
Complete Python Bootcamp: Go from zero to hero in Python

The TCP/IP model

Packets are delivered to another computer using a layered model: the TCP/IP model.

Every layer of the TCP/IP model has a certain purpose.

tcp/ip model

The application layers responsibility is solely the communication language between two applications.

Sockets work on the application protocol layer. Applications often have their own protocols, which in turn use sockets in the background.

If you want to make your own application protocol (chat system or other purposes) you can use sockets.

Note: This model is used in all network applications.

Python simple socket client

Make a socket application?

We will create a simple socket client, that mimics a webbrowser. The web uses port 80. The steps a webbrowser does to get a webpage are:

Download network examples

Previous Post Next Post

Cookie policy | Privacy policy | ©