my knowledge my knowledge

Poco TCPServer class


POCO library implements class TCPServer which dispatches connections as described here. Most of the classes for these examples are common:


Handler is quite similar:


To imlement a server connection, one needs to derive from the TCPServerConnection:


To start the server an instance of TCPServer is created using the binded server socket:


Server is tested under Linux 2.6.37 64bit/gcc 4.5.2/Poco 1.4.2p1, FreeBSD 8.0 64bit/gcc 4.2.1/Poco 1.4.2p1, Windows 7/VS 2010/Poco 1.4.2p1, compiled as specified in the Makefile.


The presented code can be downloaded as an archive.


 

 

ay ay a ya ya

C Family Interview

The C family of languages--C, C++, and Java--has dominated commercial programming for over 30 years. Today, all three languages are at a turning point...


Read more

The Free Lunch Is Over

Your free lunch will soon be over. What can you do about it? What are you doing about it? The major processor manufacturers and architectures, from Intel and AMD to Sparc and PowerPC, have run out of room with most of their traditional approaches to boosting CPU performance.


Read more

Software and the Concurrency Revolution

Concurrency has long been touted as the "next big thing" and "the way of the future," but for the past 30 years, mainstream software development has been able to ignore it. Our parallel future has finally arrived: new machines will be parallel machines, and this will require major changes in the way we develop software.


Read more