E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
ws2_32.lib
udp多人聊天室 1-server n-client
server:#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#defineDEFAULT_PORT5051/
朝向高处的旅途
·
2020-07-06 12:27
tcp
ip
简单实现TCP客户端与服务器之间的通信(软件:VS2013)
新建两个控制台程序,分别命名为TCPServer_demo,TCPClient_demo.TCPServer_demo#include#include#include#pragmacomment(lib,"
ws2
Young Hang
·
2020-07-06 11:55
网络编程
windows网络编程(八)——重叠I/O+多线程实现简单的聊天(windows服务器端 windows客户端)
define_CRT_SECURE_NO_WARNINGS#include#include#include#include#include#defineBUF_SIZE1000#defineNAME_SIZE20#pragmacomment(lib,"
ws2
Van_Le
·
2020-07-06 08:19
网络编程
windows环境下C语言socket编程
首先socket通信的步骤:图一socket通信步骤(转载)图二三次握手协议(转载)图三三次握手协议(转载)代码服务器端#include#include#pragmacomment(lib,"
ws2_32
weixin_41953890
·
2020-07-06 03:37
socket编程
WinSocket实现的服务端与客户端的通信
服务端主动关闭与客户端的连接,测试服务端发起的closesocket操作服务端的accept、recv都是阻塞的#include#include#include#include#pragmacomment(lib,"
ws2
撒一片暖阳
·
2020-07-05 20:33
UDP通信的一些笔记
下面部分是C++写的一个UDP的接收方#pragmacomment(lib,"
Ws2_32.lib
")///这个很重要//Linkwithws2_32.lib#include#include#includeintmain
u012925231
·
2020-07-05 17:10
工作上的学习
tcp/ip 全双工会话(windows)
1.服务器端#include"stdafx.h"#includeusingnamespacestd;#include#pragmacomment(lib,"
WS2_32.lib
")#defineMAX_BUFFER256
Jack_Lpz
·
2020-07-05 16:54
服务器编程
C++实现聊天程序(QQ类型)
服务端#include#include#pragmacomment(lib,"
ws2_32.lib
")usingnamespacestd;voidinitialization();intmain(){/
shaohuiyang
·
2020-07-05 11:41
C
聊天程序
QQ
多线程UDP通信(可以自己给自己发)
disable:4996)#include//多线程编程usingnamespacestd;#include#include//_beginthread需要的头文件即多线程#pragmacomment(lib,"
ws2
Soft_Time
·
2020-07-05 03:01
网络协议
udptunnel
windows:xp下编译出udptunnel,想配置成服务端,看它的readme上写着SSH可以连通……nmake的时候要先修改一下makefile.win32里的
ws2_32.lib
的系统路径!
keivin2006
·
2020-07-04 20:31
Windows下C语言的Socket编程例子(TCP和UDP)
所以想写学习笔记,这是一个简单的Socket程序例子,开发环境是vc6:首先是TCPserver端:#include"stdafx.h"#include#include#pragmacomment(lib,"
ws2
iteye_2829
·
2020-07-04 19:41
基于UDP实现文件传输功能
define_CRT_SECURE_NO_WARNINGS#define_WINSOCK_DEPRECATED_NO_WARNINGS#include#include#include#pragmacomment(lib,"
ws2
IT越野者
·
2020-07-04 18:49
Socket编程
计算机网络
UDP实现类似qq聊天功能代码(利用多线程可完全实现,这里不是)
#server#include#include#include#pragmacomment(lib,"
ws2_32.lib
")usingnamespacestd;voidRec(SOCKETrecvd,
小傅老师
·
2020-07-04 17:03
嵌入式系统大项目——UDP通信的框架
workstation.cpp#include#include#include#includeusingnamespacestd;#pragmacomment(lib,“
ws2_32.lib
”)defineBUFFER_SIZE1024
高鹏413413
·
2020-07-04 16:59
嵌入式项目最终版——workstation.cpp
include"ByteQueue.h"#include"NioService_workstation.h"#include"trans.h"usingnamespacestd;#pragmacomment(lib,“
ws2
高鹏413413
·
2020-07-04 16:59
西文图书管理系统(C++、线程、网络socket、MYSQL)
服务器端:#include#include#include#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#pragmacomment
枪杆子里面出哑炮
·
2020-07-04 15:10
C++
西文图书管理系统
C++
网络编程
MYSQL
线程
用socket实现基于udp的聊天
该程序比较简单,只能是一方发数据,另一方收数据server.cpp/*服务器端*/#include#includeusingnamespacestd;#pragmacomment(lib,"
ws2_32
chenbiyun940419
·
2020-07-04 13:26
C++
使用C++调用百度OCR的示例源码
#include#include#include#include#include"ocr\ocr.h"//OCR#include#include#include#pragmacomment(lib,"
ws2
5yefeng
·
2020-07-04 11:50
百度OCR的调用
open62541 中 opc ua服务器创建 使用
opcua基于open62541基础使用#include#include"open62541/open62541.h"#include#include#include#pragmacomment(lib,"
ws2
晓星♡
·
2020-07-04 10:47
C++
VS
TCP/IP基础知识复习
/*2018-11-1409:06:39基本的准备工作,需要注意的点在windows环境下*/头文件:winsock2.h链接库:
ws2_32.lib
预处理器加上下面这个_WINSOCK_DEPRECATED_NO_WARNINGSserver
JamesWu9527
·
2020-07-04 09:25
Windows网络编程基础
SOCKET------10.15socke最基础的单张照片传输
Server#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#defineMAXLINE4096usingnamespacestd;intmain
Kano365
·
2020-07-04 06:03
C++ Socket C/S ,实现客户端,服务器端断开重连
#include"stdafx.h"#include#include#include#include#include#pragmacomment(lib,"
Ws2_32.lib
")usingnamespacestd
Entre_Lee
·
2020-07-04 05:28
C++
windows网络——发送http请求
#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#defineDEFAULT_BUFFER2048#defineDEFAULT_MESSAGE"GET
muyanchen-zen
·
2020-07-02 06:01
网络
正反向连接获得SHELL
#include#include#pragmacomment(lib,"
ws2_32.lib
")SOCKETlocals;STARTUPINFOsi;PROCESS_INFORMATIONpi;structsockaddr_ins_sin
kakaxia6337
·
2020-07-02 06:00
关于windows下,基于socket的tcp服务器端的学习笔记
#include#include#include//windowssocket套节字编程#pragmacomment(lib,“
ws2_32.lib
”)//windowssocket32动态库没有64位
jbb123456789jbb
·
2020-07-02 05:09
网络
纯C++实现的HTTP请求(POST/GET)
实现如下:#include"HttpConnect.h"#ifdefWIN32#pragmacomment(lib,"
ws2_32.lib
")#endifHttpConnect::HttpConn
Gondon
·
2020-07-01 19:07
用C++程序代码书写爬虫软件
#include#include#pragmacomment(lib,"
ws2_32.lib
")intgetRand(intn){returnrand()%n+1;}intmain(){intj=1;for
N1314N
·
2020-07-01 12:08
用C++程序代码书写爬虫软件
DNS域名解析C代码
我们来看一下C语言代码#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")//定义DNS数据IDtagnumqnumanuma1numa2charDNS_DATA
乘简
·
2020-06-30 19:08
网络
Windows下C++服务端和客户端Socket通信简单代码
//#include"stdafx.h"#include"winsock2.h"#include#pragmacomment(lib,"
ws2_32.lib
")usingnamespacestd;BOOLRecvLine
zqf_office
·
2020-06-30 19:31
技术资料
Visual C++网络编程学习(1)-UDP阻塞模型
代码如下:服务器代码:#include#include#pragmacomment(lib,"
Ws2_32.lib
")usingnamespacestd;#defineSERVEPORT10000
何当共剪西窗竹
·
2020-06-29 07:52
Visual
C++
客户端
//#include"stdafx.h"#include#pragmacomment(lib,"
Ws2_32.lib
")int_tmain(intargc,_TCHAR*argv[]){WSADATAwsa
最怕认真
·
2020-06-28 16:14
C语言实现Windows下获取IP和MAC地址。
1#include2#include3#include4#include5#include6#include7#include8#pragmacomment(lib,"
ws2_32.lib
")9#pragmacomment
weixin_34128839
·
2020-06-28 12:31
windows tcp server select
#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")usingnamespacestd;fd_setsocketSet;SOCKETsockSrv
weixin_30551947
·
2020-06-27 21:29
Socket UDP远程传输图片
Window:客户端代码#include#include#include#includeusingnamespacestd;#pragmacomment(lib,"
ws2_32.lib
")#definePort50001
wangs11678
·
2020-06-27 13:49
Socket 发送接收图像
客户端代码:#include#include#include#pragmacomment(lib,"
ws2_32.lib
")usingnamespacestd;size_tgetSize(){FILE*
wengtengfan
·
2020-06-27 08:11
C++编程
C++ 实现简单Tcp服务器端 Ipv6
include//winsock的头文件#include//sockaddr_in6的头文件#includeusingnamespacestd;//指定动态库的lib文件#pragmacomment(lib,"
ws2
乌班图ysm
·
2020-06-27 03:00
#
2.6
网络编程
C++ 实现简单Tcp服务器端 -- 多线程方式(包含客户端)
windows平台服务器:#include#include#includeusingnamespacestd;#pragmacomment(lib,"
ws2_32.lib
")//一个简单的聊天程序针对多客户端
乌班图ysm
·
2020-06-27 03:00
#
2.6
网络编程
C++ 实现简单Tcp服务器端 -- Select方式 (包含客户端)
windows平台下实现Tcp聊天服务器端,Select方式main.cpp#include#include#includeusingnamespacestd;#pragmacomment(lib,"
Ws2
乌班图ysm
·
2020-06-27 03:00
#
2.6
网络编程
C++ 实现简单Tcp客户端 Ipv6
include//winsock的头文件#include//sockaddr_in6的头文件#includeusingnamespacestd;//指定动态库的lib文件#pragmacomment(lib,"
ws2
乌班图ysm
·
2020-06-27 03:59
#
2.6
网络编程
计算机网络系统学习精华总结(三):传输层——4(套接字编程实战,全双工通信)
服务端代码:#include#include#include//WSAADATA关键字#include#pragmacomment(lib,"
ws2_32.lib
")#pragmawarning(disable
Tracker-for-1995
·
2020-06-26 20:00
计算机网络
c++
socket
多线程
网络
INADDR_ANY有什么用?
我的网络为:192.168.1.102.于是就有下面的程序:服务端:#include#include//winsock接口#pragmacomment(lib,"
ws2_32.lib
")//winsock
涛歌依旧
·
2020-06-26 14:57
S1:
C/C++
s2:
软件进阶
s2:
网络编程
C++服务器重叠I/O+事件通告模型
#include#include#include#includeusingnamespacestd;#pragmacomment(lib,"
Ws2_32.lib
")#pragmacomment(lib,
除妖人
·
2020-06-26 05:44
C++
网络编程
服务器
Winsock
Winsock调用来建立通信IPv4寻址字节排序创建套接字面向连接的通信在Winsock中,建立通信的步骤:服务器:客户机:套接字状态Winsock编译采用了WINSOCK.H的应用程序时,需要链接到
WS2
curve927
·
2020-06-25 10:38
网络
C++ Http下载文件
HTTPDownloadToFile//特别注意:引用头文件和lib库不然会报错和编译不过#include#include#pragmacomment(lib,"urlmon.lib")#pragmacomment(lib,"
ws2
心流剑
·
2020-06-25 08:52
c++
工具
接收ARP包
#include#include#include#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#pragmacomment
丶Smallning
·
2020-06-24 23:01
解析IP分组
#include#include#include#pragmacomment(lib,"
ws2_32.lib
")//定义IP头部结构typedefstruct_IP_HEADER{union{BYTEVersion
丶Smallning
·
2020-06-24 23:01
重叠IO
#include#include#definePORT6000#defineMSGSIZE1024#pragmacomment(lib,"
Ws2_32.lib
")BOOLWinSockInit(){WSADATAdata
Lige_goes_on
·
2020-06-24 17:57
Windows编程
伪造IP发送数据(UDP)
#include#include#include#include#include#include"protoinfo.h"#pragmacomment(lib,"
ws2_32.lib
")usingnamespacestd
lycommand
·
2020-06-24 10:49
C++
Windows下编程抓包分析TCP的三次握手和四次挥手
程序代码如下:#include#include"stdio.h"#pragmacomment(lib,"
ws2_32.lib
")intmain(intargc,char*argv[]){WORDsockVersion
聆听--风雨
·
2020-06-24 09:01
计算机网络
【winsock2】windows网络编程 之 TCP/IP Client
图1服务器程序与客户端程序基本流程图2服务器与客户端通信图还是按照以下几步来完成客户端与服务器间的通信:1、加载和初始化套接字#include#pragmacomment(lib,"
ws2_32.lib
ieczw
·
2020-06-23 17:39
Windows编程
上一页
4
5
6
7
8
9
10
11
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他