Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

TCP Stream Reader

Project description

TCP Stream Reader


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


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=[''], client=[''])
WinPcapUtils.capture_on('*Ethernet*', tcp_manager.receive_raw_win_pcap)

Project details

Download files

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

Files for tcp-reader, version 0.1.0.post1
Filename, size File type Python version Upload date Hashes
Filename, size tcp_reader-0.1.0.post1.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page