import socket
HEADER=64
PORT=12345
FORMAT='utf-8'
DISCONNECT="!closing connection [DISCONNECT]"
SERVER=socket.gethostbyname(socket.gethostname())
ADDR=(SERVER,PORT)
client=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
client.connect((SERVER, PORT))
def send(msg):
    message=msg.encode(FORMAT)
    msg_length=len(message)
    send_length=str(msg_length).encode(FORMAT)
    send_length+=b' '*(HEADER - len(send_length))
    client.send(send_length)
    client.send(message)
    print(client.recv(2048))

send('Hello World ')
input()
send('Ghanshyam S Nair')
input()
send(DISCONNECT)
f6e70c8d96901f678c495fd2a7e0a5a9ea8281fd
<mask token>


def send(msg):
    message = msg.encode(FORMAT)
    msg_length = len(message)
    send_length = str(msg_length).encode(FORMAT)
    send_length += b' ' * (HEADER - len(send_length))
    client.send(send_length)
    client.send(message)
    print(client.recv(2048))


<mask token>

<mask token>
client.connect((SERVER, PORT))


def send(msg):
    message = msg.encode(FORMAT)
    msg_length = len(message)
    send_length = str(msg_length).encode(FORMAT)
    send_length += b' ' * (HEADER - len(send_length))
    client.send(send_length)
    client.send(message)
    print(client.recv(2048))


send('Hello World ')
input()
send('Ghanshyam S Nair')
input()
send(DISCONNECT)

<mask token>
HEADER = 64
PORT = 12345
FORMAT = 'utf-8'
DISCONNECT = '!closing connection [DISCONNECT]'
SERVER = socket.gethostbyname(socket.gethostname())
ADDR = SERVER, PORT
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect((SERVER, PORT))


def send(msg):
    message = msg.encode(FORMAT)
    msg_length = len(message)
    send_length = str(msg_length).encode(FORMAT)
    send_length += b' ' * (HEADER - len(send_length))
    client.send(send_length)
    client.send(message)
    print(client.recv(2048))


send('Hello World ')
input()
send('Ghanshyam S Nair')
input()
send(DISCONNECT)

import socket
HEADER = 64
PORT = 12345
FORMAT = 'utf-8'
DISCONNECT = '!closing connection [DISCONNECT]'
SERVER = socket.gethostbyname(socket.gethostname())
ADDR = SERVER, PORT
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect((SERVER, PORT))


def send(msg):
    message = msg.encode(FORMAT)
    msg_length = len(message)
    send_length = str(msg_length).encode(FORMAT)
    send_length += b' ' * (HEADER - len(send_length))
    client.send(send_length)
    client.send(message)
    print(client.recv(2048))


send('Hello World ')
input()
send('Ghanshyam S Nair')
input()
send(DISCONNECT)

import socket
HEADER=64
PORT=12345
FORMAT='utf-8'
DISCONNECT="!closing connection [DISCONNECT]"
SERVER=socket.gethostbyname(socket.gethostname())
ADDR=(SERVER,PORT)
client=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
client.connect((SERVER, PORT))
def send(msg):
    message=msg.encode(FORMAT)
    msg_length=len(message)
    send_length=str(msg_length).encode(FORMAT)
    send_length+=b' '*(HEADER - len(send_length))
    client.send(send_length)
    client.send(message)
    print(client.recv(2048))

send('Hello World ')
input()
send('Ghanshyam S Nair')
input()
send(DISCONNECT)