-
-
Save ftsf/09190431d86fee69815655d8aa4cdbd3 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
import net | |
var socket = newSocket() | |
socket.connect("localhost",Port(9000)) | |
var data = "test".cstring | |
discard socket.send(data[0].addr, 5) | |
socket.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment