Posted 13 July 2013 - 09:00 PM
Hi everyone
I am making an Rednet program that multiple computers connect to a central computer that distributes files but they are all on the same channel and I need a way to have the central computer automatically detect which computer on the network sent it a message so it can automatically send a message back based on what you sent it. i already have a way to send files over rednet. this may be confusing so I am going to e explain in the order of events that I want to happen
1 . An local computer (we are going to call this client1) needs a file that is remotely stored on another computer (server computer)
2. Another computer (client2) also needs some files stored on the server computer
3. Client 1 send the keyword for the file that it needs to the server computer (the keyword is keyword)
4. Server computer receives an message (the keyword) on the file sharing channel and detects which computer (client1) sent the message and sends the appropriate file back.
5. Client 2 does the same thing but with a different keyword for file/files
Now I want a way for the server computer to recognize the difference and send the required file to the computer that requested it ie the files don't mix and go to both computers
:)/>
Confusing huh?
I am making an Rednet program that multiple computers connect to a central computer that distributes files but they are all on the same channel and I need a way to have the central computer automatically detect which computer on the network sent it a message so it can automatically send a message back based on what you sent it. i already have a way to send files over rednet. this may be confusing so I am going to e explain in the order of events that I want to happen
1 . An local computer (we are going to call this client1) needs a file that is remotely stored on another computer (server computer)
2. Another computer (client2) also needs some files stored on the server computer
3. Client 1 send the keyword for the file that it needs to the server computer (the keyword is keyword)
4. Server computer receives an message (the keyword) on the file sharing channel and detects which computer (client1) sent the message and sends the appropriate file back.
5. Client 2 does the same thing but with a different keyword for file/files
Now I want a way for the server computer to recognize the difference and send the required file to the computer that requested it ie the files don't mix and go to both computers
:)/>
Confusing huh?