             )
         }
     }
-    
+
     init(blocking: Bool = false) throws {
         fileDescriptor = socket(AF_INET6, SOCK_STREAM, 0)
         guard fileDescriptor >= 0 else {

public final class TCPSocket {
    /// The file descriptor number for socket
    let fileDescriptor: Int32
    
    /// Whether is this socket in block mode or not
    var blocking: Bool {
        get {
            return IOUtils.getBlocking(fileDescriptor)
        }
        
        set {
            IOUtils.setBlocking(fileDescriptor, blocking: newValue)
        }
    }
    
    /// Whether to ignore SIGPIPE signal or not
    var ignoreSigPipe: Bool {
        get {

        }
        return bytesSent
    }

    /// Read data from peer
    ///  - Parameter size: size of bytes to read
    ///  - Returns: bytes read from peer
