delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/01/21/16:46:53

From: waikong AT commdevices DOT com (Wai-Kong Sung)
Subject: socket programming in Win95, concurrent server
21 Jan 1998 16:46:53 -0800 :
Message-ID: <34C3C43D.9D3ADF4E.cygnus.gnu-win32@commdevices.com>
Reply-To: waikong AT commdevices DOT com
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

This is a multi-part message in MIME format.
--------------8E07C48EA7C70B0F5EA23E65
Content-Type: text/plain; charset=iso-8859-1
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Content-Transfer-Encoding: 8bit

Hi!

I am trying to build a simple concurrent TCP server using gnuwin32 in a
Win95 environment. In the Unix way, the server listen to a port, accept
it and fork a child process to handle the accepted socket. I tried the
same thing in gnuwin32. However, I alwasy get a error when a error
"descriptor is a file, not a socket" whenI tried to use this socket in
the child process(select,recv, etc).

I would like to know whether passing a child process inherit the socket
handle from the parent in gnuwin32/Win95. 

Thanks!

waikong
waikong AT commdevices DOT com
 

--------------8E07C48EA7C70B0F5EA23E65
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Wai-Kong  Sung
Content-Disposition: attachment; filename="vcard.vcf"

begin:          vcard
fn:             Wai-Kong  Sung
n:              Sung;Wai-Kong 
org:            Communication Devices, Inc.
adr:            1 Forstmann Court;;;Clifton;New Jersey;07011;U.S.A.
email;internet: waikong AT commdevices DOT com
title:          Engineer
tel;work:       (973) 772 6997
tel;fax:        (973) 772 0747
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
end:            vcard


--------------8E07C48EA7C70B0F5EA23E65--

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019