public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* socket programming in Win95, concurrent server
@ 1998-01-19 17:06 Wai-Kong Sung
  0 siblings, 0 replies; 3+ messages in thread
From: Wai-Kong Sung @ 1998-01-19 17:06 UTC (permalink / raw)
  To: gnu-win32

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 577 bytes --]

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@commdevices.com
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: socket programming in Win95, concurrent server
  1998-01-29  6:51 Sergey Okhapkin
@ 1998-01-29  6:51 ` Wai-Kong Sung
  0 siblings, 0 replies; 3+ messages in thread
From: Wai-Kong Sung @ 1998-01-29  6:51 UTC (permalink / raw)
  To: Sergey Okhapkin; +Cc: gnu-win32

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 825 bytes --]

Thanks! I fingure out this from your web site later. Anyway, signals
don't work very well in Win95 too. Later I swith to use the Win32 thread
instead the old unix way fork/exec. It works. Kinda! It stops once a
while for no reason. It seems to me the Berkeley socket in GNU-Win32 is
not really thread-safe. So I switch to winsock. It works but just that
Unix like anymore.

waikong

Sergey Okhapkin wrote:

> Wai-Kong Sung wrote:
> > I would like to know whether passing a child process inherit the
> socket
> > handle from the parent in gnuwin32/Win95.Ç??
> >
>
> Socket() call on windows95 creates a non-inherittable socket! Download
> patched cygwin.dll from my web page - it handles this bug of Win95.
>
> --
> Sergey Okhapkin, http://www.lexa.ru/sos
> Moscow, Russia
> Looking for a job

  

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: socket programming in Win95, concurrent server
@ 1998-01-29  6:51 Sergey Okhapkin
  1998-01-29  6:51 ` Wai-Kong Sung
  0 siblings, 1 reply; 3+ messages in thread
From: Sergey Okhapkin @ 1998-01-29  6:51 UTC (permalink / raw)
  To: gnu-win32, 'waikong@commdevices.com'

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 505 bytes --]

Wai-Kong Sung wrote:
> I would like to know whether passing a child process inherit the socket
> handle from the parent in gnuwin32/Win95.Ç??
> 

Socket() call on windows95 creates a non-inherittable socket! Download patched cygwin.dll from my web page - it handles this bug of Win95.

-- 
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
Looking for a job

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-01-29  6:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-01-19 17:06 socket programming in Win95, concurrent server Wai-Kong Sung
1998-01-29  6:51 Sergey Okhapkin
1998-01-29  6:51 ` Wai-Kong Sung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).