I need to create a serverless chat manager can some one help me
What have you done so far?
I have done the GUI but i am having a little problem with the transfer protocol should i use UDP or TCP and how
You're probably better off using TCP since it has built in error checking and makes sure the packets are put together in the same order as they were sent, something which UDP will not do for you.
Take a look at the classes Socket and ServerSocket, should get you off to a good start.
Without a server you may have a problem getting the IP addresses of the two machines that need to communicate. JmDNS http://sourceforge.net/projects/jmdns/ can be useful in that case.
root = tkinter.Tk()
buttons=[i for i in range(10)]
#If specific button is pressed, output "YES"
for num in buttons:
I have written a formal Deadlock prevention code but I'm having trouble implementing this algorithm. Any help is appreciated.
I have represented the algorithm below,
Formal algorithm description
Data structures ...
from tkinter import*
conn = sqlite3.connect('REVISION CARD.db')