getprotobyname函数
来源:互联网 发布:男生香水 知乎 编辑:程序博客网 时间:2024/05/06 06:52
getprotobyname
The getprotobyname function retrieves the protocol information corresponding to a protocol name.
struct PROTOENT* FAR getprotobyname( const char* name);
Parameters
- name
- [in] Pointer to a null-terminated protocol name.
Return Values
If no error occurs, getprotobyname returns a pointer to the protoent. Otherwise, it returns a null pointer and a specific error number can be retrieved by calling WSAGetLastError.
Remarks
The getprotobyname function returns a pointer to the protoent structure containing the name(s) and protocol number that correspond to the protocol specified in the name parameter. All strings are null-terminated. The protoent structure is allocated by the Windows Sockets library. An application must never attempt to modify this structure or to free any of its components. Furthermore, like hostent, only one copy of this structure is allocated per thread, so the application should copy any information that it needs before issuing any other Windows Sockets function calls.
Requirements
Declared in Winsock2.h.
Link to Ws2_32.lib.
See Also
Winsock Reference, Winsock Functions, getprotobynumber, WSAAsyncGetProtoByName
- getprotobyname函数
- struct protoent结构,getprotobyname 及相关函数
- getprotobyname, getprotobynumber, endprotoent函数的应用
- WinSock网络编程学习笔记(七):协议查询程序(getprotobyname和getprotobynumber函数)
- gethostname() gethostbyname() getprotobyname()用法
- getprotobyname 以及struct protoent结构
- getaddrinfo(),gethostbyname(),getnetbyaddr(),getservbyname(),getprotobyname()对比总结
- 获取协议名、协议号——getprotoent(),getprotobyname(),getprotobynumber()
- 获取协议名、协议号——getprotoent(),getprotobyname(),getprotobynumber()
- 函数
- 函数
- 函数
- 函数
- 函数
- 函数
- 函数
- 函数
- 函数
- CEdit去掉右键弹出式菜单
- jBPM Web Designer(jBPM Web 设计器、jBPM 流程设计器、工作流程设计器)
- 编码
- 淘宝电器城、京东、新蛋、新七天
- 12月30日热烈欢迎软通动力参观武汉众嵌科技
- getprotobyname函数
- c# 获得当月时间的方法
- css样式大全(整理版)(转)
- 喜报:2009年武汉众嵌0901期顺利就业
- yewzycb.dll pchxcfye.sys 病毒文件
- 关于投标
- 1月23日的技术社区OpenParty圆满完成
- 拖拉窗体不显示窗口内容
- 支持自动TOC超文本目录生成的chm转换器(perl脚本)