msgchannel.h 398 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#ifndef _MSGCHANNEL_H_
#define _MSGCHANNEL_H_

#include <jni.h>

#include "connection.h"


struct message {
	jint message_flags;
	jint control_size;
	jint classcode_size;
	const uint8_t * control;
	const uint8_t * classcode;
};


ssize_t message_send (struct connection * conn, struct message * msg);
void message_recv (struct connection * conn, struct message * msg);

#endif /* _MSGCHANNEL_H_ */