Java IO Streams: Memory Streams, Print Streams, and Network Programming Basics
Java IO Streams Overview
Various Stream Types
Memory Streams
ByteArrayInputStream - Memory input stream
ByteArrayOutputStream - Memory output stream
Important Notes:
Memory streams interact between the program and memory, not with files
Memory streams are channels from the program to memory and cannot be closed
Use Cases: Frequently used data ...
Posted on Mon, 22 Jun 2026 17:31:22 +0000 by JJohnsenDK
Building an HTTP Listener Server and Client with DSAPI
This article demonstrates how to quickly establish server and client functionality using the DSAPI.Network-related HTTP Listener component.
The HTTP Listener Server monitors specified computer ports to provide web request parsing services similar to IIS. While commonly used for web pages, this functionality extends to various other applications ...
Posted on Sat, 06 Jun 2026 17:06:11 +0000 by carsale
Understanding I/O Multiplexing with select in Linux Network Programming
Introduction to I/O Multiplexing
In traditional I/O models, functions like read() and write() handle both the waiting phase and the data transfer phase of I/O operations. Since I/O efficiency is primarily determined by waiting time, a new paradigm emerged: delegate the waiting process to a dedicated mechanism that monitors multiple file descrip ...
Posted on Sat, 30 May 2026 20:53:47 +0000 by CavemanUK
Implementing UDP and Multicast Communication in Java
User Datagram Protocol (UDP) provides a connectionless method for transmitting data across a network. Unlike TCP, UDP does not establish a persistent connection, making it suitable for scenarios where speed is prioritized over guaranteed delivery.
Core UDP Communication Components
UDP communication typically involves two primary classes: Datagr ...
Posted on Tue, 26 May 2026 22:04:00 +0000 by phpfreak
Building a Robust Instant Messaging System on OpenHarmony
Implementation Overveiw
Instant messaging enables real-time exchange of text, multimedia, and documents between multiple devices. This implementation targets the OpenHarmony ecosystem, utilizing a client-server architecture deployed on hardware such as the DAYU200 RK3568 board running OpenHarmony 3.1.
Core Architecture
Successful inter-device c ...
Posted on Tue, 26 May 2026 19:00:46 +0000 by eves
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
Building a Real-Time Messaging System with Spring and Apache Mina
Server ImplementationApache Mina provides a robust framework for building network applications. When combined with Spring's dependency injection, it creates a flexible architecture for real-time message delivery and session management.Data Transfer ObjectsThe communication layer requires structured message objects for serialization. The incomin ...
Posted on Sat, 23 May 2026 18:54:07 +0000 by yarons
Core Concepts of Java NIO: Components, ByteBuffer Mechanics, and Packet Fragmentation Handling
Java NIO Core ComponentsJava NIO (Non-blocking I/O) revolves around three fundamental components: Channel, Buffer, and Selector.Channel: A bidirectional conduit for data transfer that can simultaneously handle read and write operations, always operating in conjunction with a buffer.Buffer: An in-memory data block acting as a staging area. Data ...
Posted on Fri, 22 May 2026 16:32:42 +0000 by Infinitus 8
Core Concepts of Tornado Framework
Tornado is an asynchronous networking library and web framework originally developed by FriendFeed. By utilizing non-blocking network I/O, it efficiently handles thousands of simultaneous connections, making it an ideal choice for persistent connections, WebSockets, and high-concurrency environments.
Key Mechanisms for High Performance
Asynchr ...
Posted on Mon, 18 May 2026 01:48:18 +0000 by adrian_quah
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