8000 GitHub - briancroom/TCP: TCP sockets
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

briancroom/TCP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TCP

Swift Zewo Platform License Slack Travis

Features

  • TCPConnection
  • TCPServer

##Usage

co {
  do {
    let server = try TCPServer(for: URI("tcp://0.0.0.0:8080"))
    let connection = try server.accept()
    let data = try connection.receive(max: 1024)
    try connection.send(data)
  } catch {
    print(error)
  }
}

let connection = try TCPConnection(to: URI("tcp://127.0.0.1:8080"))
try connection.open()
try connection.send("hello")
let data =  try connection.receive(upTo: 1024)
print(data)

Installation

import PackageDescription

let package = Package(
    dependencies: [
        .Package(url: "https://github.com/VeniceX/TCP.git", majorVersion: 0, minor: 7)
    ]
)

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.

About

TCP sockets

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 100.0%
0