[Delta] Iris questions
K. Nimer
stormway at gmail.com
Wed Mar 26 14:35:45 PDT 2008
On Wed, Mar 26, 2008 at 10:32 AM, Justin Karneges <justin-psi2 at affinix.com>
wrote:
> On Wednesday 26 March 2008 5:36 am, K. Nimer wrote:
> > On Tue, Mar 25, 2008 at 12:59 PM, Justin Karneges <
> justin-psi2 at affinix.com>
> >
> > wrote:
> > > Did you change it so the program doesn't exit until the file has
> finished
> > > sending?
> >
> > is it something different than sending the message? because it sends a
> > message now , so that means i didnt touch the way , we close client
>
> When you close Client and wait for the finished signal, this ensures all
> pending stanzas are sent to the server. In the case of a file transfer,
> this
> is simply the file transfer request. The file itself is not sent until
> the
> other person accepts the request.
>
> So yes, you should not close Client until the entire file has transferred.
> However, even if you are closing it immediately after offering the file,
> the
> other person should at least receive the file transfer request (but when
> they
> press Accept, it will fail).
>
>
thats my point
i dont even receive a file request
and i close the client right after i send the file so this is wierd
>
> > > Try listening to the error() signal from the FileTransfer.
> >
> > i tried but the thing is that error() << has one parameter
> > and sendFile has many so they are not compitable,
>
> connect(ft, SIGNAL(error(int)), SLOT(ft_error(int)));
>
> define the slot:
>
> void ft_error(int errorCode)
> {
> std::cout << "Error sending file: " << errorCode << std::endl;
> ft->deleteLater();
> }
RESULT : error sending file: 1
please note that i always receive the message , so i recieve the message
then i receive: error sending file: 1
>
>
> Please learn Qt signals and slots. :P
hahaha man i know how use qt signals and slots i just didnt know that there
exists a slot called error and i thought there exists a signal but didn't
know its name, like i didnt know there is somethign called error() lol
i should have looked tho :P my mistake
sorry again about that :( lol
>
>
> -Justin
> _______________________________________________
> Delta mailing list
> Delta at lists.affinix.com
> http://lists.affinix.com/listinfo.cgi/delta-affinix.com
>
--
Regards;
Khalid Nimer
Education:
Concordia University
Bachelor of Computer Science (ECP)
Option: Software Systems
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.affinix.com/pipermail/delta-affinix.com/attachments/20080326/20b73243/attachment.html
More information about the Delta
mailing list