You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
952 B
70 lines
952 B
/*++
|
|
|
|
Copyright (C) 2001 Microsoft Corporation
|
|
All rights reserved.
|
|
|
|
Module Name:
|
|
|
|
NCsockets.hxx
|
|
|
|
Abstract:
|
|
|
|
Declares functions and classes that expose sockets functionality.
|
|
|
|
Author:
|
|
|
|
Felix Maxa (AMaxa) 16 May 2001
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#ifndef _NCSOCKETS_HXX_
|
|
#define _NCSOCKETS_HXX_
|
|
|
|
HRESULT
|
|
GetWSAErrorAsHResult(
|
|
VOID
|
|
);
|
|
|
|
HRESULT
|
|
IsIPAddress(
|
|
IN LPCWSTR pszName
|
|
);
|
|
|
|
//
|
|
// Class for easy WSA start up and clean up
|
|
//
|
|
class TWinsockStart
|
|
{
|
|
SIGNATURE('WSST');
|
|
|
|
public:
|
|
|
|
TWinsockStart(
|
|
IN DWORD MajorVersion = 2,
|
|
IN DWORD MinorVersion = 0
|
|
);
|
|
|
|
~TWinsockStart(
|
|
VOID
|
|
);
|
|
|
|
HRESULT
|
|
Valid(
|
|
IN VOID
|
|
) CONST;
|
|
|
|
private:
|
|
|
|
//
|
|
// Copying and assignment are not defined.
|
|
//
|
|
NO_COPY(TWinsockStart);
|
|
|
|
WSADATA m_WSAData;
|
|
HRESULT m_hr;
|
|
};
|
|
|
|
#endif //_NCSOCKETS_HXX_
|
|
|