src/main/java/com/github/mikesafonov/smpp/core/sender/StandardSenderClient.java
private void checkSession() {
        boolean connectionAlive = false;
        int tryCount = 0;
        while (!connectionAlive && tryCount <= maxTryCount) {
            if (session == null) {
                connectionAlive = bind();
            } else {
                logSessionConnection(connectionAlive, tryCount);
                connectionAlive = checkBoundState();
            }
            tryCount++;
        }

        if (!connectionAlive) {
            throw new SmppSessionException();
        }
    }
/**
     * Checking smpp session state. If session is null - creating new session using method {@link #bind()}.
     * Otherwise checking bound session state by method {@link #checkBoundState()}.
     *
     * @throws SmppSessionException if session not connected
     */
Checking smpp session state. If session is null - creating new session using method  #bind().
Otherwise checking bound session state by method  #checkBoundState().

@throws SmppSessionException if session not connected
Checking smpp session state . If session is null - creating new session using method #bind () . Otherwise checking bound session state by method #checkBoundState () . @throws SmppSessionException if session not connected
private void checkSession() {
        boolean connectionAlive = false;
        int tryCount = 0;
        while (!connectionAlive && tryCount <= maxTryCount) {
            if (session == null) {
                connectionAlive = bind();
            } else {
                logSessionConnection(connectionAlive, tryCount);
                connectionAlive = checkBoundState();
            }
            tryCount++;
        }
        if (!connectionAlive) {
            throw new SmppSessionException();
        }
    }
private void checkSession ( ) { boolean connectionAlive = false ; int tryCount = 0 ; while ( ! connectionAlive && tryCount <= maxTryCount ) { if ( session == null ) { connectionAlive = bind ( ) ; } else { logSessionConnection ( connectionAlive , tryCount ) ; connectionAlive = checkBoundState ( ) ; } tryCount ++ ; } if ( ! connectionAlive ) { throw new SmppSessionException ( ) ; } }
Checking smpp session state.
Checking smpp session state .