Results 1 to 2 of 2

Thread: winsock

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Location
    Philippines
    Posts
    1

    Question

    Hi!

    I'm new at winsock and I'm trying to connect to a UNIX server that prompts for user login and password. How can I know if I have already connected and if the server is already prompting me to enter the user login and password?
    Please help. Thanks.

    Lem

  2. #2
    Hyperactive Member
    Join Date
    Sep 2000
    Posts
    257
    I don't know anything about UNIX servers, but I do know that if it's prompting for user name and password then you can use the DataArrival event to check, eg...

    Private Sub Winsock1_DataArrival()
    DIM DataRecieved 'In your case you'd declare it as a string.
    Form1.Winsock1.GetData DataRecieved

    End Sub

    And to check if you're connected you'd use the Connect event

    eg.. form1.caption = "Connected to ....."

    I hope this has helped.

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