Ta©ti Tac0Z 2 Posted October 23, 2018 Share Posted October 23, 2018 We all know that the internet card Can be used to commulicate with a server running a website (aka: the HTTP protocal) but what other (so called) 'networking protocals' can opencompiters use? am generly just asking to hear what other things i chould do on the internet useing opencomputers Quote Link to post Share on other sites
0 SpaceBeeGaming 3 Posted October 24, 2018 Share Posted October 24, 2018 It supports tcp and http (based on the wiki page for internet component). Quote Link to post Share on other sites
0 Ta©ti Tac0Z 2 Posted October 24, 2018 Author Share Posted October 24, 2018 yeah i do recall the wiki saying some thing about TCP. acording to wikipedia: TCP stands for the 'Transmission Control Protocol'. surfing a little bit more on the internet indicates that TCP is more of a wide spred term. (sems to be a category more that a actuel thing it self - where TCP is described as the component that let other types of internet protocals work) so what does TCP include? what is posible with the TCP part of the internet card? Quote Link to post Share on other sites
0 SpaceBeeGaming 3 Posted October 24, 2018 Share Posted October 24, 2018 I think that you can, in theory, code a TCP based protocol (HTTP, SMTP, FTP,... ), but I'm not sure. Quote Link to post Share on other sites
0 Ta©ti Tac0Z 2 Posted October 24, 2018 Author Share Posted October 24, 2018 in theory? FTP sounds cool how chould i do that? Quote Link to post Share on other sites
0 SpaceBeeGaming 3 Posted October 24, 2018 Share Posted October 24, 2018 I have no experience on this subject matter. And I'm not sure if it is even possible withing OpenComputers. So I can't help. Ta©ti Tac0Z 1 Quote Link to post Share on other sites
0 Ta©ti Tac0Z 2 Posted October 24, 2018 Author Share Posted October 24, 2018 am sure some body else can thank you anyways Quote Link to post Share on other sites
0 Ta©ti Tac0Z 2 Posted October 25, 2018 Author Share Posted October 25, 2018 OHHH WOW ok so i tryed it out: local h = require("component").internet.connect("108.61.112.194", 25444) while true do print("trying to connect...") if h.finishConnect() then break end os.sleep() end h.write("login rfdfhasjdahl") h.write("login fdsfhjdhfks") os.sleep(1) print(h.read(10000)) h:close() so amasing this program prints out: "RconRocket V2.4.8.0" (what my irl rcon client allways starts with) but it sems that the handle does not have a flush function when useing the internet apis open function the read function just timesout Quote Link to post Share on other sites
1 Ta©ti Tac0Z 2 Posted October 25, 2018 Author Share Posted October 25, 2018 local h = require("internet").open("108.61.112.194", 25444) h:setTimeout(1000) os.sleep(2) h:write("login (password removed - actuel password should be here)") h:flush() while true do pcall(function() print(h:read(1000)) end) os.sleep(1) end h:close() nothing ever happens sems that the read request just timesout evrey time. acording to the wiki: "The read method on the returned buffer is blocking. Read will wait until some data is available to be read" but there are data there is the start RconRocket message in the start and poeple writeing in chat. so what is going on here? please somebody? Quote Link to post Share on other sites
We all know that the internet card Can be used to commulicate with a server running a website (aka: the HTTP protocal)
but what other (so called) 'networking protocals' can opencompiters use?
am generly just asking to hear what other things i chould do on the internet useing opencomputers
Link to post
Share on other sites