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

Ns_SetSockErrno

Overview

Set error number for socket connection

Syntax

    Ns_SetSockErrno(int err);

Description

Ns_SetSockErrno sets the current error number for the socket connection to the specified error number.

This function (along with the other error reporting functions listed below) is part of a platform-independent interface to the error reporting mechanisms on Unix and NT. On Unix, the per-thread errno variable is used, and on Windows NT, the standard GetLastError() and SetLastError() mechanism is used. The nssocket.h header defines the Windows NT style error names to equal the Unix style error names for the most common error numbers.

See Also

Ns_ClearSockErrno

Ns_GetSockErrno

Ns_SockStrError

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1996 America Online, Inc.