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
基于IPv6的多播通信
Client://客户端#include#include#include#include//#include"tpipv6.h"#include#pragmacomment(lib,"
ws2_32.lib
Tody Guo
·
2020-08-20 18:07
C/C++
Winsock异步方式编程实例 原创
winsock异步编程的例子//这个服务监听1000端口,可以使用telnetlocalhost1000进行测试,最大允许20个连接#include#include#pragmacomment(lib,"
WS2
nightwend
·
2020-08-20 06:29
network
windows套接字编程
Windows系统提供的套接字函数通常封装在Ws2_32.dll动态链接库中,其头文件Winsock2.h提供了套接字函数的原型,库文件
Ws2_32.lib
提供了Ws2_32.dll动态链接库的输出节。
zbxzc
·
2020-08-20 01:30
网络编程
蓝牙设备与PC socket通讯
3.运行一下程序#include"stdafx.h"#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#pragmacomment(lib,
liuyan20092009
·
2020-08-20 00:11
windows/VC
蓝牙相关
Windows系统和Linux系统的Socket通信解决方案或问题
系统,语言:C语言服务端系统:CentOS系统(LInux系统),语言:C语言虚拟机:VMWare10windows系统的客户端:#include#include#pragmacomment(lib,"
ws2
任薛纪
·
2020-08-19 06:00
C/C++
for
Linux
windows与linux socket程序的不同
netinet/in.h(大部分都在这儿),unistd.h(close函数在这儿),sys/socket.h(在in.h里已经包含了,可以省了)2)初始化windows下需要用WSAStartup启动
Ws2
ThinkSoftStudio
·
2020-08-19 04:30
网络通讯
socket编程十五:如何让服务器端持续监听客户端的请求?
服务器端server.cpp:#include#include#pragmacomment(lib,"
ws2_32.lib
")//加载ws2_32.dll#define
挺的博客
·
2020-08-19 01:01
物联网
TCP Socket编程(非阻塞模式)(C++)
//#include"stdafx.h"#include#include#pragmacomment(lib,"
ws2_32.lib
")#defineBUF_SIZE64int_tmain(intargc
WLFF_csdn
·
2020-08-19 01:57
网络编程
C++
SYN攻击源程序
#defineDEBUGMSG#include#include#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#defineerronGetLastError
lidatou
·
2020-08-18 20:14
病毒
TCP/UDP Socket编程步骤
要链接一个
ws2_32.lib
的库文件。服务器端编程的步骤:1:加载套接字库,创建套接字(WSAStartup()/s
aizquan
·
2020-08-18 19:33
C++ 初识window下 IOCP网络模式
window下IOCP网络模式#defineWIN32_LEAN_AND_MEAN#include#include#pragmacomment(lib,"
ws2_32.lib
")#include#pragmacomment
时间溜走了
·
2020-08-18 15:56
c++
C++网络通信 Socket
目录服务端:客户端:服务端:#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#define_WINSOCK_DEPRECATED_NO_WARNINGS1usingnamespacestd
神码堂
·
2020-08-18 15:20
C++
c++
htonl htons ntohs ntohl的区别
将多字节整数类型的数据,从主机的字节顺序转化为网络字节顺序#include//Linux#include//windows#pragmacomment(lib,"
ws2_32.lib
")//windows
nmglwy
·
2020-08-18 08:23
Linux-C函数
windows下使用Curl
1.把前面编译出来的头文件夹和lib文件夹(libcurl_a.lib)复制到项目所在路径2.引用头文件:#include"curl/curl.h"3.lib引用:Crypt32.lib;
ws2_32.
小小的熊OnlyOne
·
2020-08-18 06:38
语言无关
完成端口的一个简单封装类
///Iocp头文件#pragmaonce#include#pragmacomment(lib,"
ws2_32.lib
")constintOP_READ=0;constintOP_WRITE=1;constintOP_ACCEPT
yahle
·
2020-08-17 17:29
IP 地址转换 inet_addr() inet_ntoa() 笔记
inet_addr()inet_ntoa()及其自实现函数self_inet_ntoa()和self_inet_addr()笔记#include#include#pragmacomment(lib,"
WS2
shentan_zone
·
2020-08-17 15:39
C++后台开发
inet_addr函数原理
#include#pragmacomment(lib,"
ws2_32.lib
")#includeusingnamespacestd;/*unsignedlongInet_addr(constchar*cp
qq_41648636
·
2020-08-17 14:38
socket编程之inet_addr和inet_ntoa
字符串形式的IP地址#define_WINSOCK_DEPRECATED_NO_WARNINGS#include#includeusingnamespacestd;#pragmacomment(lib,"
ws2
luck_horse
·
2020-08-17 13:37
AIR720H
网络服务器编程——事件选择模型
//事件选择TCP服务器端#include#include#pragmacomment(lib,"
Ws2_32.lib
BingLZg
·
2020-08-17 11:51
网络编程:UDP编程
服务器端server.cpp:客户端client.cpp:基于UDP编程(服务器端持续监听客户端的请求)服务器端server.cpp:#include#include#pragmacomment(lib,"
ws2
小猿面试
·
2020-08-17 06:20
网络编程
网络编程:TCP传输
server.cpp:客户端代码client.cpp:TCP传输1.TCP实现文件传输服务器端server.cpp:#include#include#include#pragmacomment(lib,"
ws2
小猿面试
·
2020-08-17 06:20
网络编程
纯C++实现的HTTP请求封装(POST/GET)
实现如下:#include"HttpConnect.h"#ifdefWIN32#pragmacomment(lib,"
ws2_32.lib
")#endifHttpConnect::HttpConnect
阳光柠檬_
·
2020-08-17 05:49
C++
Linux
C
拦截网络数据包(SOCK_RAW)
#include#include#includeusingnamespacestd;#pragmacomment(lib,"
ws2_32.lib
")#defineBUFFER_SIZE1024#defineSIO_RCVALL_WSAIOW
dege169
·
2020-08-17 05:46
第二章 Winsock编程接口(1)
#include#pragmacomment(lib,"
WS2_32.lib
")winsock库的加载与卸载:加载:intWSAStartup(WORDwVersionRequested,LPWSADATAlpWSAData
wwwwwwolf
·
2020-08-17 04:01
socket:WinSock 编程 示范
WinSock编程的第一步就是加载ws2_32.dll,然后调用WSAStartup()函数进行初始化,并指明要使用的版本号#include#include#pragmacomment(lib,"
ws2
-兮
·
2020-08-17 01:49
网络编程
网络编程
socket
获取本机主机名称和IP地址
平台:VS2017#include"pch.h"#define_CRT_SECURE_NO_WARNINGS#include#include#include#pragmacomment(lib,"
Ws2
luck_horse
·
2020-08-17 01:43
VS2017
dsf
namespace std;//首先声明了一个回调函数,也就是钩子函数BOOL WINAPI HandlerRoutine(DWORD dwCtrlType);#pragma comment(lib,"
ws2
cpongo1
·
2020-08-16 23:11
c++socket 心跳机制代码
server.h:#pragmaonce#include#include#include#pragmacomment(lib,“
ws2_32.lib
”)classserver{public:server
yang_0103
·
2020-08-16 22:23
c++
TCP Socket编程 C/C++实现 (Windows Platform SDK)
以前一直用OO语言,现在用C语言写着玩,思想上有点转不过来弯,o(∩_∩)o...Server:#pragmacomment(lib,"
ws2_32.lib
")#include#includevoidmain
nyzhl
·
2020-08-16 19:50
NetWorks
C
/
C++
TCP Socket编程 C/C 实现 (Windows Platform SDK)
Server端:#pragmacomment(lib,"
ws2_32.lib
")#include#includevoidmain(){//版本协商WORDwVersionRequested;WSADATAwsaData
hancker
·
2020-08-16 19:08
C&C++
SDK之SOCKET服务端
#include#include#include#pragmacomment(lib,"
ws2_32.lib
")/*常量*/#defineDEFAULT_PORT"1000"//端口#defineMAX_REQUEST1024
fsjaky
·
2020-08-16 19:15
SDK
windows下网络编程(一)——SDK socket
客户端代码#include#pragmacomment(lib,"
ws2_32.lib
")int_tmain(intargc,_TCHAR*argv[]){WSADATAwsaData;SOCKETclient
缘梦逍遥
·
2020-08-16 18:54
SDK之socket 通信 客户端
//cilent.csocket通信客户端#include//#include#include"WINSOCK2.H"#pragmacomment(lib,"
ws2_32.lib
")/*常量*/#defineRECV_BUFFER_SIZE8192
fsjaky
·
2020-08-16 17:44
socket 编程5 client端加入select
server.cpp#defineWIN32_LEAN_AND_MEAN#include#include#include#include#include#pragmacomment(lib,"
ws2_32
sandyznb
·
2020-08-16 17:26
socket
服务器
c++
C++ UDP C/S 简单封装
Server端类定义:#include#pragmacomment(lib,"
ws2_32.lib
")classUDPServer{private:WSADATAwsaData;SOCKETserverSocket
远行的风
·
2020-08-16 01:59
C++
计算机网络
Programming
程序设计
基于TCP的C/S模式模板(Winsock实现)
服务器程序server.cpp:#define_CRT_SECURE_NO_WARNINGS#include#include#include#include#pragmacomment(lib,"
ws2
csdn_gddf102384398
·
2020-08-15 22:57
计算机网络
Windows
C++
C语言
C++基于socket的多线程的群聊程序(TCP)
服务器端服务器端头文件(server.h)#ifndefSERVER_H#defineSERVER_H#include#pragmacomment(lib,"
ws2_32.lib
")classServer
X3I__x3i
·
2020-08-15 22:19
socket
通过socket对系统端口进行扫描
////#include#include#include#pragmacomment(lib,"
Ws2_32.lib
")//目标地址#defineIP"172.16.180.38"//线程个数#defineTHREADCOUNT60DWORDWINAPIThreadProc
采蘑菇的空空酱
·
2020-08-15 02:20
网络攻防
IcmpSendEcho 实现 ping
#include#pragmacomment(lib,"
Ws2_32.lib
")#include#pragmacomment(lib,"Iphlpapi.lib")//InitializeWinsockstruct_tagWinSockInit_t
zgl7903
·
2020-08-14 05:31
网络/安全
windows socket编程 server client
socketwindows//server.cpp#include#include#define_WINSOCK_DEPRECATED_NO_WARNINGS#pragmacomment(lib,"
ws2
当浮一大白<
·
2020-08-12 20:00
windows socket编程 server client
socketwindows//server.cpp#include#include#define_WINSOCK_DEPRECATED_NO_WARNINGS#pragmacomment(lib,"
ws2
当浮一大白<
·
2020-08-12 20:00
windows sockets TCP基础函数及范例
准备工作:1导入头文件winsock2.h2链接
ws2_32.lib
库3调用WSAStartup(WORDwVersionRequested,LPWSADATAlpwsaData);说明:1成功时返回0
zebra_zzh
·
2020-08-12 12:32
vc++/c++/mfc学习
使用C语言创建套接字及连接
上代码:服务端#define_WINSOCK_DEPRECATED_NO_WARNINGS#include#include#pragmacomment(lib,"
ws2_32.lib
")//加载ws2_
安全狮
·
2020-08-11 17:11
C/C++系列
在windows下用C语言写socket通讯实例
_LEAN_AND_MEAN#include#include#include#include#include//NeedtolinkwithWs2_32.lib#pragmacomment(lib,"
Ws2
possibleonline
·
2020-08-11 17:31
C/C++
PC端(c++)和android端数据通信(文本传输)
#include#include#pragmacomment(lib,"
ws2_32.lib
")usingnamespacestd;intmain(){WORDw_rep=MAKEWORD(2,2);WSADATAwsadata
chen493072
·
2020-08-11 16:22
android开发
Windows下C语言的Socket编程例子(TCP和UDP)
程序例子,开发环境是vc6:首先是TCPserver端:[cpp]viewplaincopy#include"stdafx.h"#include#include#pragmacomment(lib,"
ws2
ccfxue
·
2020-08-11 16:50
MFC
vc++、vs2015下的vc++ udp 客户端程序,client
下面是udpclient主程序,udp_control.cpp#include"udp_control.h"#include#include#pragmacomment(lib,"
ws2_32.lib
"
xxy@
·
2020-08-11 00:56
vs2015
vc++
udp
client
udp客户端
1.1 利用Socket实现双机通信
环境Windows10操作系统、DevC++对于使用MinGW的devc++,是没有
ws2_32.lib
这个库文件,它对应的库文件是libws2_32.a;可以在项目属性里的链接器添加这个库文件,或者在工
dxt_snow
·
2020-08-10 19:50
计算机网络
Windows Socket
#include#include#include#pragmacomment(lib,"
ws2_32.lib
")intmain(){WSADATAwsaData={0};intiResult=0;WSAStartup
乌魔多
·
2020-08-10 18:37
Winodws
原生socket,实现简单HTPP请求
#include#include#include#pragmacomment(lib,"
ws2_32.lib
")intinitWin32Net(){WSADATAwsaData;intres=WSAStartup
_离子
·
2020-08-10 18:41
网络
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
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
其他