eCosPro® Reference Manual
Prev |  | Next

# tcp_abort()

## Name

tcp_abort() -- Abort the connection

## Synopsis

`void tcp_abort`(struct tcp_pcb *pcb);

## Description

Aborts the connection by sending a RST (reset) segment to the remote host. pcb is deallocated. This function never fails.

If a connection is aborted because of an error, the application is alerted of this event by the callback previously registered with `tcp_err()`. Errors that might abort a connection are when there is a shortage of memory.

Prev | Home | Next
tcp_close() | Up | tcp_err()