Create a gist now

Instantly share code, notes, and snippets.

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