Code Monkey home page Code Monkey logo

swiftersockets's Introduction

SwifterSockets

A collection of socket utilities in pure Swift

SwifterSockets is part of the 5 packages that make up the Swiftfire webserver:

#####Swiftfire

An open source web server in Swift.

#####SwiftfireConsole

A GUI application for Swiftfire.

#####SwifterLog

General purpose logging utility.

#####SwifterJSON

General purpose JSON framework.

There is a 6th package called SwiftfireTester that can be used to challenge a webserver (any webserver) and see/verify the response.

#Features

  • Shields the Swift application from the complexity of the Unix socket calls.
  • Implement a client with InitClient, Transfer, Close.
  • Implement a server with InitServer, Accept, Receive, Transfer, Close.
  • Can be used in three ways:
    • Synchronously with result codes.
    • Synchronously with exceptions.
    • Asynchronously for implicit multithreading.
  • Replacement operations for FD_SET, FD_CLR, FD_ZERO and FD_ISSET macro's.
  • Comes with some example code.

#Version history

####V 0.9.2

  • Upgraded to Swift 2.2.
  • Added closeSocket call.
  • Added 'logUnixSocketCalls' (needs SwifterLog).
  • Added note on buffer capture to transmitAsync:buffer.
  • Added SERVER_CLOSED and CLIENT_CLOSED to TransmitResult.
  • Changed DataEndDetector from a class to a protocol.
  • Added SERVER_CLOSED to ReceiveResult.
  • Replaced error numbers in the receiver functions with #file.#function.#line
  • Added CLOSED AcceptResult.
  • Fixed a bug that missed the error return from the select call in the accept functions.

####V 0.9.1

  • Changed type of object in 'synchronized' from AnyObject to NSObject
  • Added EXC_BAD_INSTRUCTION info to fd_set
  • TransmitTelemetry and ReceiveTelemetry now inherit from NSObject
  • Replaced (UnsafePointer, length) with UnsafeBufferPointer
  • Added note on DataEndDetector that it can be used to receive the data also.

####V 0.9.0

  • Initial release

swiftersockets's People

Contributors

swiftrien avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.