Skip to content

Commit

Permalink
server stream client type
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner0101 committed Mar 17, 2017
1 parent fb6dedc commit 81b7954
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Sources/Transport/Streams/ProgramStream/ServerStream.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
public protocol ServerStream: InternetStream, DuplexStream {
public protocol ServerStream: InternetStream {
associatedtype Client: DuplexStream
func bind() throws
func listen(max: Int) throws
func accept() throws -> Self
func listen(max: Int) throws
func accept() throws -> Client
}

0 comments on commit 81b7954

Please sign in to comment.