Add NDN Play integration to Mini-NDN code base
Integrate the minindn_play project by Varun Patil into
the base Mini-NDN codebase; this will allow for the
use of the NDN-Play browser UI with minimal additional
dependencies or setup.
Refs #5359
Change-Id: I4fedfa885b07d7fe946a18c6d9b5016d291b3582
diff --git a/minindn/minindn_play/consts.py b/minindn/minindn_play/consts.py
new file mode 100644
index 0000000..60e80e7
--- /dev/null
+++ b/minindn/minindn_play/consts.py
@@ -0,0 +1,34 @@
+from enum import Enum
+
+class Config:
+ AUTH_FILE = "/tmp/ndnplay-auth"
+ PLAY_URL = "https://play.ndn.today"
+ SERVER_HOST = "0.0.0.0"
+ SERVER_HOST_URL = "127.0.0.1"
+ SERVER_PORT = 8765
+ PCAP_CHUNK_SIZE = 512
+
+# MessagePack Keys
+class WSKeys(str, Enum):
+ MSG_KEY_FUN = 'F'
+ MSG_KEY_ID = 'I'
+ MSG_KEY_RESULT = 'R'
+ MSG_KEY_ARGS = 'A'
+
+class WSFunctions(str, Enum):
+ GET_TOPO = 'get_topo'
+ OPEN_ALL_PTYS = 'open_all_ptys'
+ DEL_LINK = 'del_link'
+ ADD_LINK = 'add_link'
+ UPD_LINK = 'upd_link'
+ DEL_NODE = 'del_node'
+ ADD_NODE = 'add_node'
+ GET_FIB = 'get_fib'
+ GET_PCAP = 'get_pcap'
+ GET_PCAP_WIRE = 'get_pcap_wire'
+ PTY_IN = 'pty_in'
+ PTY_OUT = 'pty_out'
+ PTY_RESIZE = 'pty_resize'
+ OPEN_TERMINAL = 'open_term'
+ CLOSE_TERMINAL = 'close_term'
+ MONITOR_COUNTS = 'monitor_counts'
\ No newline at end of file