Пример #1
0
/*
 ****************************************************************
 *	Aborta a conexão					*
 ****************************************************************
 */
int
tcp_abort (int fd)
{
	if (t_snddis (fd, (T_CALL *)NULL) < 0)
		return (-1);

	return (t_close (fd));

}	/* end tcp_abort */
Пример #2
0
static int
TRANS(TLIDisconnect)(XtransConnInfo ciptr)

{
    prmsg(2, "TLIDisconnect(%x->%d)\n", ciptr, ciptr->fd);

    /*
     * Restore the TLI modules so that the connection can be properly shutdown.
     * This avoids the situation where a connection goes into the TIME_WAIT
     * state, and the address remains unavailable for a while.
     */
    ioctl(ciptr->fd, I_POP,"tirdwr");
    ioctl(ciptr->fd, I_PUSH,"timod");

    t_snddis(ciptr->fd,NULL);

    return 0;
}