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
tcp socket客户端和服务端示例分享
以下是tcpsocket客户端和服务端源码,代码简单大家参考使用吧TcpServer复制代码代码如下:#include#include#pragmacomment(lib,"
ws2_32.lib
")intmain
·
2014-03-11 14:56
udp socket客户端和udp服务端程序示例分享
UdpSocket复制代码代码如下:#include#include#pragmacomment(lib,"
ws2_32.lib
")intmain(){//initialsocketlibraryWORDwVerisonRequested
·
2014-03-11 14:26
vc++实现的tcp socket客户端和服务端示例
TcpServer复制代码代码如下:#include#include#pragmacomment(lib,"
ws2_32.lib
")intmain(){//initialsocketlibraryWORDwVerisonRequested
·
2014-03-04 16:00
MFC网络编程TCP/IP的服务器与客户端代码
一.1TCP/IP服务器代码:#pragmacomment(lib,"
ws2_32.lib
")//使用WinSock库中的函数需要加载这个动态链接库。
yangbingzhou
·
2014-03-01 21:00
tcpip
C++解析JSON进行网络传输--一个通过JSON方式的socket传输
1、客户端:#include"json//json.h" #include #pragmacomment(lib,"
WS2_32.lib
") #pragmacomment(lib,"json_vc71
liwuji930726
·
2014-02-25 21:00
C++
json
socket
服务器
UDP
C++ 操作Redis 简单封装类
/hiredis/hiredis.h"#pragmawarning(disable:4996)#pragmacomment(lib,"
ws2_32.lib
")classRedis{public:
CodingSir
·
2014-02-22 09:02
【winsock2】windows网络编程 之 TCP/IP Client
图1服务器程序与客户端程序基本流程图2服务器与客户端通信图还是按照以下几步来完成客户端与服务器间的通信:1、加载和初始化套接字#include#pragmacomment(lib,"
ws2_32.lib
ieczw
·
2014-02-19 19:00
Socket网络编程
【winsock2】windows网络编程 之 TCP/IP Server
我们需要头文件和库:#include//WindowsSocket Version2.2#pragmacomment(lib,"
ws2_32.lib
")//WindowsSocketVe
ieczw
·
2014-02-19 18:00
windows
Socket网络编程
写自己的软件1:比特币价格提醒
用qtcreator作为开发工具,appserver用来模拟各个网站,ui文件需要保存 01172、httpget获取各API结果windows下面的要加这个#pragmacomment(lib,"
ws2
braveyly
·
2014-01-18 15:00
Windows下C语言的Socket编程例子(TCP和UDP)
churi/archive/2013/02/27/2935427.html一、TCP服务器端#include"stdafx.h" #include #include #pragmacomment(lib,"
ws2
u013011270
·
2014-01-09 15:00
windows
socket
网络
网络编程(TCP & SOCKET)
( 面向连接 ) 的 socket 编程(切记要添加库文件:project->setting->link->object/library modules中添加"
ws2
巴尾的兔兔帅
·
2014-01-06 16:00
socket
select 模型例子代码
pcsuite/article/details/6191133C++代码、客户端代码 #include"stdafx.h" #include #include #pragmacomment(lib,"
ws2
dai_jing
·
2014-01-06 11:00
select
模型
IOCP 简单服务器和客户端
//#include"stdafx.h" #include #include #pragmacomment(lib,"
ws2_32.lib
") #include voidmain() { WORDwVersionRequested
dai_jing
·
2014-01-02 14:00
iocp
TCP-socket
//#include"stdafx.h"#pragmacomment(lib,"
ws2_32.lib
")voidmain(intargc,char*argv[]){//加载套接字库WORDwVersionRequested
ahuang1900
·
2013-12-24 19:10
计算机网络与多线程
网络编程之简单网络通信
// #include"stdafx.h" #include #pragmacomment(lib,"
Ws2_32.lib
") int_tmain(intargc,_TCHAR*argv[]) {
w00w12l
·
2013-12-23 21:00
使用BSD socket编写Windows版的网络程序
我们首先要引用和
ws2_32.lib
然后,执行WSAStartup#ifdef_WIN32 WORDwVersionRequested; WSADATAwsaData; wVersionRequested
xiaobin_HLJ80
·
2013-12-13 00:00
VC++ UDP网络控制台程序
1、服务端代码//UDPServer.cpp#include #include #defineSERVERPORT6000//服务端口号 #pragmacomment(lib,"
WS2_32.lib
ccf19881030
·
2013-11-27 19:00
WinSock初学入门:实现TCP服务器
3、在头文件中加入:#pragmacomment(lib,"
ws2_32.lib
")。(三)主程序:主要是启动服务器线程并等待用
kartik
·
2013-11-23 20:37
服务器
客户端
TCP
网络编程
WinSock初学入门:实现TCP服务器
3、在头文件中加入:#pragmacomment(lib,"
ws2_32.lib
")。(三)主程序:主要是启动服务器线程并等待用
kartik
·
2013-11-23 20:37
tcp
服务器
客户端
winsock
基于UDT connect连接通信以及文件传输--服务端
与服务端相对应的客户端在另一篇博文中 SERVER端#include #include"udt.h" #include #pragmacomment(lib,"
ws2_32.lib
")
pingD
·
2013-11-15 16:00
文件传输
udt
recvmsg
sendmsg
IOCP底层,支持超过15000个连接
#pragmacomment(lib,"
ws2_32.lib
") #include #include //////////////////////////////////////////////////
educast
·
2013-11-08 16:00
C++ Server and Client
==================Server==================#include#include#pragmacomment(lib,"
ws2_32.lib
")intmain(void
一朵时光_bobo
·
2013-11-06 16:16
socket
C++ Server and Client
================== Server ================== #include#include#pragmacomment(lib,"
ws2_32.lib
")intmain
c0611
·
2013-11-06 16:00
socket
Windows下C语言的Socket编程例子(TCP和UDP)
server端:1#include"stdafx.h"2#include3#include45#pragmacomment(lib,"
ws2_32.lib
")67intmain(intargc,char
冷月宫主
·
2013-11-02 20:09
C++
Windows下C语言的Socket编程例子(TCP和UDP)
server端:1#include"stdafx.h" 2#include 3#include 4 5#pragmacomment(lib,"
ws2_32.lib
") 6 7intmain(intargc
e_wsq
·
2013-11-02 20:00
关于undefined reference to `WSASocketA@24'问题的解决
WinGW平台编译, 示例server端: #include#include#include#includeusingnamespacestd;#pragmacomment(lib,"
ws2
longlongxy
·
2013-10-31 17:00
eclipse
C++
WSASocketA24
简单 TCP UDP server client
UDP:server#include"stdafx.h"#include#include#pragmacomment(lib,"
WS2_32.lib
")voidmain(){WORDwVersionRequested
e_wsq
·
2013-10-29 21:00
vc 获取计算机名 和 ip 地址
#include #include #pragmacomment(lib,"
ws2_32.lib
")voidmain() { WSADATAwsadata; WORDdwVersionRequested
daofengdeba
·
2013-10-29 10:00
基于TCP的socket编程网络掉线重连
要链接一个
ws2_32.lib
的库文件。 服务器端编程的步骤: 1:加载套接字库,创建套接字(WSAStartup()
e_wsq
·
2013-10-24 01:00
c++实现socket通信测试
// #include"stdafx.h" #include #include #pragmacomment(lib,"
ws2_32.lib
") #defineMAXBUFLEN256 #definePORT44965
e_wsq
·
2013-10-23 20:00
snmp test
//#include"stdafx.h"#include//#include#include#pragmacomment(lib,"
Ws2_32.lib
")#defineMAXLENT1000TCHAR
hejian1106
·
2013-10-22 17:31
C++编写发送自定义TCP数据包程序
#include#include#include#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#defineIPVER4
冷月宫主
·
2013-10-16 03:04
C++
C++编写发送自定义TCP数据包程序
#include#include#include#include#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#defineIPVER4
e_wsq
·
2013-10-16 03:00
Socket Server 代码, Window/Linux
Windows下一、代码#include #include usingnamespacestd; #pragmacomment(lib,"
Ws2_32.lib
") voidmain() { WORDwVersionRequested
kanguolaikanguolaik
·
2013-09-16 17:00
VC简单操作mysql
#include #include #include #pragmacomment(lib,"
ws2_32.lib
") #pragmacomment(lib,"libmysql.lib") usingnamespacestd
lgh1992314
·
2013-09-12 19:00
client输入内容发送到server端输出
01#include02#include03#include04#pragmacomment(lib,"
ws2_32.lib
")05usingnamespacestd;06intmain()07{08
Howard_Liu1314
·
2013-09-02 16:00
windows socket编程:select 用法 例子
://blog.csdn.net/zjsiva/article/details/5895087服务器端:#include #include #include #pragmacomment(lib,"
ws2
feier7501
·
2013-09-01 22:00
Win32多线程套接字(服务端)
需要在连接器的输入选项中加入
WS2_32.lib
HeLinHang
·
2013-08-31 15:00
Win32
IPV6 UDP编程实例 & IPV6 TCP编程实例
UdpServer.cpp#include #include #include #pragmacomment(lib,"
ws2_32.lib
") intmain(intargc,char**argv
a771948524
·
2013-08-30 22:00
HTTP下载(2)
#include#include#include#pragmacomment(lib,"
ws2_32.lib
")#defineBUFLENGHT1024#defineNAME_LENGHT50charfname
l376365333
·
2013-08-24 17:00
使用mysql c的问题
errorC2146:syntaxerror:missing';'beforeidentifier'fd' 大抵就是my_socket没有类型,在包含mysql.h之前包含winsock2.h(其他平台还没试)然后链接
ws2
yuxiaohen
·
2013-08-07 20:00
Windows Socket编程之HelloWorld
程序设计简图 代码实现服务器端代码(操作系统XP编译器VS2010)main.cpp#include #include #pragmacomment(lib,"
ws2_32.lib
") boolStartUp
dreamcs
·
2013-07-24 20:00
【网络编程】之十三、ping程序实现
使用原始套接字:SOCK_RAW需要ICMP代码如下:#include #include usingnamespacestd; #pragmacomment(lib,"
WS2_32.lib
") typedefstructicmp_hdr
Jofranks
·
2013-07-24 10:00
Openssl建立SSL双向认证连接源码
include"string.h"#include"openssl/ssl.h"#include"openssl/bio.h"#include"openssl/err.h"#pragmacomment(lib,"
WS2
ly131420
·
2013-07-22 10:00
Winsock入门编程示例代码
Winsock入门,socket编程,网络 客户端代码:[cpp] viewplaincopy#include #include #include #pragma comment(lib,"
Ws2
AAA20090987
·
2013-07-22 09:00
【网络编程】之十二、wsaeventselect+线程池 服务器实现
#include #include usingnamespacestd; #pragmacomment(lib,"
WS2_32.lib
") typedefstruct_SOCKET_OBJ{ SOCKETs
Jofranks
·
2013-07-20 16:00
c++网络编程
Client.cpp #include"stdafx.h" #include #include #include using namespacestd; #pragmacomment(lib,"
ws2
a191030148
·
2013-07-19 19:00
Windows网络编程入门(一)
#include #include #include /*要使用winsockAPI,就要包含
ws2_32.lib
这个库*/ #pragmacomment(lib,"
ws2_32.lib
")
nyc1991
·
2013-07-16 08:03
windows
tcp
服务器
网络编程
Windows网络编程入门(一)
#include#include#include/*要使用winsockAPI,就要包含
ws2_32.lib
这个库*/#pragmacomment(lib,"
ws2_32.lib
")intmain(intargc
nyc1991
·
2013-07-16 08:03
服务器
Windows
tcp
VC++
不能将参数 1 从“const char [8]”转换为“LPCWSTR”
VS2010:#include #include #defineMasterPort999//定义监听端口999 #pragmacomment(lib,"
ws2_32.lib
") intmain() {
feier7501
·
2013-07-13 16:00
上一页
11
12
13
14
15
16
17
18
下一页
按字母分类:
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
其他