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
Socket编程-回声客户端
运行结果(客户端):源代码:服务器端:#include#include#pragmacomment(lib,"
ws2_32.lib
")//加载ws2_32.dllconstintBUFSIZE=100;
辣条不爱辣
·
2018-12-28 14:53
网络编程
Socket编程-服务器向客户端发送数据
运行结果:客户端:源代码:服务器端:#include#include#pragmacomment(lib,"
ws2_32.lib
")//加载ws
辣条不爱辣
·
2018-12-28 13:28
网络编程
Windows10 VS2017 C++ Server Socket简单服务器端与客户端
服务端:#include"pch.h"#include#include#include#defineCONNECT_NUM_MAX10#pragmacomment(lib,"
ws2_32.lib
")usingnamespacestd
大囚长
·
2018-12-24 19:31
编程人生
C语言网络编程代码
首先project->settings->link在object/librarymodules中加入
ws2_32.lib
文件在项目上点右键->属性->配置属性->链接器->输入->附加依赖项加入ws2_
29DCH
·
2018-10-14 14:32
C语言知识
网络编程
[C++] Windows 下 Socket 局域网通信实用模板
2018.9.24PracticalSocket.hpp//2018.9.24#include#include#pragmacomment(lib,"
ws2_32.lib
")intContractHost
GGN_2015
·
2018-09-24 22:45
其他
[C++] Windows 下 Socket 局域网通信实用模板
2018.9.24PracticalSocket.hpp//2018.9.24#include#include#pragmacomment(lib,"
ws2_32.lib
")intContractHost
GGN_2015
·
2018-09-24 22:45
其他
TCP双向通信
socket通信(服务器端)#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#includeDWORDWINAPIclientThread
小世界_5193
·
2018-09-20 17:23
TCP双向通信
socket通信(服务器端)#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#includeDWORDWINAPIclientThread
小世界_5193
·
2018-09-20 17:23
vs C++实现Socket通信、添加
ws2_32.lib
动态链接库
【前言】Windows下的socket程序依赖Winsock.dll或ws2_32.dll,必须提前加载。动态链接库有两种加载方式:隐式加载和显示加载。请查看:动态链接库DLL的加载(此处是引用别人的文章)。本文是在vs下添加ws2_32.dll库。1.在vs下添加ws2_32.dll库右键【项目】-【属性】-【链接器】-【输入】-【附加依赖项】,进行编辑,添加ws2_32.dll库,去掉从父级或
_fingers_dancer
·
2018-08-24 12:53
读取网页内容
#define _WINSOCK_DEPRECATED_NO_WARNINGS//在stdafx.h中添加#pragma comment(lib, "
ws2_32.lib
")void ReadPage
Chinayu2014
·
2018-08-20 18:50
读取
网页内容
MFC
windows UDP简单实例
直接上例子代码client:#include#include#pragmacomment(lib,"
ws2_32.lib
")#defineBUF_SIZE1024#definePORT_9411intmain
csdn菜逼
·
2018-08-12 18:41
C++
C/C++实现HTTPS通信(抓取百度页面)
include#include#pragmacomment(lib,"libeay32.lib")#pragmacomment(lib,"ssleay32.lib")#pragmacomment(lib,"
ws2
ZRXSLYG
·
2018-08-03 22:11
OPENSSL
HTTPS
Windows下C语言的Socket编程例子(TCP和UDP)
server端:1#include"stdafx.h"2#include3#include45#pragmacomment(lib,"
ws2_32.lib
")67intmain(intargc,char
狂客
·
2018-07-31 19:00
windows环境下用c++实现socket编程
转载自这里 博客源是这个服务端#define_WINSOCK_DEPRECATED_NO_WARNINGS#include#include#pragmacomment(lib,"
ws2_32.lib
"
Ananbei
·
2018-07-19 16:53
C/C++
socket
C++判断主机是否处于联网状态
#include#include#pragmacomment(lib,"
ws2_32.lib
")#defineLEN1024//接收数据的大小usingnamespacestd;intmain(){//
JPDAYSUNDAY
·
2018-06-29 09:04
图形学实验 区域填充 OpenGL实现
//#include"stdafx.h"#defineGLUT_DISABLE_ATEXIT_HACK#pragmacomment(lib,"
Ws2_32.lib
")#includ
不是培训笔记了
·
2018-06-06 15:37
同学问的题目
C++发邮件简单实例详解
本程序不发送邮件附件,发附件的实例:C++实现含附件的邮件发送功能#include#include#include//适用平台Windowsusingnamespacestd;#pragmacomment(lib,"
ws2
ims
·
2018-05-28 09:12
win32 socket 随机获取一个可用的端口号
//#include"stdafx.h"#include#include#pragmacomment(lib,"
Ws2_32.lib
")boolgetAvaliablePort(unsignedshort
CoderAldrich
·
2018-05-21 18:57
网络编程
网络编程示例
服务端:#include #include #include #pragma comment(lib,"
ws2_32.lib
")#include SOCKET sckt;struct sockaddr_in
ZENAOUS
·
2018-04-22 23:28
网络编程
基于完成端口模型的服务器实践
服务端#include"winsock2.h"#pragmacomment(lib,"
ws2_32.lib
")#includeusingnamespacestd;#defineMAXDATASIZE200typedefstruct
Datura_Metel
·
2018-04-22 11:51
网络通信
基于重叠I/O的服务器实践(完成例程)
服务端#include"winsock2.h"#pragmacomment(lib,"
ws2_32.lib
")#includeusingnamespacestd;#defineMAXDATASIZE200typedefstruct
Datura_Metel
·
2018-04-20 13:43
网络通信
【9】cpp_redis RapidJson redis (C++对象利用Rapidjson序列化到redis与反序列化)
include#include"JsonObject.h"#include"Person.h"#ifdef_WIN32#include#endif/*_WIN32*/#pragmacomment(lib,"
ws2
CalmReason
·
2018-04-19 01:01
Redis
cpp_redis
cpp_redis
【7】cpp_redis hash容器 增删改查(避免死锁的解决方法) 【最后更新于2018-05-05】
include#include"TestRedis.h"usingnamespacestd;#ifdef_WIN32#include#endif/*_WIN32*/#pragmacomment(lib,"
ws2
CalmReason
·
2018-04-14 23:09
Redis
cpp_redis
cpp_redis
基于select模型的异步模式的服务器实践
在vs2015下调试#include"winsock2.h"#pragmacomment(lib,"
ws2_32.lib
")#includeusingnamespacestd;#defineDATA_BUFSIZE200typedefstruct_SOCKET_INFORMATION
Datura_Metel
·
2018-04-13 15:33
网络通信
UDP之发送数据和接受数据
UDP:接收数据#include"winsock2.h"#pragmacomment(lib,"
ws2_32.lib
")#includeusingnamespacestd;#defineBUF_SIZE200intmain
Datura_Metel
·
2018-04-11 21:39
网络通信
TCP通信之服务端和客户端通信实现
服务端程序:#include"winsock2.h"#pragmacomment(lib,"
ws2_32.lib
")#includeusingnamespacestd;#defineBUF_SIZE120intmain
Datura_Metel
·
2018-04-11 17:05
网络通信
windows C++ UDP 多播
//#include#include#includeusingnamespacestd;#pragmacomment(lib,“
ws2_32.lib
”)c
anton8801
·
2018-04-10 10:04
WSAStartup( )详解
当然了,socket编程要调用各种socket函数,但是需要库
Ws2_32.lib
和头文件Winsock2.h,这里的WSAStartup就是为了向操作系统说明,我们要用哪个库文
CrazyJavaPerson
·
2018-04-08 14:06
Windows Socket API函数的用法及理解 (二)
#include"winsock2.h"#pragmacomment(lib,"
ws2_32.lib
")#includeintmain(){WSADATAwsadata;if(WSAStartup(MAKEWORD
Datura_Metel
·
2018-04-08 13:45
网络通信
Windows Sockets初始化
#include"winsock2.h"#pragmacomment(lib,"
ws2_32.lib
")#include"stdlib.h"intmain(){WSADATAwsadata;//WSAStartup
Datura_Metel
·
2018-04-07 19:28
网络通信
VS在windows进行网络开发UDP(一)
代码如下:#include#includeusingnamespacestd;#pragmacomment(lib,"
WS2_32.lib
")intmain(){WSADATAdata;//定义结构体变量
肥宅_Sean
·
2018-04-05 17:41
C++
网络编程
socket聊天室
article/details/58001960服务端#define_WINSOCK_DEPRECATED_NO_WARNINGS#include#include#pragmacomment(lib,"
ws2
kwansy
·
2018-03-25 11:49
C/C++
Socket 客户端与服务端通信【心跳机制+断线重连】
//Server.h#pragmaonce#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")usingnamespacestd
SailorPan
·
2018-03-15 15:03
Scoket
Opencv 实现简单UDP局域网实时摄像头传输 (一)
发送端:sender.cpp#include"stdafx.h"#include"WinSock2.h"#include#pragmacomment(lib,"
ws2_32.lib
")usingnamespacestd
Embattle
·
2018-03-11 18:21
Opencv
网络编程
socket基于window基本使用
server端#pragmaonce#ifndef__SOCKET_H__#define__SOCKET_H__#include#include#pragmacomment(lib,"
ws2_32.lib
Wite_Chen
·
2018-01-20 15:52
C++
windows
socket
C++ Socket编程 实现服务端与客户端的通讯(Windows)
编程实现服务端与客户端的通讯简单补充:进行WINSOCK编程时,需要引入两个库文件:WINSOCK.H(这个是WINSOCKAPI的头文件,WIN2K以上支持WINSOCK2,所以可以用WINSOCK2.H)
Ws2
Oliver_xpl
·
2018-01-19 15:52
笔记
网络协议 -- UDP协议(2)单播
#include #pragmacomment(lib,"
Ws2_32.lib
") voidS
china_jeffery
·
2017-12-29 00:00
☆
网络编程
网络协议
windows socket编程入门示例2
//tcpSocketServer.cpp#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#defineIP_ADDRESS"127.0.0.1
龚慧林
·
2017-11-22 12:50
c/c++
windows
网络
windows socket编程入门示例1
///tcpSocketClient.cpp#include#include#pragmacomment(lib,"
ws2_32.lib
")#defineIP_ADDRESS"127.0.0.1"#definePORT5678intmain
龚慧林
·
2017-11-21 20:00
c/c++
windows
网络
Windows C语言 Socket编程 server端(服务器)--初级(简单版)
与本章配套的还有另外一篇文章“WindowsC语言Socket编程client端(客户端)–初级(简单版)”#include#include#pragmacomment(lib,"
ws2_32.lib
"
零一匠
·
2017-11-04 15:11
C/C++
winsock 简单的通信
头文件#include#include#include#include#include#pragmacomment(lib,"
WS2_32.lib
")源代码//初始化WinsockWSADATAwsaData
fengyuzaitu
·
2017-10-23 16:53
winsock
Boost
c语言获取目录下的所有文件名
findnext函数进行遍历查找;小程序下载:#include#include#include#include#include#include#include//#pragmacomment(lib,"
ws2
enjoy_learn
·
2017-10-22 23:45
C
windows 环境下c++ socket编程
服务器端#define_WINSOCK_DEPRECATED_NO_WARNINGS#include#include#include#pragmacomment(lib,"
ws2_32.lib
")//加载
github_38838414
·
2017-10-21 14:11
c++
C语言动手实现一个自己的HttP服务
archive/2013/05/04/3059282.html并在作者的基础上进行了一定的修改最后在自己的机子上成功运行客户端的程序:#include#include#pragmacomment(lib,"
ws2
IT_NEU_Lee
·
2017-10-19 21:56
网络编程
关于WinSocket的学习
服务器部分代码:#include#include#pragmacomment(lib,"
ws2_32.lib
")intmain(){/*------------定义变量------------*/charsendBuff
Jornathon
·
2017-09-24 18:24
封装一个简单的Windows UDP socket 网络类
#ifndefwin_udp_Socke_h__#definewin_udp_Socke_h__#include#include#include#include#pragmacomment(lib,"
WS2
chinabinlang
·
2017-09-05 11:16
网络
Socket网络通信
用Socket实现聊天系统,前提加入加入静态库:#pragmacomment(lib,"
ws2_32.lib
")1.加载套接字库,确定socket的版本;WSAStartup():初始化sock套接字2
Queen_wings
·
2017-09-02 14:14
socket C/C++编程(7)server端读取client端键入的数据
include#else#include#include#include#include#include#endif#includeintmain(intargc,char*argv[]){//初始化”
ws2
林微
·
2017-08-16 09:20
计算机网络
超好用的网络抓包框架(Windivert)之三(实例一)
并且添加WinDivert头文件2.添加以下代码:#pragmacomment(lib,"winDivert.lib")#pragmacomment(lib,"
WS2_32.lib
")3.在WinDivert
Caicaptain
·
2017-08-01 21:21
#
C++
MFC Socket网络编程之TCP客户端
如果想要做一个和Socket有关的MFC软件,在创建基本对话框时需要点击Windows套接字;然后方可进行Socket有关操作;如果没有点,可以在头文件之前写上#pragmacomment(lib,"
ws2
Bugggget
·
2017-07-23 17:51
C和C++
Socket
多线程
上一页
6
7
8
9
10
11
12
13
下一页
按字母分类:
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
其他