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
C++ Socket 一个服务器 多个客户端 (阻塞式)
include#include#include#include#include#include#include#includeusingnamespacestd;#pragmacomment(lib,"
ws2
我本亲狂
·
2020-07-16 04:26
C++
HTTPProxy服务器
defineHTTPPROXYSERVER#pragmaonce#include#include#include#include#include#include#pragmacomment(lib,"
Ws2
125096
·
2020-07-16 04:48
网络编程
C++ 简单的 Tcp 实现[socket] 客户端与客户端通信
//#include"stdafx.h"#include"winsock2.h"#pragmacomment(lib,"
ws2_32.lib
")#includeusingnamespacestd;int
-droidcoffee-
·
2020-07-16 00:41
基于滑动窗口协议写的程序(UDP实现)
socket_udp.h#include#include#include#include#include//#include"winsock2.h"#pragmacomment(lib,"
WS2_32.
yelloworange
·
2020-07-15 23:50
计算机网络协议
利用原始套接字(sock_raw)编写的抓取ip数据包的小程序
#include#include#include#include#pragmacomment(lib,"
Ws2_32.lib
")#defineMAX_SIZE65535#defineIO_RCVALL_WSAIOW
fengzhishang2019
·
2020-07-15 22:09
网络程序设计
C++构建TCP客户端
//TCP#include#include#pragmacomment(lib,"
ws2_32.lib
")//初始化Socket资源if(WSAStartup(MAKEWORD(2,2),&wsa)!
Mmagic1
·
2020-07-15 18:01
C++
TCP
【网络编程】之十三、ping程序实现
使用原始套接字:SOCK_RAW需要ICMP代码如下:#include#includeusingnamespacestd;#pragmacomment(lib,"
WS2_32.lib
")typedefstructicmp_hdr
weixin_30734435
·
2020-07-15 03:32
java
htonl、htons头文件
wsock32.lib")来自:https://zhidao.baidu.com/question/166926781.html(亲测,只用如下的库也可行)#include#pragmacomment(lib,"
ws2
超自然祈祷
·
2020-07-14 22:54
C艹】从C语言
WinSock之服务查询
协议的所有服务#define_WINSOCK_DEPRECATED_NO_WARNINGS#include"WinSock2.h"#include"iostream"#pragmacomment(lib,"
ws2
The_Moth
·
2020-07-14 05:15
WinSock
Ping程序实现
模型与ICP/IP模型对比:Ping通过发送ICMP回显请求来确定过一个主机是否存在:#include"stdafx.h"#include"Winsock2.h"#pragmacomment(lib,"
ws2
~HAO~
·
2020-07-14 04:02
TCP
windows socket编程:select 例子
//socket服务端#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#defineINT_SERVER_PORT6002
菜鸟dc
·
2020-07-13 19:29
socket
C++ 简单的UDP客户端与服务端
define__C_UDP_OBJECT_H__#defineOS_PLATFORM_WIN#include#ifdefOS_PLATFORM_WIN#include#pragmacomment(lib,"
ws2
weixin_30445169
·
2020-07-13 17:37
C++ socket编程 实现服务端与客户端的通讯
//#include"winsock2.h"#pragmacomment(lib,"
ws2_32.lib
")#includeusingnamespacestd;intmain(intargc,char*
luckyone906
·
2020-07-13 15:37
以太网通信
windows下udp连接&解决丢包现象
服务端:#pragmacomment(lib,"
ws2_32.lib
")int_tmain(intargc,_TCHAR*argv[]){WSADATAwsaData;interror=WSAStartup
sky_tree_
·
2020-07-13 13:05
[转]简单的发包程序练习多线程
文章作者:xuanliang[E.S.T]信息来源:邪恶八进制#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")SOCKETg_Sock
nonsenser
·
2020-07-13 08:31
C++实现简单http服务器
只要懂socket套接字,http请求和响应的格式,就行了#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")usingnamespacestd
gdut17
·
2020-07-13 03:21
C++
C++解析http爬取图片
/*0921*/#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")usingnamespacestd;classChttp{
gdut17
·
2020-07-13 03:21
C++
大端小端
#include#include#include#includeusingnamespacestd;#pragmacomment(lib,"
ws2_32.lib
")voidmain(){//大端小端char
gdut17
·
2020-07-13 03:21
C
Windows下C语言的Socket编程例子(TCP和UDP)
//client#include#include#include"opencv2/opencv.hpp"#pragmacomment(lib,"
ws2_32.lib
")usingnamespacecv;
LIZhang2016
·
2020-07-13 02:56
c
图像处理opencv
Qt通过域名获取ip
//不加上会报错#pragmacomment(lib,"
ws2_32.lib
")#pragmacomment(lib,"
ws2_32.lib
")#include"WinSock.h"#include"inaddr.h"QStringtcpClientIp
Tohnanye
·
2020-07-13 01:26
纯C++实现的HTTP请求封装(POST/GET)
实现如下:#include"HttpConnect.h"#ifdefWIN32#pragmacomment(lib,"
ws2_32.lib
")#endifHttpConnect::HttpConnect
weixin_33811539
·
2020-07-12 07:33
【转】Windows下C语言的Socket编程例子(TCP和UDP)
程序例子,开发环境是vc6:首先是TCPserver端:[cpp]viewplaincopy#include"stdafx.h"#include#include#pragmacomment(lib,"
ws2
moonk-z
·
2020-07-12 02:15
C
C++获取计算机名和 IP
转自:C++获取本地计算机主机名和IP#include#include"winsock2.h"usingnamespacestd;#pragmacomment(lib,"
ws2_32.lib
")voidmain
Neverland_LY
·
2020-07-11 17:43
编程语言
-
C++
【网络编程】之十三、ping程序实现
使用原始套接字:SOCK_RAW需要ICMP代码如下:[cpp]viewplaincopy#include#includeusingnamespacestd;#pragmacomment(lib,"
WS2
H-KING
·
2020-07-11 11:24
网络编程深入研究
网络编程
写自己的软件1:比特币价格提醒
作为界面,用qtcreator作为开发工具,appserver用来模拟各个网站,ui文件需要保存01172、httpget获取各API结果windows下面的要加这个#pragmacomment(lib,"
ws2
braveyly
·
2020-07-11 03:14
Windows下C语言的Socket编程例子(TCP和UDP)
server端:1#include"stdafx.h"2#include3#include45#pragmacomment(lib,"
ws2_32.lib
")67intmain(intargc,char
Monte-Carlo
·
2020-07-10 17:49
通信编程
socket
非阻塞式TCP 服务器/客户端 基础
----------------------------------#define_WINSOCK_DEPRECATED_NO_WARNINGS#include#pragmacomment(lib,"
ws2
yulinxx
·
2020-07-10 14:27
C++
#pragma comment和#pragma 预处理指令详解
例如,#pragmacomment(lib,"
Ws2_32.lib
")表示链接
Ws2_32.lib
这个库。
wfq0987
·
2020-07-10 11:30
VC/MFC
C语言
VC下SOCKET通信,设置非阻塞模式,添加心跳检查
/*VC下SOCKET通信,设置非阻塞模式,添加心跳检查*/#include#pragmacomment(lib,"
ws2_32.lib
")/*mstcpip.h*/structtcp_keepalive
sunjianjun1981
·
2020-07-10 02:09
VC应用
windows 实现UDP广播获取设备
//#include"stdafx.h"#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#include#include#
jota
·
2020-07-10 01:36
C++
C++网络编程服务器select模型(参考)
#include#include#includeusingnamespacestd;#pragmacomment(lib,"
Ws2_32.lib
")constintnPort=10000;constintbuf_len
除妖人
·
2020-07-10 01:45
C++
网络编程
windows socket编程:select 用法 例子
http://blog.csdn.net/zjsiva/article/details/5895087服务器端:#include#include#include#pragmacomment(lib,"
ws2
feier7501
·
2020-07-09 15:11
VS2010
C语言
网络
纯C编写HTTP Client
纯C编写HTTPClient本文使用纯C在Windows下编写一个简单的HTTPClient,废话不说,直接代码:#include#include#pragmacomment(lib,"
ws2_32.lib
小小罗斯
·
2020-07-09 13:26
HTTP
VC++多线程tcp connect扫描
#include#include#include#pragmacomment(lib,"
ws2_32.lib
")char*host;intthreadnum,maxthread,totalport;longnowport
尹成
·
2020-07-09 03:05
VC++编程技术
VisualC++信息安全编程
c++中蓝牙编程的库类
#include#pragmacomment(lib,"
ws2_32.lib
")#include//forBluetoothFind
麟凤轩
·
2020-07-09 02:49
【蓝牙】
C++tcp服务器和跨平台客户端
define_WINSOCK_DEPRECATED_NO_WARNINGS#include#include#include#include#include#include#pragmacomment(lib,"
ws2
biu~biuo
·
2020-07-08 19:00
第三讲:TCPServer和TCPClient的代码及解析
tcpServer.cpp的代码//作者:刘日辉//时间:2019-5-9//用途:TCP服务器端代码#include"stdafx.h"#include#include#pragmacomment(lib,"
ws2
Msro
·
2020-07-08 17:02
C/S模型之UDP协议
#include"stdafx.h"#include#include#pragmacomment(lib,"
WS2_32.lib
")//服务器端int_tmain(intargc,_TCHAR
weixin_30379973
·
2020-07-08 13:36
c++非阻塞客户端/服务器TCP连接 socket编程代码示例
include"tcpServer.h"#include#include#include#include#include//网络库#include//多线程//#include//加载lib#pragmacomment(lib,"
ws2
pikechuz
·
2020-07-08 12:02
c++
RTP打包H264 NALDecoder
define_CRT_SECURE_NO_WARNINGS#include#include#include#include#include#include"h264.h"#pragmacomment(lib,"
ws2
nuptxiaoli0518
·
2020-07-08 11:10
在Windows中利用socket进行一次、循环传输数据
运行程序的时候,一般都是先运行server端,后运行client端一次传输server端#include#include#pragmacomment(lib,"
ws2_32.lib
")//加载ws2_32
独坐寒江边
·
2020-07-08 11:50
C++
基于非阻塞socket的多线程服务器的实现------一个服务器如何与多个客户端进行通信?
我们首先来看服务端(涉及非阻塞socket和多线程):#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#defineBUF_SIZE100sockaddr_inaddrClient
涛歌依旧
·
2020-07-08 06:42
S1:
C/C++
s2:
软件进阶
s2:
网络编程
s2:
嵌入式
s2:
后台开发
计算机网络之GBN协议
include"stdafx.h"//创建VS项目包含的预编译头文件#include#include#include#include#include#include#include#pragmacomment(lib,"
ws2
love_green
·
2020-07-08 05:11
计算机网络
c++
win32 socket的一个简单的例子
在visualc++里建两个win32控制台工程,分别编译下面的服务端和客户端服务端:#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#defineNO_FLAGS_SET0
qq506124204
·
2020-07-07 19:18
C/C++
C++ TCP网络编程 send 和recv分析【测试记录】
客户端程序:#include#include#pragmacomment(lib,"
ws2_32.lib
")#include#includeintmain(){//初始化WindowsSocketApplicationWORDsockVersion
xiyangxiaoguo
·
2020-07-07 16:52
C++
网络
socket
Windows下C语言实现原始socket抓包
原始Socket抓包0x01.源码:#include#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#pragmacomment
Spwpun
·
2020-07-07 14:41
网络编程
利用WinSocket发数据(二)
接上文,此代码是服务器段接受程序:#include"stdafx.h"#include#include#include#include#include#pragmacomment(lib,"
ws2_32
chenqiangdage
·
2020-07-07 05:26
win32
c++
技术
winsocket 之收发数据出问题
服务器端:#include#include#include#definePORT5010#defineMSGSIZE1024intBytesSum=0;#pragmacomment(lib,"
ws2_32
xiaolomg
·
2020-07-07 04:47
网络编程
一些源码
#include#include#include#include#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")usingnamespacestd
abc1104332737
·
2020-07-07 02:51
TCP send函数会阻塞吗?
很多学员在使用send函数的时候,发现send总是能正常返回,看起来好像是“非阻塞”,其实它是阻塞的,以下代码为证:服务端:#include#include#pragmacomment(lib,"
ws2
程序员攻略
·
2020-07-06 22:28
网络
上一页
3
4
5
6
7
8
9
10
下一页
按字母分类:
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
其他