Fibre Optic wrote:
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
--
North Carolina - First In Freedom
Free America - Vote Libertarian
www.lp.org