Link to home
Start Free TrialLog in
Avatar of jcancel
jcancel

asked on

Winsock Control

I need to know if there is another way to wait for a conection when I try to establish a Remote Conection. Right Now I'm Using this Tiny Do While

for Example

winsock1.conect Server(x.x.x.x) Port(NNNN)

Do while .state <> sckconnected
   DoEvents
Loop

I don't like this manner because my CPU reach 100% percent of utilization when the Code Reach the Do while.

Any help will be apreciated
ATT Joel
ASKER CERTIFIED SOLUTION
Avatar of ljaques
ljaques

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jcancel
jcancel

ASKER

Adjusted points to 200
Avatar of jcancel

ASKER

ThanK you very Much
att Joel Cancel