                     }
                     print("Answer to ring,ring is: \(count) bytes: \(block)")
                 }
-                .connect("23.64.166.184:80") { socket in
-                        socket.write("GET /us-en/ HTTP/1.1\r\nHost: www.ibm.com\r\n\r\n")
+
+                let isConnected = socket.connect(addr) { socket in
+                    socket.write("GET /us-en/ HTTP/1.1\r\nHost: www.ibm.com\r\n\r\n")
                 }
+
                 expect(isConnected) == true
             }
 

            }

            it("can connect to IBM") {
                let socket = ActiveSocket<sockaddr_in>()
                let isConnected = socket!.onRead { sock, _ in
                    let (count, block, errno) = sock.read()
                    guard count > 0 else {
                        print("EOF, or great error handling \(errno).")

import Swiftcraft

import SwiftSockets

func htons(value: CUnsignedShort) -> CUnsignedShort {
    // hm, htons is not a func in OSX and the macro is not mapped
    return (value << 8) + (value >> 8);
}


class TableOfContentsSpec: QuickSpec {
    override func spec() {
