chris
01-28-2002, 04:25 PM
is there a way to have multiple connects to one address using one winsock control? like a chat program.
winsockchris 01-28-2002, 04:25 PM is there a way to have multiple connects to one address using one winsock control? like a chat program. Spike 01-28-2002, 04:36 PM You will have to have an array of winsocks... Set Winsock(0) to Listen, and when there is a connection request, load a new winsock. You can most defentaly find an example on http://www.planetsourcecode.com chris 01-28-2002, 04:48 PM even if i'm trying to download files? JamesTheGreat 01-28-2002, 10:11 PM by having a winsock array each one acts independantly so that you could be transfering a file from CompA on one winsock and chatting with CompB on another. The winsock(0) is only used to "transfer" incomming connections to new winsock controls which you would load at runtime as need requires. Banjo 01-29-2002, 05:53 AM Obviously, all connections share the available bandwidth so if you have lots of them then each one will be relatively slow. |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum