FACT++  1.0
static void release_conn ( int  conn_id)
static

Definition at line 853 of file dna.c.

References DNA_CONNECTION::buffer, DNA_CONNECTION::buffer_size, DNA_CONNECTION::busy, conn_free(), Dna_conns, DNA_CONNECTION::error_ast, Memory::free(), DNA_CONNECTION::read_ast, and tcpip_close().

Referenced by dna_close().

854 {
855  register DNA_CONNECTION *dna_connp = &Dna_conns[conn_id] ;
856 
857  DISABLE_AST
858  if(dna_connp->busy)
859  {
860  tcpip_close(conn_id);
861  if(dna_connp->buffer)
862  {
863  free(dna_connp->buffer);
864  dna_connp->buffer = 0;
865  dna_connp->buffer_size = 0;
866  }
867  dna_connp->read_ast = NULL;
868  dna_connp->error_ast = NULL;
869  conn_free(conn_id);
870  }
871  ENABLE_AST
872 }
int busy
Definition: dim.h:381
void conn_free(int conn_id)
Definition: conn_handler.c:118
void(* error_ast)()
Definition: dim.h:383
int tcpip_close(int conn_id)
Definition: tcpip.c:1510
void free(void *mem)
DllExp DIM_NOSHARE DNA_CONNECTION * Dna_conns
Definition: conn_handler.c:31
int * buffer
Definition: dim.h:384
int buffer_size
Definition: dim.h:385
void(* read_ast)()
Definition: dim.h:382

+ Here is the call graph for this function:

+ Here is the caller graph for this function: