Commit 2b07f82b authored by Xiaoying Pu's avatar Xiaoying Pu

just to check this is not completely crazy

parent b9c7d8f9
......@@ -5,9 +5,11 @@
>>>>>>> 77a28fc33ef0da0fce5fb1bd3cd373fbaa9b44a9
<group>
<file>file:/Users/pxy/dm_task/src/main/Dm_task.java</file>
<file>file:/Users/pxy/dm_task/src/tracker/UDPController.java</file>
<file>file:/Users/pxy/dm_task/src/util/Trial.java</file>
<file>file:/Users/pxy/dm_task/src/digit/controller/SecondaryTaskController.java</file>
<file>file:/Users/pxy/dm_task/src/digit/DigitTaskFacade.java</file>
</group>
</open-files>
......
import socket
UDP_IP = "127.0.0.1"
UDP_PORT = 9001
sd = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
socket.bind((UDP_IP, UDP_PORT))
while True:
data, addr = sd.recvfrom(1024)
print("recv: ", data)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment