Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
Ta©ti Tac0Z

What other networking protocalls Can opencompiters use?

Question

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

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

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?

Share this post


Link to post
Share on other sites
  • 0

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

 

 

Share this post


Link to post
Share on other sites
  • 0
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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.