mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[PR #1725] [MERGED] [Rust] Fixes to Net Module #2444
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1725
Author: @steel-bucket
Created: 8/9/2025
Status: ✅ Merged
Merged: 9/6/2025
Merged by: @prateekmedia
Base:
master← Head:migration-net-module-fixes📝 Commits (10+)
24a6c29chore(cargo): Add dependenciesacfab3cfeat: Create new modulenetin lib_ccxr67cc60bfeat: Add block related functionality inblock.rs54a672cfeat: Addtarget.rsmodule for sending data blocks related functionsf3474d6feat(modules): Add all necessary modules3dc6713feat: Addsource.rsmodule for reading data blocks related functions from source52d1130feat: Add C equivalent functions in rust9ee6f81feat(module): Addnetmodule inlibccxr_exportd735f38chore(cargo): Update Cargo.lockcf317d5feat: Add C equivalent code inlibccxr_exports& use innetworking.c📊 Changes
18 files changed (+2119 additions, -457 deletions)
View changed files
📝
src/lib_ccx/networking.c(+46 -0)📝
src/rust/Cargo.lock(+285 -203)📝
src/rust/lib_ccxr/Cargo.lock(+197 -137)📝
src/rust/lib_ccxr/Cargo.toml(+2 -1)📝
src/rust/lib_ccxr/src/lib.rs(+1 -0)➕
src/rust/lib_ccxr/src/net/block.rs(+358 -0)➕
src/rust/lib_ccxr/src/net/c_functions.rs(+99 -0)➕
src/rust/lib_ccxr/src/net/mod.rs(+54 -0)➕
src/rust/lib_ccxr/src/net/source.rs(+415 -0)➕
src/rust/lib_ccxr/src/net/target.rs(+294 -0)📝
src/rust/src/decoder/output.rs(+2 -5)📝
src/rust/src/decoder/service_decoder.rs(+39 -61)📝
src/rust/src/decoder/tv_screen.rs(+10 -10)📝
src/rust/src/decoder/window.rs(+1 -1)📝
src/rust/src/libccxr_exports/bitstream.rs(+10 -10)📝
src/rust/src/libccxr_exports/mod.rs(+1 -0)➕
src/rust/src/libccxr_exports/net.rs(+285 -0)📝
src/rust/src/parser.rs(+20 -29)📄 Description
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
The
netmodule is not working in either the main branch or the rust port(open currently), this PR aims to solve it by re-writing the UDP implementation and some changes to theparsermodule..I've added it so that I could run regressions, so there could be a chance of errors still. But it seems to run fine locally.
To get it to run in your local system
Let's say we are testing on a hauppauge file
all_in_with_chris_hayes_20250326_1958.ts(hauppauge used so that I could showcase where to put the Args)
We would normally do
So, for testing the TCP implementation locally, we have to run this command (Make sure that netcat is installed in linux)
In another terminal
And for testing the UDP implementation
In another terminal
These 2 tests work on this branch, and in 0.94(and older releases), but they are non-functional for the main branch as well as the old net PRs.
All Credit for porting the core codebase of
netgoes to @elbertronnie and @IshanGrover2004🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.