Search the Community
Showing results for tags 'socket'.
Found 3 results
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: 188.8.131.527-universal MC version: 1.7.10 Thanks in advance for help
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 devices could communicate among others. Perhaps so much more! How, you say? Socket systems, powered by a single instance of Nodejs using Websockets, TCP sockets, and a HTTP protocol. At this point, it is still in development and is in no shape to showcase it yet. I would like to share it when I'm done coding the backend as well as the frontend of Jalopeno. The idea is that you would install this special tiny program on your machines using internet card and pastebin command to register your device online. Once you do that, then you can hop on the website and log in to see all the contents it has to offers for your registered OpenComputers devices. I plan to github it all for open source, for a ludicrous-deep cost of nothing. Good for those who want to host this website privately or publicly for themselves. I expect my codes to be dirty, engima-ish, and brain-rambling logics when I release Jalopeno to github *giggly*. -rjs232323 (also known as the developer of MineCanvas!) Edit: Added Image