- In target terminal type tty
- copy the result (should be something like /dev/pts/0
- in gdb window type tty <pasted-result>
- enable
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <math.h> | |
| typedef struct Node_t | |
| { | |
| int data; | |
| struct Node_t* left; | |
| struct Node_t* right; | 
| import socket | |
| fd = socket.socket(socket.AF_INET, socket.SOCK_DGRAM ) | |
| fd.settimeout(1) | |
| udp_ip = '10.82.2.254' | |
| udp_port = 4001 | |
| while(True): | |
| message = input("> ")+"\r" | |
| fd.sendto(message.encode(), (udp_ip, udp_port)) | |
| while(True): | |
| try: |