18 lines
431 B
Python
18 lines
431 B
Python
from TxBlock import *
|
|
from Transaction import *
|
|
from Signature import *
|
|
|
|
from SocketUtil import *
|
|
|
|
TCP_PORT = 5050
|
|
BUFFER_SIZE = 1024
|
|
SERVER = 'localhost'
|
|
|
|
if __name__ == "__main__":
|
|
|
|
server = newServerSocket(SERVER)
|
|
print('A connection to the server is established.')
|
|
Obj = recvObj(server)
|
|
|
|
print("Success! The connection is released.") # If returns after time, then successful
|
|
server.close() |