Contents

SCNetworkConnectionStop(_:_:)

Stops the connection process for the specified network connection.

Declaration

func SCNetworkConnectionStop(_ connection: SCNetworkConnection, _ forceDisconnect: Bool) -> Bool

Parameters

  • connection:

    The network connection to stop.

  • forceDisconnect:

    Pass TRUE to 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).

See Also

Starting and Stopping a Connection