Skip to content

CSP (coroutine) based Swift UDP sockets for macOS and Linux

License

Notifications You must be signed in to change notification settings

ZewoGraveyard/UDP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.