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
【winsock2】windows网络编程 之 TCP/IP Server
我们需要头文件和库:#include//WindowsSocketVersion2.2#pragmacomment(lib,"
ws2_32.lib
")//WindowsSocketVer
ieczw
·
2020-06-23 17:39
Windows编程
Socket网络编程
windows
windows网络模型之重叠IO(完成例程)的使用
#include#include#definePORT5150#defineMSGSIZE1024#pragmacomment(lib,“
ws2_32.lib
”)typedefstruct{WSAOVERLAPPEDoverlap
htpidk
·
2020-06-23 15:27
tracert 实现伪代码
#include#include#includeusingnamespacestd;#pragmacomment(lib,"
Ws2_32.lib
")//IP报头typedefstruct{unsignedcharhdr_len
keaidelele
·
2020-06-23 15:04
使用librtmp推流/拉流
include"librtmp/rtmp_sys.h"#include"librtmp/log.h"#pragmacomment(lib,"librtmp.lib")#pragmacomment(lib,"
WS2
gongluck93
·
2020-06-23 11:15
Media
sockaddr_in结构封装类
defined(_SOCKET_H)#define_SOCKET_H#include#pragmacomment(lib,"
ws2_32.lib
")classCSockAddr:publicsockaddr_in
大数据专家傅一航
·
2020-06-23 09:02
网络开发
socket
vc++
byte
network
string
class
用Socket实现基于TCP的聊天
程序比较简单,在一个时刻只能有端能发数据,另一方接受数据server.cpp/*服务器的函数*/#include#includeusingnamespacestd;#pragmacomment(lib,"
ws2
chenbiyun940419
·
2020-06-22 21:22
C++
Winsock入门编程示例代码
Winsock入门,socket编程,网络客户端代码:#include#include#include#pragmacomment(lib,"
Ws2_32.lib
")#defineBUFFER_SIZE50
ZhengZhiRen
·
2020-06-22 10:31
C++编程发送ARP报文
include"stdafx.h"#include#include#include#include#pragmacomment(lib,"iphlpapi.lib")#pragmacomment(lib,"
ws2
Z527516197
·
2020-06-22 09:51
初始化Windows Sockets
代码来源:《Windows网络编程》(罗莉琴,詹祖桥主编)(如造成任何不便,请联系我删除)#include"stdafx.h"#include#pragmacomment(lib,"
ws2_32.lib
WLFF_csdn
·
2020-06-22 07:47
网络编程
简易TCP客户端和服务端的实现
实现代码如下:#include#defineWIN32_LEAN_AND_MEAN#include#include#pragmacomment(lib,"
ws2_32.lib
")usingname
SlowIsFastLemon
·
2020-06-22 05:39
所学所思所想
基于重叠I/O模型的服务器实践(以事件驱动)
服务器端#include"winsock2.h"#pragmacomment(lib,"
ws2_32.lib
")#includeusingnamespacestd;#defineMAXDATASIZE200intmain
Datura_Metel
·
2020-06-21 19:27
网络通信
基于重叠I/O的服务器实践(完成例程)
服务端#include"winsock2.h"#pragmacomment(lib,"
ws2_32.lib
")#includeusingnamespacestd;#defineMAXDATASIZE200typedefstruct
Datura_Metel
·
2020-06-21 19:27
网络通信
Socket(发送,接收)
send.cpp:#include#include#include#pragmacomment(lib,"
ws2_32.lib
")intmain(){unsignedlongip;ip=inet_addr
weixin_34106122
·
2020-06-21 11:39
IOCP小猪案例修改
#include#include#include#include#include#includeusingnamespacestd;#define_AFXDLL#pragmacomment(lib,"
Ws2
北影拼搏
·
2020-05-13 14:56
C++实现简单的UDP服务端与flag参数解析
写的时候感觉有很多魔数,到msdn上查了一些资料,做一个简单记录,如有错误疏漏,欢迎指正先贴代码1#include2#include34#include56#include78#pragmacomment(lib,"
ws2
TssiNG-Z
·
2020-04-17 11:00
C++实现TCP Server 多线程同时连接多个客户端
include#include#include#defineMAXCLIENTNUM100//服务端连接客户端个数限制#includeusingnamespacestd;#pragmacomment(lib,"
ws2
qingquanzhou
·
2020-04-16 12:41
通讯技术
socket
多线程
Windows下C语言的Socket编程例子(TCP和UDP)
仅为方便查看,搬运一下,也可看原文一、TCPserver端:#include"stdafx.h"#include#include#pragmacomment(lib,"
ws2_32.lib
")intmain
老魏
·
2020-03-31 06:02
SOCKET建立步骤
C语言粗体字公共部分斜体字为服务器其余为客户端服务器客户端#include#include#pragmacomment(lib,"
WS2_32.lib
")intmain(intargc,char*argv
dovlie
·
2020-02-14 14:51
C++ socket 学习--服务端与客户端通信
服务端#include#include#include#include#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#include"Server.h"usingnamespacestd
胸前小红花
·
2020-02-05 14:00
c++ socket
//server#include#include#pragmacomment(lib,"
ws2_32.lib
")intmain(intargc,char*argv[]){//初始化WSAWORDsockVersion
书搞进脑袋-创新-创造
·
2020-01-09 13:00
c++ iocp
//IOCP_TCPIP_Socket_Server.cpp#include#include#include#includeusingnamespacestd;#pragmacomment(lib,"
Ws2
书搞进脑袋-创新-创造
·
2020-01-09 13:00
实现:远程加载shellcode实现分离免杀
客户端:#include#include#include#pragmacomment(lib,"
ws2_32.lib
")//添加ws2_32动态库#pragmawarning(disable:4996)
zpchcbd
·
2020-01-09 12:00
关于从网页上下载数据
include910#pragmacomment(lib,"libcurl.lib")11#pragmacomment(lib,"wldap32.lib")12#pragmacomment(lib,"
ws2
Mouming_Ning
·
2019-12-26 09:00
C++ 判断IP是否可以ping通
1//需要的头文件2#include3#include"iphlpapi.h"45#pragmacomment(lib,"Iphlpapi.lib")6#pragmacomment(lib,"
Ws2_32
Freedom_lyx
·
2019-12-25 10:00
socket,实现服务器和客户端对话
服务器:#define_CRT_SECURE_NO_WARNINGS#include#include#include//网络库用2.2版本目前系统的最高版本#pragmacomment(lib,"
Ws2
__阿阿阿怪
·
2019-12-16 23:00
socket实现同局域网下简易聊天工具
服务器#include#include#include#include#pragmacomment(lib,"
WS2_32.lib
")intmain(){WSADATAwsaData;WORDsockVersion
dovlie
·
2019-12-11 22:26
Windows下C语言实现 hello/hi 多线程网络聊天程序以及代码分析
Windows10软件:CodeBlocks17.12二、完整代码server:1#include2#include3#include4#include5#include67#pragmacomment("
ws2
毛无用
·
2019-12-08 13:00
C语言下hello/hi 网络聊天程序编程及WinSocket分析
网络程序编程1、服务端1sever.c2#include3#include4#include5#include6#pragmawarning(disable:4996)7#pragmacomment(lib,"
ws2
yusi007
·
2019-12-08 11:00
C++ Socket C/S ,实现客户端、服务器端断开重连
//#include"stdafx.h"#include#include#include#include#include#pragmacomment(lib,"
Ws2_32.lib
")usingnamespacestd
chjxidian
·
2019-11-28 09:48
c/c++实现获取域名的IP地址
//#include"stdafx.h"#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")intmain(intargc,char
·
2019-09-25 03:24
C语言UDP传输系统源码
本文实例为大家分享了C语言UDP传输系统的具体代码,供大家参考,具体内容如下/*加载库文件*/#pragmacomment(lib,"
ws2_32.lib
")/*加载头文件*/#include#include
·
2019-09-24 16:34
C++实现获取IP、子网掩码、网关、DNS等本机网络参数的方法
本文以一个完整实例形式介绍了C++实现获取IP、子网掩码、网关、DNS等本机网络参数的方法,供大家参考,具体的完整实例如下:#pragmacomment(lib,"
Ws2_32.lib
")#include
·
2019-09-23 18:17
C++连接mysql的方法(直接调用C-API)
#include"stdafx.h"#include#include#include"mysql.h"//#pragmacomment(lib,"
ws2_32.lib
")#pragmacomment(lib
·
2019-09-22 22:07
C++ 中 socket编程实例详解
要链接一个
ws2_32.lib
的库文件。服务器端编程的步骤:1:加载套接字库,创建套接字(WSAStartup()/socket())
·
2019-09-22 22:37
计算子网包含多少ip(windows网络编程学习笔记)
即可计算出子网地址: =&2.将子网掩码按位非,然后在ip地址按位或运算得出广播地址: =|(~)二、具体实现:#include#include#include#pragmacomment(lib,"
ws2
Pig raiser
·
2019-09-19 23:49
网络编程
C语言IOCP
C语言的IOCPexample#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#definePort5000#defineMax_Buffer_Size4096
View85
·
2019-09-10 13:00
C++实现windows环境下Socket TCP文件传输
C++实现windows环境下SocketTCP文件传输server端:#include#include#include#include#include#pragmacomment(lib,"
ws2_32
martian665
·
2019-07-02 17:42
C++
windows环境
Socket
TCP文件传输
C++
Socket
如何让服务器端持续监听客户端的请求?
服务器端server.cpp: #include#include#pragmacomment(lib,"
ws2_32.lib
")//加载ws2_32.dll#defin
qsir
·
2019-06-27 15:53
分布式
C++实现网络爬虫
代码CHttp.h#include#include#include#include//#include在windows里边usingnamespacestd;#pragmacomment(lib,"
ws2
a_biyudao
·
2019-06-19 18:39
C语言
C++
VC windows 多网卡情况下 获取当前网卡ip地址
参考代码如下记录下以后用得到或者能帮到有需要的朋友#include#include#include#pragmacomment(lib,"
Ws2_32.lib
")#pragmacomment(lib,"
轻风々
·
2019-06-12 16:00
C++如何获取系统信息 C++获取IP地址、硬件信息等
获取系统信息的具体代码,供大家参考,具体内容如下#include#include//该头文件需在windows.h之前#include#include#include#pragmacomment(lib,"
ws2
lynch0571
·
2019-04-26 16:48
c++开启一个简单的http响应
#include#include#pragmacomment(lib,"
ws2_32.lib
)#defineHTTP_PORT8080#defineHTTP_BUFFER_SIZE2048#defineHTTP_FILENAME_LEN256structdoc_type
nit小星星
·
2019-03-21 06:14
C++ Windows高并发服务器与客户端编程
LEAN_AND_MEAN#define_WINSOCK_DEPRECATED_NO_WARNINGS#include#include#include#include#pragmacomment(lib,"
ws2
wwxy261
·
2019-03-13 01:20
算法
C++编写自定义TCP包并发送
/12766443#include"pch.h"#include#include#include#include#include#include#include#pragmacomment(lib,"
ws2
大囚长
·
2019-01-04 10:12
编程人生
局域网下的被动嗅探,一些简单的拆包
include//#include#include#include#include#include#pragmacomment(lib,"Advapi32.lib")#pragmacomment(lib,"
ws2
day0
·
2019-01-01 19:53
Socket编程-基于UDP的回声客户端
运行结果:源代码:服务器端:#include#include#pragmacomment(lib,"
ws2_32.lib
")//加载ws2_32.dllconstintBUFSIZE=100;int
辣条不爱辣
·
2018-12-29 20:09
网络编程
Socket编程-文件传输功能的实现
源代码:服务器端:#include#include#pragmacomment(lib,"
ws2_32.lib
")//加载ws2_32.dllconstintBUFSIZE=1024;intmain()
辣条不爱辣
·
2018-12-29 13:25
网络编程
流式套接字——简单的回射服务器示例
ServerClientServer#defineWIN32_LEAN_AND_MEAN#include#include#include#include#include#pragmacomment(lib,"
Ws2
virtu41
·
2018-12-29 09:37
服务器
网络
Windows
Socket编程-TCP的粘包问题以及数据的无边界性
运行结果:源代码:服务器端:#include#include#include#pragmacomment(lib,"
ws2_32.lib
")//加载ws2_32.dllconstintBUFSI
辣条不爱辣
·
2018-12-28 19:54
网络编程
Socket编程-实现迭代服务器端和客户端
运行结果(客户端):源代码:服务器端:#include#include#pragmacomment(lib,"
ws2_32.lib
")//加载ws2_32.dllconstintBU
辣条不爱辣
·
2018-12-28 18:40
网络编程
上一页
5
6
7
8
9
10
11
12
下一页
按字母分类:
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
其他