from socket import *
import sys

HOST = sys.argv[1]
PORT = int(sys.argv[2])
ADDR = (HOST, PORT)
BUFFERSIZE = 1024

soc = socket(AF_INET,SOCK_DGRAM)
soc.bind(ADDR)

while True:
	data, addr = soc.recvfrom(BUFFERSIZE)
	print('receive from {}:{}'.format(addr, data.decode()))
	soc.sendto('服务器收到了你的消息'.encode(), addr)

	












6c5a84c6db09604e31dc98e8a579e6c6f1455a90
<mask token>

<mask token>
soc.bind(ADDR)
while True:
    data, addr = soc.recvfrom(BUFFERSIZE)
    print('receive from {}:{}'.format(addr, data.decode()))
    soc.sendto('服务器收到了你的消息'.encode(), addr)

<mask token>
HOST = sys.argv[1]
PORT = int(sys.argv[2])
ADDR = HOST, PORT
BUFFERSIZE = 1024
soc = socket(AF_INET, SOCK_DGRAM)
soc.bind(ADDR)
while True:
    data, addr = soc.recvfrom(BUFFERSIZE)
    print('receive from {}:{}'.format(addr, data.decode()))
    soc.sendto('服务器收到了你的消息'.encode(), addr)

from socket import *
import sys
HOST = sys.argv[1]
PORT = int(sys.argv[2])
ADDR = HOST, PORT
BUFFERSIZE = 1024
soc = socket(AF_INET, SOCK_DGRAM)
soc.bind(ADDR)
while True:
    data, addr = soc.recvfrom(BUFFERSIZE)
    print('receive from {}:{}'.format(addr, data.decode()))
    soc.sendto('服务器收到了你的消息'.encode(), addr)

from socket import *
import sys

HOST = sys.argv[1]
PORT = int(sys.argv[2])
ADDR = (HOST, PORT)
BUFFERSIZE = 1024

soc = socket(AF_INET,SOCK_DGRAM)
soc.bind(ADDR)

while True:
	data, addr = soc.recvfrom(BUFFERSIZE)
	print('receive from {}:{}'.format(addr, data.decode()))
	soc.sendto('服务器收到了你的消息'.encode(), addr)

	











