/// <summary> /// HTTPX client. /// </summary> /// <param name="Client">XMPP Client.</param> /// <param name="E2e">End-to-end encryption interface.</param> /// <param name="MaxChunkSize">Max Chunk Size to use.</param> public HttpxClient(XmppClient Client, IEndToEndEncryption E2e, int MaxChunkSize) : base(Client) { this.e2e = E2e; this.maxChunkSize = MaxChunkSize; HttpxChunks.RegisterChunkReceiver(this.client); }
/// <summary> /// HTTPX client. /// </summary> /// <param name="Client">XMPP Client.</param> /// <param name="MaxChunkSize">Max Chunk Size to use.</param> public HttpxClient(XmppClient Client, int MaxChunkSize) : base(Client) { this.e2e = null; this.maxChunkSize = MaxChunkSize; HttpxChunks.RegisterChunkReceiver(this.client); }
/// <summary> /// HTTPX server. /// </summary> /// <param name="Client">XMPP Client.</param> /// <param name="Server">HTTP Server.</param> /// <param name="MaxChunkSize">Max Chunk Size to use.</param> public HttpxServer(XmppClient Client, HttpServer Server, int MaxChunkSize) { this.client = Client; this.server = Server; this.maxChunkSize = MaxChunkSize; HttpxChunks.RegisterChunkReceiver(this.client); this.client.RegisterIqSetHandler("req", HttpxClient.Namespace, this.ReqReceived, false); this.client.RegisterIqGetHandler("req", HttpxClient.Namespace, this.ReqReceived, false); this.client.RegisterMessageHandler("cancel", HttpxClient.Namespace, this.CancelReceived, false); }