Standardization of TCP Server Communication for Mainstream PLC Sockets

Standardization of TCP Server Communication for Mainstream PLC Sockets

1. Overview of TCP Server Communication for PLC Sockets: In socket TCP server communication, the server first creates a socket, binds it to a specified IP address and port, and then listens for incoming connections. When a client initiates a connection request, the server establishes a reliable connection through a three-way handshake. The communication protocol … Read more

wolfIP: A TCP/IP Stack Designed for Resource-Constrained Embedded Systems

wolfIP: A TCP/IP Stack Designed for Resource-Constrained Embedded Systems

What is wolfIP? Despite its somewhat awkward name, it is a TCP/IP stack specifically designed for resource-constrained embedded systems. The core selling point is no dynamic memory allocation—the entire heap does not use malloc, and all buffers are fixed at compile time. Imagine your MCU has only a few hundred KB of RAM; a typical … Read more

File Transfer Over Network Programming in Linux

File Transfer Over Network Programming in Linux

This program is developed under Linux using C language, combined with Socket programming, consisting of both client and server programs, thus adopting a C/S architecture. The corresponding source code is as follows: Server Side: #include <stdio.h> //#include <stdlib.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #define LISTENQ 5 … Read more

NCCL Communication C++ Example (Part 2): Establishing Multi-Machine Connections Using Sockets

NCCL Communication C++ Example (Part 2): Establishing Multi-Machine Connections Using Sockets

Click the blue text to follow us The NCCL (NVIDIA Collective Communication Library) is primarily used for GPU cluster communication. This article provides some basic C++ API library calls for learning reference. It mainly introduces how to establish multi-machine initialization connections using TCP/IP sockets.. The multi-machine example on the NCCL official website uses MPI to … Read more

Building a C++ Network Library from Scratch: My Journey in High-Performance Socket Programming

Building a C++ Network Library from Scratch: My Journey in High-Performance Socket Programming

1. Why Rewrite a Network Library? During my learning process of C++ network programming, I found that the native Socket API has poor cross-platform compatibility, complex error handling, resource management issues leading to leaks, and a lack of advanced features. Therefore, I decided to encapsulate a high-performance and user-friendly network library. 2. Core Design 2.1 … Read more

Java Sockets and TCP/IP Protocol Stack

Java Sockets and TCP/IP Protocol Stack

Title: The Relationship Between Java Sockets and TCP/IP Protocol Stack, Why Does TCP Connection Require Three-way Handshake and Four-way Teardown? This article takes about 17 minutes to read. OSI Seven Layer Model and TCP/IP Four Layer Model Many students know that in the university course, the book “Computer Networks” we studied adopts the OSI seven-layer … Read more

TCP/IP Protocol Basics: TCP and UDP Explained

TCP/IP Protocol Basics: TCP and UDP Explained

Click the image | Get the latest information in the network engineering industry Network programming has three elements: IP address, port number, and communication protocol. This time we will mainly discuss the TCP and UDP communication protocols and their implementation in programming. IP AddressComputers in the network use IP addresses for unique identification. There are … Read more

TCP/IP Communication Using Socket Programming

TCP/IP Communication Using Socket Programming

OSI Reference Model OSI (Open System Interconnect) is the Open Systems Interconnection model. It is commonly referred to as the OSI reference model, which was researched by the ISO (International Organization for Standardization) in 1985 for network interconnection. To better promote network applications, the ISO introduced the OSI reference model. Its meaning is to recommend … Read more

Detailed Explanation of TCP Protocol’s Three-Way Handshake and Four-Way Wavehand

Detailed Explanation of TCP Protocol's Three-Way Handshake and Four-Way Wavehand

Introduction Although TCP and UDP use the same network layer (IP), TCP provides services that are completely different from those of UDP at the application layer. TCP offers a connection-oriented and reliable byte stream service.Connection-oriented means that two applications using TCP (usually a client and a server) must first establish a TCP connection before exchanging … Read more

Python Implementation of a LAN File Sharing Tool

Python Implementation of a LAN File Sharing Tool

Effect Diagram LAN File Sharing Tool: Turn Your Computer into a “NAS” with One Click! “Hey, Xiao Ming from the next desk is coming to you again with a USB drive to copy ‘study materials’? Stop plugging and unplugging! Today, we will write a small tool that can build a site in 10 seconds, allowing … Read more