sockets SwiftPM circleci

Pure-Swift Sockets: TCP, UDP; Client, Server; Linux, OS X.

2 years after

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 /\r\n\r\n")
        let str = try client.read().makeString()
        try client.close()
        print("Received: \n\(str)")
    } catch {
        print("Error \(error)")
    }

Related Repositories

node-ipc

node-ipc

Inter Process Communication Module for node supporting Unix sockets, TCP, TLS, a ...

async-sockets

async-sockets

Library for asynchronous work with sockets based on php streams ...

Sockets-en-Android-Server

Sockets-en-Android-Server

Codigo fuente utilizado en el Tutorial de Sockets ...

clj-sockets

clj-sockets

Sockets library for Clojure ...


Top Contributors

czechboy0 tanner0101 LoganWright BrettRToomey banxi1988 MatthiasKreileder lgaches Joannis imcotton justMaku hpux735

Releases

-   2.0.1 zip tar
-   2.0.0 zip tar
-   2.0.0-beta.6 zip tar
-   2.0.0-beta.5 zip tar
-   2.0.0-beta.4 zip tar
-   2.0.0-beta.3 zip tar
-   2.0.0-beta.2 zip tar
-   2.0.0-beta.1 zip tar
-   2.0.0-alpha.3 zip tar
-   2.0.0-alpha.2 zip tar
-   2.0.0-alpha.1 zip tar
-   1.2.7 zip tar
-   1.2.6 zip tar
-   1.2.5 zip tar
-   1.2.4 zip tar
-   1.2.3 zip tar
-   1.2.2 zip tar
-   1.2.1 zip tar
-   1.2.0 zip tar
-   1.1.1 zip tar
-   1.1.0 zip tar
-   1.0.1 zip tar
-   1.0.0 zip tar
-   0.12.2 zip tar
-   0.12.1 zip tar
-   0.12.0 zip tar
-   0.11.0 zip tar
-   0.10.0 zip tar
-   0.9.0 zip tar
-   0.8.3 zip tar