CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Error trapping

  1. #1
    Join Date
    May 2001
    Posts
    5

    Error trapping

    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


  2. #2
    Join Date
    Feb 2001
    Location
    Stamford CT USA
    Posts
    2,167

    Re: Error trapping

    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

    Good Luck,
    -Cool Bizs

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured