![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
网络编程
图控大叔
这个作者很懒,什么都没留下…
展开
-
C#网络编程:通过IP地址获取主机名称
IPHostEntry hostInfo; string IP = "";//填入的IP string HostName = ""; try { hostInfo= Dns.Resolve(IP); } catch (Exception ex) { ...原创 2021-08-25 12:27:31 · 703 阅读 · 0 评论 -
QT编程:TCP客户端、服务器最简模板
完整下载链接:gitee https://gitee.com/HGSheng/qt-tcp-single-point-class 客户端 #include "my_client.h" #include "ui_my_client.h" #include <QHostAddress> my_client::my_client(QWidget *parent) : QMainWindow(parent) , ui(new Ui::my_client) { ui-&..原创 2020-10-28 13:34:48 · 209 阅读 · 0 评论 -
【代码备份】通过TCP进行文件传输
tcp_server.c #include <stdio.h> #include <sys/types.h> /* See NOTES */ #include <sys/socket.h> #include <netinet/in.h> #include <netinet/ip.h> #include <arpa/inet.h> #include <strings.h> #include <unistd.h> #原创 2020-08-11 12:13:41 · 168 阅读 · 0 评论