Results 1 to 4 of 4

Thread: Data Arrival in winsock?

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    9

    Data Arrival in winsock?

    Hello folks! I don't get this at all! I'm using winsock and connecting to another server.... The code below doesn't get me anything My msgbox that says "hi" pops up so I know there routine is being executed, but I don't get anything in text1! Any ideas?

    Private Sub AxWinsock1_DataArrival(ByVal sender As Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent) Handles AxWinsock1.DataArrival
    Dim text1 As String
    MsgBox("hi!")
    AxWinsock1.GetData(text1)
    MsgBox(text1)
    End Sub

  2. #2
    Addicted Member
    Join Date
    Jul 1999
    Posts
    207
    Humm, winsock is a bit touch in vb.net at best, would recomend using the sockets class. What type of connection are you trying to use.

    Jeremy

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    9
    Hello! I'm trying to connect to a mail server, and eventually be able to download email!

  4. #4
    Addicted Member
    Join Date
    Jul 1999
    Posts
    207
    I would look through the tcp listeners that have discussed here, I think somone made a class that works in vb.net.

    Jeremy

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