登录
首页 » Windows Socket编程 » 一个简单的vc下tcp服务器端程序服务器端的程序当有客户提出连接请求时,在端口与客户端进行连接,连接成功后,显示客户IP地址和端口号,并给客户端发送“Hello...

一个简单的vc下tcp服务器端程序服务器端的程序当有客户提出连接请求时,在端口与客户端进行连接,连接成功后,显示客户IP地址和端口号,并给客户端发送“Hello...

于 2022-09-21 发布 文件大小:1.42 kB
0 188
下载积分: 2 下载次数: 1

代码说明:

一个简单的vc下tcp服务器端程序服务器端的程序当有客户提出连接请求时,在端口与客户端进行连接,连接成功后,显示客户IP地址和端口号,并给客户端发送“Hello!I am a server.”字符串。如果发送正确则显示所发送的字节数-Vc under a simple tcp server-side server-side program when connection requests made by the customer, in the port and connect the client to connect successfully, the display client IP address and port number, and to the client to send

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 这是一个聊天室例,服务器序是chatsrvr.exe,客户端是ChatClient.exe,服务器先运行,客户连接到服务器运行的计算机的IP即可。...
    这是一个聊天室例程,服务器程序是chatsrvr.exe,客户端是ChatClient.exe,服务器先运行,客户连接到服务器运行的计算机的IP即可。--This is a chatroom example, the server program is chatsrvr.Exe, the client is ChatClient.Exe,The server must run first,then a client only need to connect to the server IP.
    2022-09-12 14:45:03下载
    积分:1
  • P2P c++ sdk
    P2P dll c++ ,  static emReturnType SetAppType(emAppType AppType);//设置程序类型,服务器emAppType_Server或者客户端emAppType_Client  static emReturnType SetClientCallback(IMsgCallback *pMsgCallback);//设置回调类,回调类继承IMsgCallback接口  static emReturnType Startup();//开启网络  static emReturnType Cleanup();//关闭网络  //Server  以下函数是服务器调用  static emReturnType BeginService(unsigned short nPort);//如果是服务器,调用该函数开启服务,nPort:端口号  static emReturnType EndService();//服务器退出的时候,调用该函数关闭服务  //Client  以下函数是客户端调用  static emReturnType Logon(LOGONINFO* pLogonInfo);//函数登录服务器。pLogonInfo:登录信息,详细见P2PHeaderDef.h->LOGONINFO  static emReturnType Logout();//登出服务器  static emReturnType ConnectAnchor(CLIENTINFO* pClientInfo);//连接主播,该函数是用户调用  static emReturnType SendP2PMSG(CLIENTINFO* pClientInfo, char* pszMsg, int nMsgLen);//发送P2P消息,pClientInfo,要发送的客户信息,如果是用户,则pClientI
    2022-02-03 19:54:38下载
    积分:1
  • 最新的迅雷下载工具 具有快速下载 直接收索等强大的功能
    最新的迅雷下载工具 具有快速下载 直接收索等强大的功能-Xunlei download the latest tools with fast download cable, such as direct admission powerful
    2022-04-22 03:32:00下载
    积分:1
  • Detect Windows own firewall whether to activate the category. Use COM, study ref...
    检测Windows自带的防火墙是否启动类。用到COM,学习参考用-Detect Windows own firewall whether to activate the category. Use COM, study reference
    2022-01-28 00:14:18下载
    积分:1
  • 获取计算机子网掩码的计算机网络采用VC++,与大家共享
    获取计算机子网掩码的计算机网络编程采用VC++,与大家共享-access to the computer network subnet mask of computer programming using VC, and share
    2022-05-16 02:11:47下载
    积分:1
  • 各种网络序的源码,来自一本网络书的光盘资料
    各种网络程序的源码,来自一本网络编程书的光盘资料-Procedures for a variety of network source, from a network programming book, CD-ROM
    2022-03-02 03:43:26下载
    积分:1
  • 访问邻居邻居
    获取网上邻居【Neighbor】 lIP地址和计算机名之间的转换【Neighbor】 l映射网络驱动器【Neighbor】 l消息发送程序Net Send【Neighbor】 l获取局域网内其他计算机的信息【NeighborInfo】-access online neighbor Neighbor-- lIP address and computer name conversion between the [ Neighbor-- l mapping network drives Neighbor-- l messaging procedures Net Send Neighbor-- l LAN access to other computer information NeighborInfo
    2022-06-12 23:53:48下载
    积分:1
  • jiemiansheji zhuanzai
    优秀界面设计 转载他人的 需要的话自己下-jiemiansheji zhuanzai
    2022-03-24 04:51:52下载
    积分:1
  • 禁用网卡以及恢复的序:可以模拟硬件管理器中的停用和启用功能(仅对网卡)...
    禁用网卡以及恢复的程序:可以模拟硬件管理器中的停用和启用功能(仅对网卡)-banned card and recovery procedures : can simulate hardware management for the suspension and the opening function (LAN only)
    2022-06-17 15:51:52下载
    积分:1
  • 自我相关范畴的协议
    winsock相关自作实现类-protocols of the relevant category of self-realization
    2022-03-18 14:17:56下载
    积分:1
  • 696516资源总数
  • 106409会员总数
  • 8今日下载