CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - socket thread pool
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - socket thread pool - List
[
WinSock-NDIS
]
SocketProgrammingThreadPool
DL : 0
socket & thread pool实例
Date
: 2008-10-13
Size
: 12.41kb
User
:
wing
[
Internet-Network
]
NetLibrary
DL : 0
网络socket,IO,线程池,同步,日志等等, 利用面向对象以及范性特性,为在VC下开发网络应用程序打下坚实的底层基础。-network socket, IO, thread pool, synchronization, log, etc., and the use of object-oriented Fan sexual characteristics, for the VC and development of network applications and lay a solid basis for the bottom.
Date
: 2025-07-04
Size
: 138kb
User
:
詹皇源
[
Internet-Network
]
端口扫描检测程序
DL : 0
* 本程序是一个简单的端口扫描程序,使用TCP SOCKET * 依次试连接目标主机的端口,以此判断端口开放与否。 * 程序设计上使用了线程池,共100个线程。-* The procedure is a simple port scanning procedures, the use of TCP socket* followed test objectives mainframe connectivity ports in order to judge whether to open ports.* Procedures for the use of the design thread pool, a total of 100 threads.
Date
: 2025-07-04
Size
: 1kb
User
:
吕杰
[
Windows Develop
]
sf_200562516252
DL : 0
一个线程驰的类, 下面的是基本的使用方法 struct TSession { SOCKET socket int id } class myIocp:public CIOCP { public: void OnRead(void * p, char * buf, int len) void OnAccept(SOCKET socket) void OnClose(void * p) } void myIocp::OnAccept(SOCKET socket) { TSession *s = new TSession s->socket = socket //这里可以对连接的session进行自己的操作,例如给id找一个唯一的值 SetIoCompletionPort(socket, s) // 使连接socket与一个自定义结构体关联 } void myIocp::OnRead(void * p, char * buf, int len) { TSession *s = (TSession *)p send(s->socket, buf, len, 0) // 这里只是简单的把收到的消息返回给客户端 ... } void myIocp::OnClose(void * p) { delete p } myIoncp iocp main() { ... iocp.listen(4311) // 开始监听网络端口,等待客户端连接 ... }-A class for thread pool,basic usage below: struct TSession { SOCKET socket int id } class myIocp:public CIOCP { public: void OnRead(void* p, char* buf, int len) void OnAccept(SOCKET socket) void OnClose(void* p) } void myIocp::OnAccept(SOCKET socket) { TSession*s = new TSession s->socket = socket //here you can do something about connection session,such as find a unique id. SetIoCompletionPort(socket, s) // make connection socket associate with a custom structure } void myIocp::OnRead(void* p, char* buf, int len) { TSession*s = (TSession*)p send(s->socket, buf, len, 0) // return received message to client void myIocp::OnClose(void* p) { delete p } myIoncp iocp main() { ... iocp.listen(4311) //start listenning net port,wait for client connect.
Date
: 2025-07-04
Size
: 2kb
User
:
boxu
[
Internet-Network
]
BTDemo
DL : 0
delphi实现的bt下载器示例程序,带全部源码和BT协议 包中文件说明: BTDemo.dpr, BTDemoF.pas, BTDemoF.dfm -- 一个简单的bt下载器,支持多个.torrent文件同时下载 btutils.pas -- 核心bt组件 DCP*.pas -- SHA算法源码(复制自DEC组件包) InetUtils.pas -- 提供Internet下载的函数库 SimpleSocks.pas -- socket组件(TCP) SortLists.pas -- 排序的List组件 ThreadTimer.pas -- 定时器与线程池 DelayLists.pas -- 一个延时5秒再释放Object的队列 FastShareMem.pas, MemPools.pas, ShareGlobals.inc -- 由ThreadTimer内部使用 Bit Torrent Specification.htm -- BT协议文档-realized bt download procedures for example, with all source code and BT agreement package documents : BTDemo.dpr, BTDemoF.pas. BTDemoF.dfm-- a simple bt downloader, supports multiple. torrent download documents btutils.pas-- the core components bt DCP*. pas-- SHA algorithm source code (copied from the DEC kits) InetUtils.pas-- providing Internet download library SimpleSocks.pas-- socket Group pieces (TCP) SortLists.pas-- Ranking List components ThreadTime r.pas-- and the timer thread pool DelayLists.pas-- a delay the release of another five seconds O return of the queue FastShareMem.pas, MemPools.pas. ShareGlobals.inc-- ThreadTimer internal use by Tor Bit rent Specification.htm-- BT agreement document
Date
: 2025-07-04
Size
: 57kb
User
:
vvyang
[
Linux-Unix
]
net_oss
DL : 0
这是一个模拟电信计费的程序,非常详细,运用了线程池、消息队列和socket编程等技术。-This is a simulation of telecommunications billing procedures, very detailed, using the thread pool, Message Queue and socket programming technology.
Date
: 2025-07-04
Size
: 45kb
User
:
Benson
[
Internet-Network
]
testThreadPool
DL : 0
线程池,和socket的绑定及数据处理的 入门结构-thread pool, and the socket and data bundled with the portal structure
Date
: 2025-07-04
Size
: 8kb
User
:
加文
[
Other systems
]
Another_eYes_BTDemo
DL : 0
由delphi实现的bt下载器示例程序,带全部源码和BT协议 包中文件说明: BTDemo.dpr, BTDemoF.pas, BTDemoF.dfm -- 一个简单的bt下载器,支持多个.torrent文件同时下载 btutils.pas -- 核心bt组件 DCP*.pas -- SHA算法源码(复制自DEC组件包) InetUtils.pas -- 提供Internet下载的函数库 SimpleSocks.pas -- socket组件(TCP) SortLists.pas -- 排序的List组件 ThreadTimer.pas -- 定时器与线程池 DelayLists.pas -- 一个延时5秒再释放Object的队列 FastShareMem.pas, MemPools.pas, ShareGlobals.inc -- 由ThreadTimer内部使用 Bit Torrent Specification.htm -- BT协议文档-achieved by delphi bt download procedures for example, with all source code and BT agreement package documents : BTDemo.dpr, BTDemoF.pas. BTDemoF.dfm-- a simple device bt download, support a number. torrent download documents btutils.pas-- bt core components of DCP*. pas-- SHA algorithm source code (copy from the DEC kits) InetUtils.pas-- provide Internet download library SimpleSocks.pas-- socket Group pieces (TCP) SortLists.pas-- Ranking List components ThreadTime r.pas-- and the timer thread pool DelayLists.pas-- a delay the release of another five seconds O bject cohort FastShareMem.pas, MemPools.pas. ShareGlobals.inc-- from the internal use of Bit ThreadTimer Tor 366 Specification.htm-- BT agreement document
Date
: 2025-07-04
Size
: 96kb
User
:
李顺
[
Communication
]
Socket
DL : 0
一个用线程池的Socket 可以 自定义 线程个数-A thread pool using the Socket can customize the number of threads
Date
: 2025-07-04
Size
: 5kb
User
:
李志鹏
[
Internet-Network
]
SocketProgrammingThreadPool
DL : 0
socket & thread pool实例-socket
Date
: 2025-07-04
Size
: 12kb
User
:
wing
[
Internet-Network
]
189745socket+pool
DL : 0
线程池+socket,非常好的服务器端源代码,可以很深入的学习线程池技术-Thread pool+ Socket, a very good server-side source code, can be very thorough study and thread pool technology
Date
: 2025-07-04
Size
: 13kb
User
:
孙宇
[
Linux-Unix
]
MyLinuxThread5-25[1].tar
DL : 0
LINUX 线程池源代码:Lock.cpp : 锁的操作 , 读锁可以并发 , 写锁独占. Queue.h : 队列的封装 , 队列的读和写都加了锁的保护. Socket.cpp : 套接口的简单封装. Thread.cpp : 线程的封装实现了些简单的线程停止,运行等功能 , 启动别的线程的时候需要继承次类. Worker.cpp : 用户接口类 , 用户需继承此类。 ListenThread.cpp(继承Thread.cpp) : 服务器监听线程.如果有客户端连接通知ThreadPool类,由ThreadPool类进行任务分派. TaskThread.cpp(继承Thread.cpp) : 具体任务类,负责接受客户端发送数据. ThreadPool.cpp (继承Thread.cpp) : 线程池类负责启动别的线程 , 并且进行线程调度。首先启动ListenThread.cpp类,如果有客户端 连接ListenThread.cpp类发送信号通知ThreadPool.cpp类,收到信号再分配给TaskThread.cpp类,进行处理。如果没有空闲任务类,动态再-LINUX source code of the thread pool
Date
: 2025-07-04
Size
: 10kb
User
:
wsd
[
Internet-Network
]
Wuyi
DL : 0
自己收集的许多工具类:socket读写线程池,存储超时对象的对象池,MD5类,字符串处理类,时间字符串转换类等等。-socket thread pool
Date
: 2025-07-04
Size
: 78kb
User
:
wuyi
[
TCP/IP stack
]
ThreadPool_final
DL : 0
此代码作为Server,使用TCP Socket编程技术,利用多线程并发,并且使用了线程池技术,修改宏定义可以实现任意路client并发连接到此服务器-This code as a Server, using TCP Socket programming using concurrent multi-threaded, and uses the thread pool technology, to amend the definition of macros can be complicated by the arbitrary way to connect to this server client
Date
: 2025-07-04
Size
: 4.34mb
User
:
xuzhisheng
[
Linux-Unix
]
realmsg-4
DL : 0
本人写的实现类似于MSN的即时通信软件,基于linux socket编程,有完整的客户端,服务器端代码 实现好友管理,线程池,文件传输,简单音频传输等功能,经过修改可用于嵌入式环境-I write to achieve similar to the MSN instant messaging software, based on linux socket programming, a complete client, server-side code to achieve the friends management, thread pool, file transfer, simple features such as audio transmission
Date
: 2025-07-04
Size
: 3.76mb
User
:
xc
[
Internet-Network
]
Socket
DL : 0
Linux 之下实现的使用线程池的 socket 优秀例子-Under the use of Linux to achieve excellent example of socket thread pool
Date
: 2025-07-04
Size
: 432kb
User
:
宋
[
Communication-Mobile
]
socket
DL : 0
单线程并发服务器(select) 编程. errexit()和passiveTCP()两个方法见"linux socket通信示例(传送文件)"文章-common implementation of thread pool logic for httpd and config.
Date
: 2025-07-04
Size
: 1kb
User
:
allen
[
Internet-Network
]
socket
DL : 1
一个简单的socket服务器,两个独立的线程分别处理输入流和输出流,然后一个简单的线程池处理从输入流中解析出来的iso8583数据包-A simple socket server, two separate threads are processing the input and output streams, then a simple thread pool to parse from the input stream of data packets out of the iso8583
Date
: 2025-07-04
Size
: 4kb
User
:
houxiaomeng
[
Internet-Network
]
linux_threadpool
DL : 0
linux网络编程的一些技巧,包括socket,thread pool, select,epoll等-linux network programming some of the techniques, including socket select, epoll, etc.
Date
: 2025-07-04
Size
: 4kb
User
:
sy
[
Internet-Network
]
thread-pool
DL : 0
主要是讲线程池的使用,也是基于SOCKET 的客户端和服务端的网络编程。-Stresses the use of thread pool is also based on the SOCKET client and server network programming.
Date
: 2025-07-04
Size
: 2.55mb
User
:
yewenjie
«
1
2
3
4
»
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.