ANNA Suite  2020b
Multipurpose development suite for Telco applications
Public Types | List of all members
anna::diameter::comm::Session::State Struct Reference

#include <Session.hpp>

Public Types

enum  _v {
  Closed, WaitingBind, Bound, Failover,
  Suspect, WaitingDPA, Disconnecting, Closing
}
 

Detailed Description

Session states

See also
diameter::comm::Session::getState

Member Enumeration Documentation

◆ _v

Enumerator
Closed 

Closed

WaitingBind 

Connection confirmation pending

Bound 

Connection done included level application

Failover 

Last DWR timed out

Suspect 

Inactivity detected on session

WaitingDPA 

After requesting DPR to server, send is blocked over the session: when DPA arrives (or answer expires) the session is closed

Disconnecting 

After receiving DPR from server, send is blocked over the session: when no pending requests, DPA is sent to the server who will close connection

Closing 

Planned local disconnection without DPR; send is blocked over the session. Immediate unbind is used when IgnorePendings behaviour is configured

80  {
81  /* client + server */ Closed,
82  /* client */ WaitingBind,
83  /* client + server */ Bound,
84  /* client */ Failover,
85  /* server */ Suspect,
87 // .......
88 
89 
90  // Cierre de iniciativa local:
91  // 1. Envio DPR al PCRF y me pongo en estado 'WaitingDPA'. En este estado no habr� keep-alive DWR/DWA.
92  // 2. No dejo pasar nuevas peticiones (BLOCK-SEND).
93  // 3. Cierro al recibir el DPA.
94  // 4. Si expira el DPA, tambien cierro.
95  WaitingDPA,
97  // Cierre de iniciativa remota:
98  // 1. Recibo DPR del PCRF y me pongo en estado 'Disconnecting'. En este estado no habr� keep-alive DWR/DWA.
99  // 2. No dejo pasar nuevas peticiones (BLOCK-SEND).
100  // 3. Espero cursar las peticiones pendientes (a m�s tardar, ser� una expiracion Tx desde la recepcion del DPR).
101  // 4. Envio DPA y activo un temporizador de cierre local (2*Tx) como proteccion (por si el servidor no cierra).
102  Disconnecting,
104  // Cierre abrupto con/sin espera de pendings:
105  Closing
106  };

The documentation for this struct was generated from the following file: