8000 GitHub - github150620/tcp-join
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

github150620/tcp-join

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

tcp-join

Read from connection A and write to connection B, at the same time read from connection B and write to connection A.

Install

go get github.com/github150620/tcpjoin

Usage

import (
	"net"
	"github.com/github150620/tcp-join"
)

func main() {
	conn1, err := net.Dial("tcp", "192.168.1.99:80")
	if err != nil {
		return
	}
  
	conn2, err := net.Dial("tcp", "192.168.1.100:80")
	if err != nil {
		return
	}

	join = tcpjoin.New(conn1, conn2)
	join.Run()
}

Futures

  • If either connection A or connection B close, then the other will be closed.
  • Connection idle time is 5 minutes.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0