PDA

View Full Version : File transfer in network



Vivek1982
7th October 2013, 07:35
Dear All...

I need to develop a Qt Application on network chat basis, I need to have both chat and data transfer. How to differentiate the packet data on receiving side either chat msg or data of file transfer.Currently I have created a socket and chat msg, I need to integrate File Transfer also...

Thanks in Advance..:)

patrik08
7th October 2013, 07:51
Is like Imap handshake ssl over QSslSocket is comming data clean text or binary file..
Incomming data mail like 7MB or over...

Imap protocol is like chat and many data

You can red the imap server QT https://code.google.com/p/omapd/
and client the are so many possibility to talk and send file and over many free port nr.




: ("Server:* OK Gimap ready for requests from 2141.60.43.3234 a46if15970528eei.95
", "Client:C001 CAPABILITY
", "Server:* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN
", "Server:C001 OK Thats all she wrote! a46if15970528eei.95
", "Client:A002 AUTHENTICATE PLAIN *encodeddata_user_pass*
", "Server:* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH
", "Server:A002 OK username@gmail.com Peter Spencer authenticated (Success)
", "Client:L001 LIST "" "*"
", "Server:* LIST (\HasNoChildren) "/" "INBOX"
", "Server:* LIST (\Noselect \HasChildren) "/" "[Gmail]"
", "Server:* LIST (\HasNoChildren \Drafts) "/" "[Gmail]/Bozze"
", "Server:* LIST (\HasNoChildren \Trash) "/" "[Gmail]/Cestino"
", "Server:* LIST (\HasNoChildren) "/" "[Gmail]/Draft"
", "Server:* LIST (\HasNoChildren \Important) "/" "[Gmail]/Importanti"
", "Server:* LIST (\HasNoChildren \Sent) "/" "[Gmail]/Posta inviata"
", "Server:* LIST (\HasNoChildren \Junk) "/" "[Gmail]/Spam"
", "Server:* LIST (\HasNoChildren \Flagged) "/" "[Gmail]/Speciali"
", "Server:* LIST (\HasNoChildren \All) "/" "[Gmail]/Tutti i messaggi"
", "Server:L001 OK Success
", "Client:M002 SELECT INBOX
", "Server:* FLAGS (\Answered \Flagged \Draft \Deleted \Seen NonJunk Junk)
", "Server:* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen NonJunk Junk \*)] Flags permitted.
", "Server:* OK [UIDVALIDITY 1] UIDs valid.
", "Server:* 5 EXISTS
", "Server:* 0 RECENT
", "Server:* OK [UIDNEXT 202] Predicted next UID.
", "Server:* OK [HIGHESTMODSEQ 66770]
", "Server:M002 OK [READ-WRITE] INBOX selected. (Success)
", "Client:U501 FETCH 1 (BODY[])
", "Client:U501 FETCH 2 (BODY[])
", "Client:U501 FETCH 3 (BODY[])
", "Client:U501 FETCH 4 (BODY[])
", "Client:U501 FETCH 5 (BODY[])
")

toufic.dbouk
7th October 2013, 08:30
Implement your own protocols to differentiate between a chat message and a data file.

anda_skoa
11th October 2013, 09:43
Or use a separate connection.

Cheers,
_