Understanding I/O Models in Python Network Programming

In Linux-based network programming, I/O operations involve two distinct phases: waiting for data to become available in the kernel, and copying that data from kernel space to user space. Different I/O models vary in how these phases are handled. Blocking I/O is the default behavior for sockets. When a process calls recvfrom(), it blocks until b ...

Posted on Sun, 16 Aug 2026 16:39:49 +0000 by besbajah

Python Socket Programming Essentials

Python facilitates network communication through two abstraction tiers. The first tier utilizes fundamental Socket APIs derived from BSD standards, granting direct access to operating system interface methods. The second tier employs higher-level modules containing server-centric classes designed to streamline the development of network service ...

Posted on Mon, 13 Jul 2026 16:42:53 +0000 by alcoholic1

Socket Programming in Linux Environment

Network Communication Using Sockets on Linux =================== Network Communication with Sockets on Linux Understanding Sockets Types of Sockets Socket Usage Example (SOCK_STREAM) Parameter Explanation 4.1 socket() 4.2 bind() Byte Order Considerations 4.3 listen(), connect() 4.4 accept() 4.5 read(), write(), and related fun ...

Posted on Sat, 11 Jul 2026 17:41:19 +0000 by Ruiser

Fundamentals of Python Socket Programming and Network Architecture

Software Development Architectures Network communication applications generally fall into two primary architectural categories: Client/Server (C/S) and Browser/Server (B/S). The C/S Architecture requires a dedicated client application installed on the user's machine. This architecture typically offers richer user interfaces and higher performan ...

Posted on Sun, 28 Jun 2026 17:22:00 +0000 by dnice

Solving Port 9999 Stuck in TIME_WAIT State After Process Termination in Ubuntu

On Ubuntu systems, when a process occupies port 9999 and the port remains unavailable due to TIME_WAIT state after the process terminates, preventing new processes from binding to it, you can implement several solutions: Solution 1: Implement SO_REUSEADDR Socket Option Configure your application code with the SO_REUSEADDR option to permit immed ...

Posted on Mon, 01 Jun 2026 18:10:43 +0000 by gibbo1715

TCP Socket Communication in C#: Server and Client Data Exchange

Implementing bidirectional data exchange over TCP in C# requires coordinating a listener that binds to a network interface and a client that initiates the connection. The .NET framework provides TcpListener and TcpClient to abstract low-level socket operations, while NetworkStream manages the underlying byte transmission pipeline. Server-Side I ...

Posted on Fri, 29 May 2026 22:33:52 +0000 by tinuviel

Linux Network Programming: TCP and UDP Protocols

While we often use serial ports for information printing in embedded systems, this approach isn't suitable for multi-host network environments. This introduces the concept of network programming. In Linux, network programming involves using sockets for inter-process communication, particularly between processes on different hosts. Sockets provi ...

Posted on Sat, 23 May 2026 20:50:48 +0000 by guzman-el-bueno

Practical Network Programming in Python: Sockets and HTTP

Socket Programming Basics Socket communication enables direct network data transfer between applicatinos. Python's socket module provides essential functionality for creating network connections: Server Implementation import socket server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) host = socket.gethostname() port = 54321 server.bind( ...

Posted on Tue, 19 May 2026 22:51:16 +0000 by renzaho