Search the Community
Showing results for tags 'socket'.
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: 22.214.171.1247-universal MC version: 1.7.10
When using the internet component or internet API I could not find a reliable way to detect a broken socket to an internet adress. Once the connection is broken by the external endpoint, the broken socket can only be detected by writing to the socket, not by reading. This makes writing a good program very difficult as it would be impractical to send a ping every second just to detect if the socket is still alive. Is there any possibility I did not see? Or is none implemented?
Hello fellow OpenComputerians, today I want to tease you a little with my mouth-watering idea(or should I say soon-to-be-tangible toy?): Jalopeno. Yes, indeed, you saw that misspelled word right. Blame it on the jalapeno I chewed! It sizzled my brizzle. Think of it as a central station to manage all of your devices in one place, specifically all connected devices in a single website. From website to your devices, you could remote access them. You could deliver Lua's codes directly to your devices. You could paint your tiny silly screens directly from the websites. You could track errors. Your