多谢!
解决方案 »
- 当程序出现异常时重新启动该应用程序
- 串口发送WriteToPort同步问题请教
- #import "..\ClassLibrary1\bin\Debug\ClassLibrary1.tlb" no_namespace named_guids
- 请教怎样编写DLL中只要头文件不要CPP文件的过程?因为调用DLL,一般只给一个头文件就行了,但是这个头文件没有CPP文件怎么也能编译通过呢
- 有什么书比较详细的介绍了***钩子技术或dll外包***
- 一个送分的问题,快来抢啊
- 如何写程序操作刻录机,谢了
- 请问如何在一个菜单项前打上一个对号?在程序里如何写??谢谢!
- 数据库访问速度问题
- 我又犯哪一条了
- 基于对话框的应用程序,如何在初始化时使工具栏的某些按钮无效
- 请问一个isapi的简单问题
The Windows Sockets gethostbyaddr function retrieves the host information corresponding to a network address.struct HOSTENT FAR * gethostbyaddr (
const char FAR * addr,
int len,
int type
);
Parameters
addr
[in] A pointer to an address in network byte order.
len
[in] The length of the address.
type
[in] The type of the address.
Res
The gethostbyaddr function returns a pointer to the HOSTENT structure that contains the name and address corresponding to the given network address. All strings are null-terminated.Return Values
If no error occurs, gethostbyaddr returns a pointer to the HOSTENT structure. Otherwise, it returns a NULL pointer, and a specific error code can be retrieved by calling WSAGetLastError.Error Codes
WSANOTINITIALISED A successful WSAStartup must occur before using this function.
WSAENETDOWN The network subsystem has failed.
WSAHOST_NOT_FOUND Authoritative Answer Host not found.
WSATRY_AGAIN Non-Authoritative Host not found, or server failed.
WSANO_RECOVERY Nonrecoverable error occurred.
WSANO_DATA Valid name, no data record of requested type.
WSAEINPROGRESS A blocking Windows Sockets 1.1 call is in progress, or the service provider is still processing a callback function.
WSAEAFNOSUPPORT The type specified is not supported by the Windows Sockets implementation.
WSAEFAULT The addr parameter is not a valid part of the user address space, or the len parameter is too small.
WSAEINTR A blocking Windows Socket 1.1 call was canceled through WSACancelBlockingCall.
QuickInfo
Windows NT: Yes
Windows: Yes
Windows CE: Use version 1.0 and later.
Header: Declared in winsock2.h.
Import Library: Link with ws2_32.lib.