summaryrefslogtreecommitdiffstats
path: root/qarsh_packet.c
diff options
context:
space:
mode:
authorNathan Straz <nstraz@redhat.com>2013-08-01 00:43:15 -0400
committerNathan Straz <nstraz@redhat.com>2013-09-11 17:33:04 -0400
commit063f117b1dbe3868bcfe1933967d2a665b3de0db (patch)
tree8daf922d778dcdc6f96497c08d2131de12fb709b /qarsh_packet.c
parent441a1f8e1eb63464540a8852b246120284fefc11 (diff)
downloadqarsh-063f117b1dbe3868bcfe1933967d2a665b3de0db.tar.gz
qarsh-063f117b1dbe3868bcfe1933967d2a665b3de0db.tar.xz
qarsh-063f117b1dbe3868bcfe1933967d2a665b3de0db.zip
Start by adding a packet size to the existing protocol
Diffstat (limited to 'qarsh_packet.c')
-rw-r--r--qarsh_packet.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/qarsh_packet.c b/qarsh_packet.c
index e5018ed..0000a31 100644
--- a/qarsh_packet.c
+++ b/qarsh_packet.c
@@ -1,5 +1,5 @@
/*
- * Copyright © 2005-2008 Red Hat, Inc. All rights reserved.
+ * Copyright © 2005-2013 Red Hat, Inc. All rights reserved.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions of the
@@ -16,6 +16,15 @@
*
* Red Hat Author(s): Nathan Straz <nstraz@redhat.com>
* Dean Jansa <djansa@redhat.com>
+ *
+ * New packet format (modeled after SSH)
+ *
+ * uint32 packet size
+ * uint32 sequence number
+ * byte packet type
+ * payload
+ * - strings are sent as uint32 length + chars
+ *
*/
#include <string.h>