import pathlib, sys, struct, socket, threading sys.path.insert(0,str(pathlib.Path(__file__).resolve().parents[1]/'nds/tools')) import probe def slp_response(function,xid,body): n=16+len(body) return bytes((2,function))+n.to_bytes(3,'big')+b'\0'*5+struct.pack('!HH',xid,2)+b'en'+body ping=struct.pack('I',oid)+struct.pack('