This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
LewisTehMinerz's profile picture

PacProxy - A proxy using IP Addresses!

Started by LewisTehMinerz, 31 October 2015 - 04:20 PM
LewisTehMinerz #1
Posted 31 October 2015 - 05:20 PM


Hey guys, LewisTehMinerz here. I'm back with another application! I call it PacProxy! PacProxy's first three letters come from Pac-Man, and Pac-Man is PacProxy's official mascot! Anyway, to the documentation!


PacProxy Documentation
PacProxy.open( side )

Opens up a rednet modem on side.

PacProxy.setComputerIP( newIP )

Sets the computer's IP address.

os.getComputerID()

'Hey, that's the os.getComputerID function!' Yes, I know, but PacProxy overwrites it so it now returns the IP address FIRST before the ID.
PacProxy.send( iptosend, message )
Sends a table through a rednet message containing your IP address and the message you sent under the protocol 'PacProxy'.

PacProxy.recieve()

Runs rednet.recieve( 'PacProxy' ) and gets the table containing your IP address and message. Queues a 'PacProxy_Message' event containing the raw data which you can get from os.pullEvent( 'PacProxy_Message' ) instead of gettings 2 variables. Returns the IP address it was sent from and the message.

To install, run:


pastebin get LRnW013b PacProxy

That's it for now!

-LewisTehMinerz
Edited on 23 December 2015 - 03:28 PM
X3ME #2
Posted 13 March 2016 - 09:54 PM
hmmm interesting,
I may have a use for it
ry00000 #3
Posted 14 March 2016 - 01:38 PM
Is it for the bank program we were gonna make, X3?
X3ME #4
Posted 27 March 2016 - 02:25 AM
Is it for the bank program we were gonna make, X3?
Yes