Click to See Complete Forum and Search --> : Error trapping


cnjmorris
May 4th, 2001, 03:57 AM
Trying to connect between 2 winsock controls and the connectionrequest event isn't even firing. Here is some error trapping I did, don't know if this will help but when I trap the sckError this is the results of my query.....

[Client]
wsC.State= 9 - sckError
wsC.RemoteHost= 192.168.1.102
wsC.RemotePort= 3030 - assigned
wsC.LocalPort= 2693 - random

[Server]
wsS(FirstFreeSocket).State= 2 - listening
wsS(FirstFreeSocket).RemoteHost=
wsS(FirstFreeSocket).RemotePort= 0
wsS(FirstFreeSocket).LocalPort= 3030 -assigned

coolbiz
May 4th, 2001, 06:34 PM
Missing codes? Can't see any error traping code in here. Anyway, for your Client winsock, set the .LocalPort to 0 instead of a number. 0 means let system assign one.

-Cool Bizs