SCNetworkConnectionStop(_:_:)
Stops the connection process for the specified network connection.
Declaration
func SCNetworkConnectionStop(_ connection: SCNetworkConnection, _ forceDisconnect: Bool) -> BoolParameters
- connection:
The network connection to stop.
- forceDisconnect:
Pass
TRUEto stop the connection regardless of other applications that might have interest in it.
Return Value
TRUE if the disconnection request succeeded; FALSE (use the SCError() function to retrieve the specific error).