Category: Networking
-
Generics
In Python, generics is a mechanism with which you to define functions, classes, or methods that can operate on multiple types while maintaining type safety. With the implementation of Generics enable it is possible to write reusable code that can be used with different data types. It ensures promoting code flexibility and type correctness. Normally,…
-
URL Processing
In the world of Internet, different resources are identified by URLs (Uniform Resource Locators). Python’s standard library includes the urllib package, which has modules for working with URLs. It helps you parse URLs, fetch web content, and manage errors. This tutorial introduces urllib basics to help you start using it. Improve your skills in web scraping, fetching…
-
Socket Programming
Python Socket Programming Socket programming is a technique in which we communicate between two nodes connected in a network where the server node listens to the incoming requests from the client nodes. In Python, the socket module is used for socket programming. The socketmodule in the standard library included functionality required for communication between server and client at hardware…
-
Network Programming
The threading module in Python’s standard library is capable of handling multiple threads and their interaction within a single process. Communication between two processes running on the same machine is handled by Unix domain sockets, whereas for the processes running on different machines connected with TCP (Transmission control protocol), Internet domain sockets are used. Python’s…