Skip to content

narita-takeru/tcpstream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

tcpstream

tcpstream is simple handling of tcp communication data.
This is very easy usability.

If you want hook or look tcp raw data.
tcpstream will help you :D

Example image

tcpstream

Installation

go get github.com/narita-takeru/tcpstream

Usage

  t := tcpstream.Thread{}

  t.SrcToDstHook = func(b []byte) {
    // Argument "b []byte" is tcp communication data.
    // Do something process.
  }

  t.DstToSrcHook = func(b []byte) {
    // Do something process.
  }

  src := "127.0.0.1:80"
  dst := "127.0.0.1:8080"
  
  t.Do(src, dst) // Start tcp listen by src, and hook both directions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages