[ Table Of Contents | Keyword Index ]

ns_sockcheck(n) 4.99 "NaviServer Built-in Commands"

NAME

ns_sockcheck - Check if a socket is connected

TABLE OF CONTENTS

    TABLE OF CONTENTS
    SYNOPSIS
    DESCRIPTION
    COMMANDS
    EXAMPLES
    SEE ALSO
    KEYWORDS

SYNOPSIS

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.

COMMANDS

ns_sockcheck fileid

EXAMPLES

 

SEE ALSO

nsd

KEYWORDS

NaviServer , ns_sockselect