remote_host一般只能得到IP地址,要怎么配置IIS才能追踪到主机名称?
解决方案 »
- winform 的问题:数据变改后,多个绑定的DataGrid的数据怎么能自动更新?
- 如何在aspx.cs里给用户控件的自定义属性动态赋值?
- 线程问题
- 急救::关于登录问题,我用C# 2005,编写的C/S程序,登录时当输入用户名admin,密码111时,数据库表里有这些数据,但是运行时程序提示用户信息不存在??
- 文章比较,征求思路(有点难度)
- SqlDataAdapter.Update 方法向数据库中添加数据出错
- asp.net 在win2003下图片显示问题
- 基于RDP的远程桌面客户端的驱动重定向(磁盘映射)
- “ResolveAssemblyReference”任务意外失败。System.NullReferenceException: 未将对象引用设置到对象的实例。
- 请高手帮忙解决用Response.AddHeader下载时,我点击打开,要打开两次的问题,谢谢!
- 江湖救急!!!C#不规则界面特效
- 寻找XtraReports Suite报表控件
he Windows Sockets getpeername function gets the address of the peer to which a socket is connected.int getpeername ( SOCKET s,
struct sockaddr FAR* name,
int FAR* namelen
);
Parameterss[in] A descriptor identifying a connected socket.name[out] The structure which is to receive the name of the peer.namelen[out] A pointer to the size of the name structure. Resgetpeername retrieves the name of the peer connected to the socket s and stores it in the struct sockaddr identified by name. It can be used only on a connected socket. For datagram sockets, only the name of a peer specified in a previous connect call will be returned綼ny name specified by a previous sendto call will not be returned by getpeername.
On return, the namelen argument contains the actual size of the name returned in bytes.Return ValuesIf no error occurs, getpeername returns zero. Otherwise, a value of SOCKET_ERROR is returned, and a specific error code can be retrieved by calling WSAGetLastError.Error CodesWSANOTINITIALISED A successful WSAStartup must occur before using this function.
WSAENETDOWN The network subsystem has failed.
WSAEFAULT The name or the namelen argument is not a valid part of the user address space, or the namelen argument is too small.
WSAEINPROGRESS A blocking Windows Sockets 1.1 call is in progress, or the service provider is still processing a callback function.
WSAENOTCONN The socket is not connected.
WSAENOTSOCK The descriptor is not a socket.
See Alsobind, getsockname, socket