From 964f8ccd1398638d3e5dfd9abb9edd23190b188f Mon Sep 17 00:00:00 2001 From: me_desk Date: Tue, 26 Nov 2013 17:56:28 +0000 Subject: file transfer - added protocol messages, handler functions, PICA_client API functions git-svn-id: svn://localhost/project_picapica/trunk@299 fb96df88-216d-11de-830c-f3023f12d8ac --- PICA_proto.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'PICA_proto.h') diff --git a/PICA_proto.h b/PICA_proto.h index d6b26bf..cfa0c05 100755 --- a/PICA_proto.h +++ b/PICA_proto.h @@ -28,6 +28,10 @@ #define PICA_PROTO_MSGUTF8 0x30 #define PICA_PROTO_MSGOK 0x40 +#define PICA_PROTO_SENDFILEREQUEST 0x50 +#define PICA_PROTO_ACCEPTEDFILE 0x51 +#define PICA_PROTO_DENIEDFILE 0x52 +#define PICA_PROTO_FILEFRAGMENT 0x53 #define PICA_PROTO_PINGREQ 0x68 #define PICA_PROTO_PINGREP 0x69 @@ -67,6 +71,9 @@ #define PICA_PROTO_MSGOK_SIZE 4 +#define PICA_PROTO_ACCEPTEDFILE_SIZE 4 +#define PICA_PROTO_DENIEDFILE_SIZE 4 + #define PICA_PROTO_PINGREQ_SIZE 4 #define PICA_PROTO_PINGREP_SIZE 4 @@ -89,6 +96,7 @@ #define PICA_PROTO_N2NMSG_MAXDATASIZE 65476 #define PICA_PROTO_C2CMSG_MAXDATASIZE 65532 +#define PICA_PROTO_C2CMSG_MAXFILENAMESIZE 255 struct PICA_proto_msg -- cgit v1.2.1