             throw OSError.lastIOError()
         }
     }
-    
+
     /// Accept a new connection
     func accept() throws -> TCPSocket {
         var address = sockaddr_in6()

            throw OSError.lastIOError()
        }
    }
    
    /// Listen incomming connections
    ///  - Parameter backlog: maximum backlog of incoming connections
    func listen(backlog: Int = Int(SOMAXCONN)) throws {

        }
        return Array(bytes[0..<bytesRead])
    }

    /// Close the socket
    func close() {
        Darwin.shutdown(fileDescriptor, SHUT_WR)
        Darwin.close(fileDescriptor)
    }

    func getPeerName() throws -> (String, Int) {
        var address = sockaddr_in6()
        var size = socklen_t(sizeof(sockaddr_in6))
