Skip to content

Instantly share code, notes, and snippets.

@ftsf
Created January 12, 2017 01:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ftsf/09190431d86fee69815655d8aa4cdbd3 to your computer and use it in GitHub Desktop.
Save ftsf/09190431d86fee69815655d8aa4cdbd3 to your computer and use it in GitHub Desktop.
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