<< Previous | Index | Next >>

tcp_tick


int tcp_tick( void *s );

Description

This function is a single kernel routine designed to quickly process packets and return as soon as possible. tcp_tick() performs processing on all sockets upon each invocation: checking for new packets, processing those packets, and performing retransmissions on lost data. On most other computer systems and other kernels, performing these required operations in the background is often done by a task switch. DCRTCP.LIB does not use a tasker for its basic operation, although it can adopt one for the user-level services.

Although you may ignore the returned value of tcp_tick(), it is the easiest method to determine the status of the given socket.

Parameters

s

Pointer to a socket. If a NULL pointer is passed in the returned value should be ignored.

Return value

 0: Connection reset or closed by other host or NULL was passed in.
!0: Connection is fine.

Library

TCP.LIB (Prior to DC 7.05, this was DCRTCP.LIB)

See also

tcp_open, sock_close, sock_abort


TCP/IP Manual
Vol 1
<<Previous | Index | Next>> rabbit.com