Skip to content

πŸ”Œ Non-blocking TCP socket layer, with event-driven server and client.

License

Notifications You must be signed in to change notification settings

vapor-community/sockets

Repository files navigation

Socks

Swift Build Status CircleCI Code Coverage Codebeat Slack Status

The package provides two libraries: SocksCore and Socks.

  • SocksCore is just a Swift wrapper of the Berkeley sockets API with minimal differences. It is meant to be an easy way to use the low level API without having to deal with Swift/C interop.
  • Socks is a library providing common usecases built on top of SocksCore - a simple TCPClient, SynchronousTCPServer etc.

If you're building a HTTP server, you'll probably want to use the TCPClient, without having to worry about its implementation details. However, if you need the low-level sockets API, just import SocksCore and use that instead.

Pure-Swift Sockets. Linux & OS X ready.

πŸ“– 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