Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kezhengjie/forward_cpp

A tcp forward tools implaments with select.
https://github.com/kezhengjie/forward_cpp

Last synced: 6 days ago
JSON representation

A tcp forward tools implaments with select.

Awesome Lists containing this project

README

        

# forward_cpp
A TCP forward tools.

##
This is a tcp port forward tool.
If you have boost lib,it is highly recommand using
forward-boost.cpp,which implemented with boost::asio
and faster than select.
forward.cpp implemented with select,works in most of
circumstance.

## compile
This code could be compiled both in Unix/Windows os.

### In unix:
`g++ -o forward forward.cpp`

### In Windows:
`cl /EHsc /Ox forward.cpp`

## usage
forward localport remoteaddr remoteport
`./forward 65444 192.168.1.2 22`
In this case,the program will forward all data to 192.168.1.2:22