Skip to content

Instantly share code, notes, and snippets.

@schmurfy
Created March 20, 2011 10:39
Show Gist options
  • Save schmurfy/878259 to your computer and use it in GitHub Desktop.
Save schmurfy/878259 to your computer and use it in GitHub Desktop.
Protected Class App
Inherits Application
Sub Open()
Dim s As New MySocket
s.Address = "127.0.0.1"
s.Port = 4000
s.Connect()
End Sub
End Class
Protected Class MySocket
Inherits TCPSocket
Sub Connected()
Write("PING")
End Sub
Sub SendComplete(userAborted as Boolean)
Write("PING")
End Sub
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment