[mdlug] C Library for network applications
Joseph C. Bender
jcbender at bendorius.com
Wed Feb 28 09:39:37 EST 2007
David Lee Lambert wrote:
> On Tuesday 27 February 2007 12:34 pm, Wojtak, Greg wrote:
>> Does anyone have any experience using any of the network libraries
>> available out there? I am writing a small network based daemon and don¹t
>> want to learn the intricacies of network programming in order to accomplish
>> this otherwise small program.
>
> If you're willing to work in C++ or Java, there are really easy base-classes
> you can use or extend to create a simple TCP server. In Qt 4 (C++), use the
> QTcpSocket class:
>
Linking against Qt would preclude it being "small". There's nothing
like going to install what looks to be a simple network util and finding
that it needs to download a few dozen megabytes of libs because someone
decided to link against Qt or GTK. Or worse, both.
I second the suggestion to use xinetd and stdin/out. Additionally, you
might want to also take a took at DJB's tcpserver, which is part of his
ucspi-tcp utility software set, which provides several other handy
things and is fairly portable. http://cr.yp.to/ucspi-tcp/tcpserver.html
--
Joseph Bender
Bendorius Consulting
jcbender at bendorius com
More information about the mdlug
mailing list