Search code examples
unix-timestampntptime.h

NTP, Unix and Messaging


I have two machines and both of them are set to UTC by the same NTP server. I have them set up so that Machine A sends messages to Machine B at time T and Machine B receives these messages at T + N. The messages seem to be receivable at Machine B for any positive value of N and Im wondering if anyone can tell me of a way to get Machine B to receive these messages at values of N which are less than zero.

The application of this is for frivolous message passing around magnetised water coolers where varying flux densities are related through Brown Capacitors on the fly.

I dont think this problem is one which can be solved in an instant but might merit some responses from those who know what Im talking about.


Solution

  • You can use the type or code that. Say Machine B = 0 and Machine A = 1 or if you have them both in a way that Time is greater than N so the overall outcome is of T + N is a positive outcome. The second code that I added was to unscramble the message but I couldn't mix it with my old code so if you could tweak it to your code it could fix your problem. So I removed all the unscrambling code and put a list code so when it is transmitted it should be fixed

    Message = input("Please put your message")
    Machine_B = 0
    Machine_A = 1
    
    while Machine_B <= Machine_A:
        Machine_B -= 1
        if Machine_B = -10
           Machine_B += 1
           print(Message)
        else:
           Machine_B -= 1
    
    
    
      message1 =[Message]
      print(message1)