Latest 2.0.0
Homepage https://github.com/vapor/sockets
License MIT
Platforms ios 8.0, tvos 9.0, osx 10.10, watchos 2.0, requires ARC
Dependencies VaporCoreCore, VaporCoreLibc
Authors

Socks

Swift
Build Status
CircleCI
Code Coverage
Codebeat
Slack Status

Pure-Swift Sockets. Linux & OS X ready.

Usage

A Simple TCP Client

Full code

    import Socks

    let address = InternetAddress(hostname: "google.com", port: 80)
    do {
        let client = try TCPClient(address: address)
        try client.send("GET /rnrn")
        let str = try client.read().makeString()
        try client.close()
        print("Received: n(str)")
    } catch {
        print("Error (error)")
    }

📖 Documentation

Visit the Vapor web framework’s documentation for instructions on how to use this package.

💧 Community

Join the welcoming community of fellow Vapor developers in slack.

🔧 Compatibility

This package has been tested on macOS and Ubuntu.

👥 Authors

Honza Dvorsky – http://honzadvorsky.com, @czechboy0
Matthias Kreileder – @matthiaskr1

Latest podspec

{
    "name": "VaporTransport",
    "version": "2.0.0",
    "summary": "Pure-Swift Sockets: TCP, UDP; Client, Server; Linux, OS X...",
    "description": "Pure-Swift Sockets: TCP, UDP; Client, Server; Linux, OS X.s.. mirror from vapor/bits for CocoaPods",
    "homepage": "https://github.com/vapor/sockets",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "vapor": "[email protected]"
    },
    "platforms": {
        "ios": "8.0",
        "tvos": "9.0",
        "osx": "10.10",
        "watchos": "2.0"
    },
    "source": {
        "git": "https://github.com/vapor/sockets.git",
        "tag": "2.0.0-beta.3"
    },
    "source_files": [
        "Sources/Transport/**/*.swift"
    ],
    "dependencies": {
        "VaporCoreCore": [],
        "VaporCoreLibc": []
    },
    "requires_arc": true,
    "module_name": "Transport",
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "3.1"
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This