Skip to content

Instantly share code, notes, and snippets.

@DanielUranga
Created November 9, 2012 15:02
Show Gist options
  • Save DanielUranga/4046183 to your computer and use it in GitHub Desktop.
Save DanielUranga/4046183 to your computer and use it in GitHub Desktop.
Conexion tcp con Ginga 2.0
event.register(function(evt)
if (not evt.error==nil) then
print(evt.type .. " -> " .. evt.error)
else
print(evt.type)
end
return false
end )
event.post( {class='tcp', type='connect', host='www.google.com', port=8080} )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment