Fading Coder

One Final Commit for the Last Sprint

Using iperf3 for Network Performance Testing

Intrdouction to iperf3 iperf3 is version 3.0 of iperf, a network performance testing tool that transmits data streams in one direction over the network. It can adjust transmission rate and data size as needed, and report bandwidth, jitter, and packet loss. Download: https://github.com/esnet/iperf/ i...

Building a TCP Chat Server with Winsock and Modern C++

Developing a concurrent chat server involves managing multiple simultaneous TCP connections while ensuring thread-safe message distribution. This implementation leverages the Winsock2 API alongside C++11 concurrency primitives to build a multi-user messaging platform supporting both direct messaging...

Resolving Excessive TIME_WAIT Connections on Windows Systems

When monitoring a Zabbix agent, an alert indicated unavailability despite the agent process running. Checking network cnonections revealed numerous TCP connections in the TIME_WAIT state, prevanting new connections to the proxy due to exhausted socket resources. In active mode, the agent initiates c...

TCP Networking in Java with Socket and ServerSocket

TCP provides a reliable, ordered, byte-stream channel between two endpoints. In application code, endpoints are explicitly divided into a client that initiates a connection and a server that listens for and accepts connections. A server must be running before any client can connect. Roles and connec...

Implementing Modbus TCP with Python modbus_tk: Server/Client Examples, API Notes, and Function Codes

Environment and Setup Language/runtime: Python 3.x (modbus_tk also supports Python 2.7 if required) Platforms: Windows, Linux, Raspberry Pi Optional tools: any Modbus TCP test client/server for quick validation Installation Install via pip: pip install modbus_tk TCP Server (Slave) example The progra...

Linux C/C++ Socket Programming by Example: TCP/UDP Chat, select, Threads, Timers, and fork

TCP Chat over a Local Network Minimal TCP Echo Server (C) #include <arpa/inet.h> #include <errno.h> #include <netinet/in.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/types.h> #include <unistd.h&...