YCPortForwarder 0.1.5

YCPortForwarder 0.1.5

Maintained by yicheng.



  • By
  • yicheng

YCPortForwarder

Version License Platform

Features

A simple tcp package forwarder example using CocoaAsyncSocket. Help you to get konwn about the data flow though the specify port.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Swift 4.2

Installation

YCPortForwarder is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'YCPortForwarder'

Forwarding With TCP

fordwarder = YCPortForwarder(remoteHost: "192.168.1.1", remotePort: 22, toPort: 8888)
if let localPort = fordwarder?.start() {
    print("127.0.0.1:\(localPort) <===> 192.168.1.1:22")
}

TODO

  • UDP support
  • Objc support

Author

yicheng,[email protected]

License

YCPortForwarder is available under the MIT license. See the LICENSE file for more info.