Swiftpack.co - Package - yichengchen/YCPortForwarder

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,yicheng.fzu@gmail.com

License

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

Github

link
Stars: 1
Help us keep the lights on

Dependencies

Used By

Total: 0

Releases

0.1.0 - Dec 23, 2018