Computer Network Notes: Implementing Simple UDP and TCP Communication in Python
Understanding UDP and TCP communication protocols is fundamental to computer network programming. This article explores the basic operational principles of both protocols and demonstrates their implementation through practical Python examples.
UDP and TCP Basic Operation Processes
UDP (User Datagram Protocol):
UDP follows a straightforward comm ...
Posted on Sat, 30 May 2026 23:36:59 +0000 by skylert
Implementing Network I/O Multiplexing with Select and Epoll in C
Epoll Implementation
The following C program demonstrates a high-performance TCP server using the epoll mechanism on Linux. It utilizes non-blocking I/O and edge-triggered notifications to handle multiple concurrent connections efficiently.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#i ...
Posted on Mon, 18 May 2026 01:15:04 +0000 by Awesome Trinity
Reliable PLC Reachability Checks in S7netplus v0.9.0 Without Breaking Active Connections
The IsAvailable property in S7netplus v0.9.0 triggers Connect internally, which destroys any existing connection. The following snippet from the library source illustrates the issue:
public bool IsAvailable
{
//TODO: Fix This
get
{
try
{
OpenAsync().GetAwaiter().GetResult();
return true;
...
Posted on Mon, 11 May 2026 14:00:51 +0000 by enemeth
Embedded Linux Network Programming: A Comprehensive Guide
Introduction
This article covers the essential concepts and practical implementation of network programming in embedded Linux systems. The content focuses on socket programming, protocol fundamentals, and development techniques.
Network Fundamentals
1.1 Network Layer Models
Two primary layered models exist in networking:
OSI Seven-Layer Mod ...
Posted on Mon, 11 May 2026 05:36:33 +0000 by aaronhall
Basic TCP Socket Communication in Python with Multi-Client Support
Simple TCP Server and Client
A minimal TCP server that listens for a single client connection:
import socket
def run_server():
host = '0.0.0.0'
port = 5001
server_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_sock.bind((host, port))
server_sock.listen(1)
print("Listening...")
while True: ...
Posted on Thu, 07 May 2026 17:47:13 +0000 by jtymes
Implementing Basic Socket Communication in Android
Socket communication enables networked processes to exchange data using a standardized interface. In a network environment, each process is identified by a unique combination of IP address, protocol, and port number, which allows for reliable inter-process communication.
The underlying mechanism of socket programming originates from Unix system ...
Posted on Thu, 07 May 2026 10:01:02 +0000 by prosolutions