Skip to main content

TCP Stream Reader

Description

Reads raw ethernet data, splits them by TCP stream and use a TCPReader per stream.

Example

Example usage of TCPManager with win_pcap:

from tcp_reader import TCPManager
from winpcapy import WinPcapUtils

def print_callback(host, port, data):
    print('Received data from', host, 'on Port', port + ':', str(data))

tcp_manager = TCPManager(callback=print_callback, host=['93.184.216.34/32'], client=['192.168.0.0/16'])
WinPcapUtils.capture_on('*Ethernet*', tcp_manager.receive_raw_win_pcap)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tcp_reader-0.1.0.post1.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file tcp_reader-0.1.0.post1.tar.gz.

File metadata

File hashes

Hashes for tcp_reader-0.1.0.post1.tar.gz
Algorithm Hash digest
SHA256 824ed925a4b5d20dec600beee62f53bf12188a8768914ed03571c5fe1042aa21
MD5 2184839645137672acdb124b8e10b1b2
BLAKE2b-256 87b6587b6295366b8b2060985b018e865fabcbde42cf30eb9fdd0f95863aa294

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0.post1 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page