Latest 0.1.5
Homepage https://github.com/yichengchen/YCPortForwarder
License MIT
Platforms ios 8.0, osx 10.10
Dependencies CocoaAsyncSocket
Authors

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.

Latest podspec

{
    "name": "YCPortForwarder",
    "version": "0.1.5",
    "summary": "A simple tcp forwarder example using CocoaAsyncSocket.",
    "description": "A simple tcp forwarder example using CocoaAsyncSocket. Help you to get konwn about the data flow though the specify port.",
    "homepage": "https://github.com/yichengchen/YCPortForwarder",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "yicheng": "[email protected]"
    },
    "source": {
        "git": "https://github.com/yichengchen/YCPortForwarder.git",
        "tag": "0.1.5"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.10"
    },
    "swift_version": "4.2",
    "source_files": "YCPortForwarder/Classes/**/*",
    "dependencies": {
        "CocoaAsyncSocket": []
    }
}

Pin It on Pinterest

Share This