C++ and networking

F

Fibre Optic

Hi,

I am looking for good book about network programming in C++. Probably it
will difficult to find out book which explain such complicated subject
for MS Windows & Linux but ... Could some one tell me few good books on
this field ?

Does anyone have experience witch ACE library ? Is it only high level of
network programming, is it possible to write i.e. TFTP/FTP server with
this library ?


Regards,
Fibre Optic
 
V

Victor Bazarov

Fibre said:
I am looking for good book about network programming in C++. Probably
it will difficult to find out book which explain such complicated
subject for MS Windows & Linux but ... Could some one tell me few
good books on this field ?

Since network programming is platform-specific, you'll get much better
help in a newsgroup dedicated to your platform.

V
 
P

Phillip Rhodes

Fibre said:
Hi,

I am looking for good book about network programming in C++. Probably it
will difficult to find out book which explain such complicated subject
for MS Windows & Linux but ... Could some one tell me few good books on
this field ?

The C++ language doesn't, to the best of my knowledge, include any
intrinsic support for networking. This means you'll either have to use
a 3rd party library (such as the ACE stuff) that encapsulates
the underlying socket stuff, or you'll be dealing with "C style" APIs
for raw socket access.

Also, network programming is similar but different between Windows and
Linux. You'll almost certainly need (at least) two books, one that
explains the details for each platform. Assuming you'll be using IP,
the basic concepts of using sockets isn't so different, but there are
definitely platform specific details to worry about.

Additionally, network programming tends to involve the need for
concurrency, which generally means threading... and the details
of threading are substantially different between Win and Linux.
You'll probably want some reference material on that subject
for both platforms as well, if you're not already versed in that.

That said, you might want to check out:


WINDOWS:

Win32 Network Programming
Ralph Davis
ISBN 0-201-48930-9

Windows Sockets Network Programming
Bob Quinn & Dave Shute
ISBN 0-201-63372-8

Network Programming with Windows Sockets
Pat Bonner
ISBN 0-13-230152-0

Win32 System Programming (2nd Ed)
Johnson M. Hart
ISBN 0-201-70310-6

Win32 Multithreaded Programming
Aaron Cohen & Mike Woodring
ISBN 1-56592-296-4

Multithreading Applications in Win32
Jim Beveridge & Robert Wiener
ISBN 0-201-44234-5

Multithreaded Programming with Win32
Thuan Q. Pham & Pankaj K. Garg
ISBN 0-13-010912-6

LINUX / UNIX

Linux Socket Programming By Example
Warren W. Gay
ISBN 0-7897-2241-0

UNIX Network Programming Volume 1 (3rd Ed.)
W. Richard Stevens, Bill Fenner & Andrew M. Rudoff
ISBN 0-13-141155-1
(see also volume 2)

Internetworking with TCP/IP
Douglas E. Comer
(see entire series)

TCP/IP Illustrated
W. Richard Stevens
(see entire series)
Does anyone have experience witch ACE library ?

Somebody does, but unfortunately not I.
> Is it only high level of
network programming, is it possible to write i.e. TFTP/FTP server with
this library ?

I'm not sure, but there are two books out on ACE and C++ Network
Programming: C++ Network Programming, Vol. 1 and C++ Network
Programming, Vol. 2, both by Douglas C. Schmidt. You might want
to give those a look. I haven't read either, so I can't really
comment on them.


HTH, IANAL, YMMV, etc. blah,


Phil
 
S

Sensei

Fibre said:
I am looking for good book about network programming in C++. Probably it
will difficult to find out book which explain such complicated subject
for MS Windows & Linux but ... Could some one tell me few good books on
this field ?

Does anyone have experience witch ACE library ? Is it only high level of
network programming, is it possible to write i.e. TFTP/FTP server with
this library ?



In C++ being really multiplatform, use Qt library. I know they have
books probably even on amazon. Qt is GPL now.
 
S

Steven T. Hatton

Fibre said:
Hi,

I am looking for good book about network programming in C++. Probably it
will difficult to find out book which explain such complicated subject
for MS Windows & Linux but ... Could some one tell me few good books on
this field ?

Interestingly, I was asking about the same question on the ACE newsgroup
today. I just hit this on a google: http://www.alhem.net/Sockets/index.html
It looks a lot leaner than ACE. I've been trying to get all of ACE and TAO
to build for the better part of the day. It takes literally hours to
build, and TAO failed. I tried to recover the build, but couldn't
determine exactly what went wrong. For some reason some of the libraries
were symlinked to nothing. After I ran the original build (which took well
over an hour), I didn't realize it was wanting me to also do a `make
install' even though I was building in place. I ran that, and it decided
to build a whole bunch of stuff it couldn't build without the libraries in
place. That was a couple more hours....
Does anyone have experience witch ACE library ? Is it only high level of
network programming, is it possible to write i.e. TFTP/FTP server with
this library ?

I believe you _could_ do your own lowlevel programming with ACE. It has
multiple abstraction layers. One of which is pretty close to the OS. I
just bought _The Ace Programmer's Guide_. It seems like a decent book. As
for ACE, it's real C++ code that shows its age. Lots of #MACROs, and
plenty of workarounds for older compilers. It's not my idea of pretty, but
it apparently has a very solid reputation, and a lot of capabilities. They
claim it was necessary to replace the function main() as the entry point,
but I wonder if that's really so.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top