                 }
                 
                 return Data(bytes: buffer, count: len)
-                //                }
+                
             }
             
             let write = { (client: SXClientSocket, data: Data) throws -> () in

                getpeername(fd, &addr, &socklen)
                
                let context = try server.tlsContext?.accept(socket: fd)
                print("tls accept: \(context)")
                return try! SXClientSocket(fd: fd,
                                           tls: context,
                                           addrinfo: (addr: addr, len: socklen),

                    var _len = 0
                    
                    if let tlsc = client.tlsContext {
                       
                        recv_loop: while true {
                            guard let data = try? tlsc.read(size: size) else {
                                return nil
