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

Definition at line 248 of file webTcpip.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 web_close().

249 {
250  register DNA_CONNECTION *dna_connp = &Dna_conns[conn_id] ;
251 
252  DISABLE_AST
253  if(dna_connp->busy)
254  {
255  tcpip_close(conn_id);
256  if(dna_connp->buffer)
257  {
258  free(dna_connp->buffer);
259  dna_connp->buffer = 0;
260  dna_connp->buffer_size = 0;
261  }
262  dna_connp->read_ast = NULL;
263  dna_connp->error_ast = NULL;
264  conn_free(conn_id);
265  }
266  ENABLE_AST
267 }
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: