Jump to content




Wireless Redirect concept


  • You cannot reply to this topic
10 replies to this topic

#1 Inumel

  • Members
  • 120 posts

Posted 18 April 2015 - 05:15 PM

I have no code, I don't even know if this is possible, so hear I ask.

Is it possible to redirect the terminal via a wireless modem?

basically remote access for a computer from a pocket computer
I have not even begun testing as I don't think its possible, but I would like to hear it from the pro's.

#2 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 18 April 2015 - 05:20 PM

Yes it is possible, just very difficult

#3 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 18 April 2015 - 05:32 PM

It is not so difficult at all. This is how it works: The sender overrides all of the term functions with arguments to send the invoked function to the reciever. The reciever then executes those functions. Be sure to ask me if I was not clear. ;)

For example:
newTerm.write = function(arg) term.write(arg) rednet.send(id,"term.write("..arg..")")

of course back up the original functions.

The reciever looks like this:

_,data = rednet.receive()

local func = loadstring(data)
setfenv(dfunc,_G)
func()

Edited by Creator, 18 April 2015 - 05:36 PM.


#4 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 18 April 2015 - 05:53 PM

Yes, Terminal Redirection over Rednet is possible, and has been used in programs before.

And no, it does not look anything like the post above.

#5 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 18 April 2015 - 05:56 PM

Well, but that is the basic idea.

#6 Inumel

  • Members
  • 120 posts

Posted 18 April 2015 - 06:32 PM

Thank you Lyqyd.
And Creator, for giving me some interesting ideas.

#7 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 18 April 2015 - 06:36 PM

You are welcome. One thing that makes me curios is that you gave dragon a +1 for telling you it is difficult to make ;)

#8 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 18 April 2015 - 10:52 PM

Creator, it may not of been him to of +1'd me. And even if he did, that is not a noteworthy thing to do. My statement is sound, to create something such as the TROR is difficult. Depending on what you do it can be barely difficult, just getting a semi working shell, or quite difficult, such that you send every event over rednet so that both sides can interact with the same machine.

#9 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 18 April 2015 - 10:54 PM

It just amused me, that's all ;)

#10 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 18 April 2015 - 10:55 PM

Also there is of course the problem of pocket computers having a different height and width of the computers.

#11 Inumel

  • Members
  • 120 posts

Posted 18 April 2015 - 11:25 PM

View PostCreator, on 18 April 2015 - 10:54 PM, said:

It just amused me, that's all ;)

Sorry I've been hard at work in game testing some things, I simply +1'd him because he was the first person to answer the post, is all. Nothing special :P





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users