Cleanup after the split of modules and fix visibility

This commit is contained in:
Norman Maurer committed 2017-05-09 14:16:03 +02:00
1 parent e193bc97f0
commit 4890ca6ed8
4 files changed
+5 -39

No files matched your search

+3 -3
View File
@@ -32,15 +32,15 @@ protocol ChannelOutboundInvoker {
// Default implementations for methods that not take a promise.
extension ChannelOutboundInvoker {
func write(data: Buffer) -> Future<Void> {
public func write(data: Buffer) -> Future<Void> {
return write(data: data, promise: Promise<Void>())
}
func writeAndFlush(data: Buffer) -> Future<Void> {
public func writeAndFlush(data: Buffer) -> Future<Void> {
return writeAndFlush(data: data, promise: Promise<Void>())
}
func close() -> Future<Void> {
public func close() -> Future<Void> {
return close(promise: Promise<Void>())
}
}
@@ -12,6 +12,8 @@
//
//===----------------------------------------------------------------------===//
import Foundation
import NIO
import Future
public class EchoHandler: ChannelHandler {
-18
View File
@@ -1,18 +0,0 @@
//===----------------------------------------------------------------------===//
//
// This source file is part of the SwiftNIO open source project
//
// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of SwiftNIO project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
import Foundation
print("Hello, Linux!")
-18
View File
@@ -1,18 +0,0 @@
//===----------------------------------------------------------------------===//
//
// This source file is part of the SwiftNIO open source project
//
// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of SwiftNIO project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
import Foundation
print("Hello, Linux!")