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

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?

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

 

 

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

Link to post
Share on other sites

Join the conversation

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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