PDA

Click to See Complete Forum and Search --> : winsock


lem
Oct 6th, 2000, 05:05 AM
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

BitBlt
Oct 6th, 2000, 08:38 AM
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.