Skip to content

Add TCP server/client streaming package demo - #37

Merged
fanfeilong merged 1 commit into
masterfrom
cursor/tcp-stream-test-f4db
Sep 23, 2026
Merged

fanfeilong merged 1 commit into
masterfrom
cursor/tcp-stream-test-f4db

Conversation

@fanfeilong

@fanfeilong fanfeilong commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

What

Add a loopback TCP server/client demo that exercises streaming packages over the network.

How it works

  1. XML path (test1.xlsx): server sends worksheet XML in small delayed chunks; client runs XmlPackageParser on the NetworkStream and prints [xml-stream] packages (worksheet / dimension / rows) as they complete.
  2. BIFF path (test8.xls): server streams length-prefixed BinaryPackage (XlsBiffRecord) payloads; client rebuilds records and prints [biff-stream] live.

Success prints TCP stream test OK / Done!.

Usage

dotnet run --project src/Exceltk/Exceltk.csproj -- -t tcpstream \
  -xlsx src/test/test1.xlsx -biff src/test/test8.xls

Also added to src/test.sh.

Verified

  • XML: 85 rows streamed dynamically
  • BIFF: 1213 packages streamed
  • Exit code 0

Related

Builds on the streaming package model (#35 / docs/streaming-packages.md).

Open in Web Open in Cursor 

Loopback transfer of sheet XML and BIFF record packages; the receiver
uses XmlPackageParser / BinaryPackage reconstruction and prints packages
as they complete. Invoked via -t tcpstream and wired into test.sh.

Co-authored-by: Fan Feilong <fanfeilong@gmail.com>
@fanfeilong
fanfeilong marked this pull request as ready for review September 23, 2026 16:13
@fanfeilong
fanfeilong merged commit 19bc086 into master Sep 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants