summaryrefslogtreecommitdiff
path: root/src/msg.fbs
diff options
context:
space:
mode:
Diffstat (limited to 'src/msg.fbs')
-rw-r--r--src/msg.fbs30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/msg.fbs b/src/msg.fbs
index 83dca11e6..b47230389 100644
--- a/src/msg.fbs
+++ b/src/msg.fbs
@@ -35,6 +35,11 @@ union Any {
Write,
WriteRes,
Close,
+ Listen,
+ ListenRes,
+ Accept,
+ Dial,
+ NewConn,
}
enum ErrorKind: byte {
@@ -285,4 +290,29 @@ table Close {
rid: int;
}
+table Listen {
+ network: string;
+ address: string;
+}
+
+table ListenRes {
+ rid: int;
+}
+
+table Accept {
+ rid: int;
+}
+
+table Dial {
+ network: string;
+ address: string;
+}
+
+// Response to Accept and Dial.
+table NewConn {
+ rid: int;
+ remote_addr: string;
+ local_addr: string;
+}
+
root_type Base;