ComputerCraft Forums

ComputerCraft => Ask a Pro => Topic started by: KingJellyfishII on Dec 25, 2019, 03:19 PM

Title: Send modem message to the same computer it was sent from?
Post by: KingJellyfishII on Dec 25, 2019, 03:19 PM
I'm making the internet and I need something akin to 127.0.0.1. Whenever I try to send a modem message to itself it always times out. Any way this can be done, or is it not possible due to the way CC was coded? I have the sending program in one tab of the multishell and the recieving program in another tab so they should be running concurrently.
Title: Send modem message to the same computer it was sent from?
Post by: Wojbie on Dec 25, 2019, 03:44 PM
If you took a peek at rednet protocol if you attempt to send message to yourself it skips sending part and just queues receipt event by itself if i remember right. That would solve the issue you are having.
Title: Send modem message to the same computer it was sent from?
Post by: KingJellyfishII on Dec 25, 2019, 04:39 PM
Quote from: Wojbie on Dec 25, 2019, 03:44 PMIf you took a peek at rednet protocol if you attempt to send message to yourself it skips sending part and just queues receipt event by itself if i remember right. That would solve the issue you are having.

I'm not using the rednet protocol but I have written my own protocol (I call it ip but it's nothing like the real ip ofc) so I'll see if I can implement that. Thanks for the info