Hello everybody,
I'm trying to connect my OC's computer to my tcp server with the first example here http://ocdoc.cil.li/api:internet
local internet = require("internet")
local handle = internet.open("example.com", 1337)
local data = handle:read(10)------------------------- I REMOVED THIS LINE
handle:write("1234")
handle:close()
, but my server don't receive the message. I tested with a "real" socket client, and my server is working well. Is the code shown in link is outdated or i'm missing something ?
OC version: 1.7.1.1127-universal
MC version: 1.7.10