🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1269

Re: Share a WinSock socket between EXEs ??

#1269
From: Remy Lebeau (TeamB)
Date: Wed, 26 Sep 2007 20:25
17 lines
1275 bytes
"Regis St-Gelais" <regis.st-gelais@NOSPAMlaubrass.com> wrote in message
news:46fabea9$1@newsgroups.borland.com...

> After connection (using accept), I would like to start another
> exe and pass it the connected socket.

Why not use a thread instead of an exe for that?

> Is this possible ??

Technically yes.  You need to use WSADuplicateSocket() for that:

    http://msdn2.microsoft.com/en-us/library/ms741565.aspx


Gambit
Technical Details
Message-ID: <46fac06c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46fabea9$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,fc2e925d3a2e2af
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <46fabea9$1@newsgroups.borland.com>
Subject: Re: Share a WinSock socket between EXEs ??
Date: Wed, 26 Sep 2007 13:25:36 -0700
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.83.29.61
Message-ID: <46fac06c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1190838380 75.83.29.61 (26 Sep 2007 13:26:20 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail