         }
     }
 
-    public override func registrationFor(interested: IOEvent) -> NIORegistration {
+    override func registrationFor(interested: IOEvent) -> NIORegistration {
         return .datagramChannel(self, interested)
     }
 

        return result
    }

    override func writeToSocket() throws -> OverallWriteResult {
        let result = try self.pendingWrites.triggerAppropriateWriteOperations(scalarBufferWriteOperation: { ptr in
            guard ptr.count > 0 else {
                // No need to call write if the buffer is empty.

        self.pendingWrites.failAll(error: error, close: true)
    }

    override fileprivate func writeToSocket() throws -> OverallWriteResult {
        let result = try self.pendingWrites.triggerAppropriateWriteOperations(scalarWriteOperation: { (ptr, destinationPtr, destinationSize) in
            guard ptr.count > 0 else {
                // No need to call write if the buffer is empty.
