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 ?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
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
, 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
Thanks in advance for help
Link to post
Share on other sites