jingle-ibb/ibb.h
author Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
Mon, 16 Aug 2010 02:04:50 +0200
changeset 129 2d5c3efda92a
parent 124 7773e8147c29
child 131 943c3f938cb4
permissions -rw-r--r--
Add a timeout to the AckHandlers.

#ifndef __JINGLEIBB_H__
#define __JINGLEIBB_H__ 1

#define NS_JINGLE_TRANSPORT_IBB "urn:xmpp:jingle:transports:ibb:0"
#define NS_TRANSPORT_IBB "http://jabber.org/protocol/ibb"

#define IBB_BLOCK_SIZE_MAX 8192

typedef struct {
  /* Size of the blocks */
  guint blocksize;

  /* The identifiant of the transfer */
  gchar *sid;

  gchar *buf;
  
  gint size_buf;
  
  gint dataleft;
  
  gint64 seq;
  
} JingleIBB;

#endif