如何在Windows平台下的C中找到客户端名称 [英] How to find the client name in c under windows platform

查看:54
本文介绍了如何在Windows平台下的C中找到客户端名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,我在Windows中的c下创建了客户端服务器程序..

我将数据从客户端发送到服务器..

我想知道服务器程序中的客户端IP地址..

sir i created the client server program under c in windows..

i send the data from the client to server..

i want to know the client ip address in server program..

how can i find the client ipaddress in server program..

推荐答案

使用getpeername()获取客户端信息...
Use getpeername() to get the client information...


这篇关于如何在Windows平台下的C中找到客户端名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆