CSP (coroutine) based Swift UDP sockets for macOS and Linux
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources/UDP
Tests
.codecov.yml
.gitignore
.swift-version
.travis.yml
LICENSE
Package.swift
README.md

README.md

UDP

Swift License Slack Travis Codecov Codebeat

Installation

import PackageDescription

let package = Package(
    dependencies: [
        .Package(url: "https://github.com/Zewo/UDP.git", majorVersion: 0, minor: 14)
    ]
)

Basic usage

Send messages

Send a message containing "Hello world" from localhost:5050 to localhost:5051

import UDP

let udpSocket = try! UDPSocket(ip: IP(port: 5050))
try udpSocket.send(Data("Hello world"), ip: IP(port: 5051))

Support

If you need any help you can join our Slack and go to the #help channel. Or you can create a Github issue in our main repository. When stating your issue be sure to add enough details, specify what module is causing the problem and reproduction steps.

Community

Slack

The entire Zewo code base is licensed under MIT. By contributing to Zewo you are contributing to an open and engaged community of brilliant Swift programmers. Join us on Slack to get to know us!

License

This project is released under the MIT license. See LICENSE for details.