🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1252

WSAStartup with threads

#1252
From: Eduardo Jauch
Date: Fri, 23 Feb 2007 23:12
12 lines
1213 bytes
I have a doubt...

If i have a program with the habilit to create various threads to 
connect to a site via socket (same or different sites), I need to use 
WSAStartup in every one of them or on the main program?

The help says that is possible to call them many times, since the 
WSAClenup be called same number of times...

But my question is: It's necessary? Or on time (on the mais thread), is ok?

Thanks :)
Technical Details
Message-ID: <45df74be@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,e3da03796ce7adb8,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 23 Feb 2007 21:12:51 -0200
From: Eduardo Jauch <eduardo.jauch@gmail.com>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: WSAStartup with threads
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 201.89.14.159
Message-ID: <45df74be@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1172272318 201.89.14.159 (23 Feb 2007 15:11:58 -0800)
Lines: 12
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail