Location:
Search - connect pool
Search list
Description: 一个线程驰的类, 下面的是基本的使用方法 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.
Platform: |
Size: 2701 |
Author: boxu |
Hits:
Description: 该系统是jsp+mysql+javabean的大型购物。 1、正确配置服务器,该系统已经在tomcat4.0.1和resin3.0下调试通过; 2、用doc目录下的表结构在mysql上建表, 3、正确配置poolman.xml中的数据库连接池,-Merchant shopping web site source code. write in jsp+mysql+javabena. Database creating sql in dictory doc, database connect pool config in poolman.xml.
Platform: |
Size: 5274503 |
Author: savior618 |
Hits:
Description: 数据库不连接池.用于对数据库连接进行管理.-database connection pool. The database is used to connect management.
Platform: |
Size: 13863 |
Author: HELI |
Hits:
Description: 数据库连接包括连接池。很有用的资料,大家不妨看看叫你如何连接数据库,以及提示你如何抛出一场处理等等 -database connectivity, including connection pool. Very useful information, we ask you to take a look at how to connect to the database, and how do you suggest a treatment dished out, etc.
Platform: |
Size: 904407 |
Author: 宋福钰 |
Hits:
Description: omcat连接池配置代码 在server.xml文件中加入代码-omcat connection pool in server.xml configuration code to code documents
Platform: |
Size: 1341 |
Author: liuyue |
Hits:
Description: JAVA通过连接池技术连接MYSQL数据库,
MYSQL用户名 root 密码kof2-Java technology through the connection pool connect MYSQL database, MYSQL user name root password kof2
Platform: |
Size: 3618 |
Author: zhaohaijian |
Hits:
Description: 数据库连接池在编写应用服务是经常需要用到的模块,太过频繁的连接数据库对服务性能来讲是一个瓶颈,使用缓冲池技术可以来消除这个瓶颈。-database connection pool in the preparation of application services is often necessary to use modules, too busy to connect to the database in terms of service performance is a bottleneck, the use of buffer pool can to eliminate this bottleneck.
Platform: |
Size: 11681 |
Author: zhubin |
Hits:
Description: 利用Java写的数据库连接池代码,能够很好实现对连接的管理-written using Java database connection pool code to connect to achieve good management
Platform: |
Size: 5884 |
Author: sun ligang |
Hits:
Description: JAVA连接数据库的几个版本,由数据源到连接池,适合初学JDBC的-JAVA connecting to the database several versions, from the data source to connect pool, suitable for beginners JDBC
Platform: |
Size: 33394 |
Author: 龙龙 |
Hits:
Description: 一个线程驰的类, 下面的是基本的使用方法 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.
Platform: |
Size: 2048 |
Author: boxu |
Hits:
Description: 该系统是jsp+mysql+javabean的大型购物。 1、正确配置服务器,该系统已经在tomcat4.0.1和resin3.0下调试通过; 2、用doc目录下的表结构在mysql上建表, 3、正确配置poolman.xml中的数据库连接池,-Merchant shopping web site source code. write in jsp+mysql+javabena. Database creating sql in dictory doc, database connect pool config in poolman.xml.
Platform: |
Size: 5274624 |
Author: savior618 |
Hits:
Description: omcat连接池配置代码 在server.xml文件中加入代码-omcat connection pool in server.xml configuration code to code documents
Platform: |
Size: 1024 |
Author: liuyue |
Hits:
Description: 数据库连接池在编写应用服务是经常需要用到的模块,太过频繁的连接数据库对服务性能来讲是一个瓶颈,使用缓冲池技术可以来消除这个瓶颈。-database connection pool in the preparation of application services is often necessary to use modules, too busy to connect to the database in terms of service performance is a bottleneck, the use of buffer pool can to eliminate this bottleneck.
Platform: |
Size: 11264 |
Author: zhubin |
Hits:
Description: JAVA连接数据库的几个版本,由数据源到连接池,适合初学JDBC的-JAVA connecting to the database several versions, from the data source to connect pool, suitable for beginners JDBC
Platform: |
Size: 32768 |
Author: 龙龙 |
Hits:
Description: 包括ezdbc客户端连接工具ezsql全套源码、ezdbc安装手册、ezdbc API文档、ezdbc client for vc db connect pool源码等。-Including ezdbc client connectivity tools ezsql a full set of source code, ezdbc Installation Guide, ezdbc API documentation, ezdbc client for vc db connect pool source and so on.
Platform: |
Size: 743424 |
Author: Eagle518 |
Hits:
Description: ftp连接池,节省创建ftp连接的时间 -ftp connection pool, saving the time to create ftp connect
Platform: |
Size: 4096 |
Author: testtest |
Hits:
Description: 此代码作为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
Platform: |
Size: 4553728 |
Author: xuzhisheng |
Hits:
Description: 数据库连接池代码,如果要 new Connection 就可以直接从数据库连接池中返回 Connection-database connect pool code
Platform: |
Size: 2048 |
Author: tomtest |
Hits:
Description: java 连接oracle的连接池示例,对初学者很有用哦-document for java connect oracle:connect pool case
Platform: |
Size: 14336 |
Author: apex |
Hits:
Description: java实现的连接池模拟,oracle数据库,获取,收回、删除,初始化-connect pool
Platform: |
Size: 1024 |
Author: 王法 |
Hits: