Results 1 to 2 of 2

Thread: Two winsock connections??

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2007
    Posts
    107

    Two winsock connections??

    Ive buillt an app which establishes 2 winsock connections simultaneously. The IP for both sockets is the same, but ports are different.
    Code:
     With Winsock1
            .RemoteHost = "255.255.255.255"
            .RemotePort = 1002
            .Bind 1001
        End With
        With Winsock2
            .RemoteHost = "255.255.255.255"
            .RemotePort = 1004
            .Bind 1003
         End With
    I receive a data stream on both the IPs, which I then parse and display in my application. The data coming in is received by Databyarrival method. It works fine for the most part. However, there are certain instances, where one of the broadcasts freezes up, while the other is still running.

    Any idea why one broadcast may freeze up randomly, and what can be done to avoid this?

  2. #2
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: Two winsock connections??


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