[ Previous ] [ Contents ] [ Index ] [ Next ]

ns_sockcheck

Overview

Check if a socket is connected

Syntax

ns_sockcheck fileid

Description

ns_sockcheck uses recv() or send() calls to check if a socket is still connected. The fileid is the read or write file id returned by ns_sockopen. This function is useful if you used the -nonblock option with ns_sockopen after calling ns_sockselect.

Example

An example containing ns_sockcheck is provided under ns_sockselect.

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1998-99 America Online, Inc.