MXit: The maximum filesize has been increased from 150K to about 1Mb. release-2.x.y

Wed, 30 Jan 2013 09:24:41 +0200

author
Andrew Victor <andrew.victor@mxit.com>
date
Wed, 30 Jan 2013 09:24:41 +0200
branch
release-2.x.y
changeset 33717
b822f110a36b
parent 33713
3c21af28962e
child 33718
cac9a5d4fe33

MXit: The maximum filesize has been increased from 150K to about 1Mb.
If we want to support even larger file sizes, we will need to implement the chunked protocol extensions.

libpurple/protocols/mxit/protocol.h file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/mxit/protocol.h	Tue Jan 29 23:20:09 2013 +0200
+++ b/libpurple/protocols/mxit/protocol.h	Wed Jan 30 09:24:41 2013 +0200
@@ -34,8 +34,8 @@
 #define		CP_PKT_TERM				'\x02'				/* packet terminator */
 
 
-#define		CP_MAX_PACKET			( 1024 * 1024 )		/* maximum client protocol packet size (1 MiB) */
-#define		CP_MAX_FILESIZE			( 150 * 1000 )		/* maximum client protocol file transfer size (150 KB) */
+#define		CP_MAX_PACKET			( 1 * 1000 * 1000 )	/* maximum client protocol packet size (1 MB) */
+#define		CP_MAX_FILESIZE			( CP_MAX_PACKET - 1000 )	/* maximum file size (reserve some space for packet headers) */
 #define		MXIT_EMOTICON_SIZE		18					/* icon size for custom emoticons */
 #define		CP_MAX_STATUS_MSG		250					/* maximum status message length (in characters) */
 

mercurial