Created
March 20, 2011 10:39
-
-
Save schmurfy/878259 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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