mutating func connectionEstablished()

in Sources/NIOSOCKS/State/ServerStateMachine.swift [106:120]


    mutating func connectionEstablished() throws {
        switch self.state {
        case .inactive:
            ()
        case .authenticating,
             .waitingForClientGreeting,
             .waitingToSendAuthenticationMethod,
             .waitingForClientRequest,
             .waitingToSendResponse,
             .active,
             .error:
             throw SOCKSError.InvalidServerState()
        }
        self.state = .waitingForClientGreeting
    }