Results 1 to 2 of 2

Thread: connect???

  1. #1

    Thread Starter
    Member haravinth's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    61

    Unhappy connect???

    How do i find out if a client connected to a server??

    if its connected i want to display a message box says "You are now connected" else i want to display "You are not connected"

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344
    Try:

    VB Code:
    1. Private Sub Command2_Click()
    2. Winsock1.Connect Text1, 7000
    3. Timer1.Enabled = True
    4. End Sub
    5.  
    6. Private Sub Timer1_Timer()
    7. 'Get the winsock state
    8. If Timer1.Interval = 1 Then
    9. Me.Caption = Winsock1.State
    10. End If
    11. End Sub
    Last edited by Nightwalker83; Oct 23rd, 2002 at 12:42 AM.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

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