🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #882

Re: I would like to learn socket programming (tcp/ip)

#882
From: Sandeep Pathak
Date: Mon, 15 Jan 1996 15:25
41 lines
2561 bytes
In article <9601111635.aa01715@Mafalda.isoft.com.ar> diego@mafalda.ai.mit.EDU (Diego A. Balbi) writes:
[snip]
>
>Hi !
>     "Unix Network Programing" book of W. Richard Stevens
>     has been useful for me to understand tcp/ip usage in "C"
>     language and several net concepts ( I've used those "C" functions
>     in "C++" programs to build my own -little!- classes ).
>     
>     Good luck with the battle !
>           
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Diego A. Balbi                           InterSoft Argentina S.A.
>System Software Engineer                  Av. Cordoba 883 Piso 13
>diego@isoft.com.ar                       (1054) Bs As - Argentina
>                           ,,,              Voice: +54-1-318-8900
>                         0(o o)0              Fax: +54-1-318-8999
>~~~~~~~~~~~~~~~~~~~\--oOO--(_)--OOo-/~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>

Hi,
I was _just_ about to post a query about this. I am doing a project for
a C++ course. I am writing simple wrapper classes for socket and other related 
IP abstractions. I basically modeled classes based on their traditional 
networking counterparts, eg: in Socket class, I have a ref. count similar
to what the kernel keeps for a socket fd. But I was stumped when it came to a 
"fork". The kernel will handle copies of the socket fd. but what about my 
Socket object?! I can't think of any way to maintain conformity w/ the kernel
unless parent and child communicate in a way. 
Anybody out in netland dealt with this? Or should I tentatively assume that
concurrent servers are not easily possible with my object abstractions.
Any pointer GREATLY appreciated!!

-deep
-----------------------------------------------------------------
Sandeep Pathak                  ! secs:  (508)921-9696 
Eaton Corporation               ! mins:  (508)927-3652
Semiconductor Equipment Div.    ! hrs :  spathak@bev.etn.com
"Whatever u can do or dream u   ! days:	 108 Cherry Hill Drive
can do..begin it" -- Goethe     !        Beverly  MA 01915
-----------------------------------------------------------------
Technical Details
Message-ID: <1996Jan15.152541.26621@etnibsd.uucp>
Path: arc1-ca.pugleaf.net!in2.uu.net!etnibsd!sandeep
References: <9601111635.aa01715@Mafalda.isoft.com.ar>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help,comp.lang.c++
Path: arc1-ca.pugleaf.net!in2.uu.net!etnibsd!sandeep
From: sandeep@etnibsd.uucp (Sandeep Pathak)
Subject: Re: I would like to learn socket programming (tcp/ip)
Message-ID: <1996Jan15.152541.26621@etnibsd.uucp>
Reply-To: sandeep%etnibsd@uunet.uu.net
Organization: Eaton Ion Beam Systems Div., Beverly, MA
References: <9601111635.aa01715@Mafalda.isoft.com.ar>
Date: Mon, 15 Jan 1996 15:25:41 GMT