TipAcceptResult
public enum TipAcceptResult
The return type for the tipAccept function.
-
A connection was accepted.
Declaration
Swift
case accepted(socket: Int32, remoteAddress: String)
Parameters
socket
The socket descriptor for the accepted client (with SIGPIPE disabled).
remoteAddress
The IP adddress of the accepted client.
-
An error occured
Declaration
Swift
case error(message: String)
Parameters
message
The textual description of the error that occured.
-
A timeout occured.
Declaration
Swift
case timeout
-
Another thread closed the socket
Declaration
Swift
case closed