from SocketChannel2 import SocketChannel

def main():
   channel = SocketChannel(1330, False)
   channel.connect('localhost', 1220)
   channel.send("Hello server")
   print("Recieved msg: %s".format{channel.recieve()})
   
if __name__ == "__main__":
    main()
from SocketChannel2 import SocketChannel

def main():
   channel = SocketChannel(1330, False)
   channel.connect('localhost', 1220)
   channel.send("Hello server")
   print("Recieved msg: %s".format{channel.recieve()})
   
if __name__ == "__main__":
    main()