Results 1 to 4 of 4

Thread: File transfer in network

  1. #1
    Join Date
    Sep 2013
    Posts
    107
    Thanks
    16
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default File transfer in network

    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..

  2. #2
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: File transfer in network

    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.

    Qt Code:
    1. : ("Server:* OK Gimap ready for requests from 2141.60.43.3234 a46if15970528eei.95
    2. ", "Client:C001 CAPABILITY
    3. ", "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
    4. ", "Server:C001 OK Thats all she wrote! a46if15970528eei.95
    5. ", "Client:A002 AUTHENTICATE PLAIN *encodeddata_user_pass*
    6. ", "Server:* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH
    7. ", "Server:A002 OK username@gmail.com Peter Spencer authenticated (Success)
    8. ", "Client:L001 LIST "" "*"
    9. ", "Server:* LIST (\HasNoChildren) "/" "INBOX"
    10. ", "Server:* LIST (\Noselect \HasChildren) "/" "[Gmail]"
    11. ", "Server:* LIST (\HasNoChildren \Drafts) "/" "[Gmail]/Bozze"
    12. ", "Server:* LIST (\HasNoChildren \Trash) "/" "[Gmail]/Cestino"
    13. ", "Server:* LIST (\HasNoChildren) "/" "[Gmail]/Draft"
    14. ", "Server:* LIST (\HasNoChildren \Important) "/" "[Gmail]/Importanti"
    15. ", "Server:* LIST (\HasNoChildren \Sent) "/" "[Gmail]/Posta inviata"
    16. ", "Server:* LIST (\HasNoChildren \Junk) "/" "[Gmail]/Spam"
    17. ", "Server:* LIST (\HasNoChildren \Flagged) "/" "[Gmail]/Speciali"
    18. ", "Server:* LIST (\HasNoChildren \All) "/" "[Gmail]/Tutti i messaggi"
    19. ", "Server:L001 OK Success
    20. ", "Client:M002 SELECT INBOX
    21. ", "Server:* FLAGS (\Answered \Flagged \Draft \Deleted \Seen NonJunk Junk)
    22. ", "Server:* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen NonJunk Junk \*)] Flags permitted.
    23. ", "Server:* OK [UIDVALIDITY 1] UIDs valid.
    24. ", "Server:* 5 EXISTS
    25. ", "Server:* 0 RECENT
    26. ", "Server:* OK [UIDNEXT 202] Predicted next UID.
    27. ", "Server:* OK [HIGHESTMODSEQ 66770]
    28. ", "Server:M002 OK [READ-WRITE] INBOX selected. (Success)
    29. ", "Client:U501 FETCH 1 (BODY[])
    30. ", "Client:U501 FETCH 2 (BODY[])
    31. ", "Client:U501 FETCH 3 (BODY[])
    32. ", "Client:U501 FETCH 4 (BODY[])
    33. ", "Client:U501 FETCH 5 (BODY[])
    34. ")
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Dec 2012
    Posts
    197
    Thanks
    25
    Thanked 41 Times in 33 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: File transfer in network

    Implement your own protocols to differentiate between a chat message and a data file.
    Last edited by toufic.dbouk; 7th October 2013 at 09:10.

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: File transfer in network

    Or use a separate connection.

    Cheers,
    _

Similar Threads

  1. Bluetooth file transfer
    By shweta in forum Qt Programming
    Replies: 1
    Last Post: 25th March 2011, 13:17
  2. Bluetooth file transfer.
    By nachikayt borrah in forum Qt Programming
    Replies: 1
    Last Post: 23rd March 2011, 19:35
  3. Replies: 1
    Last Post: 11th February 2011, 04:32
  4. File Transfer in Qt
    By Rajeshsan in forum Qt Programming
    Replies: 6
    Last Post: 11th February 2011, 04:13
  5. Replies: 2
    Last Post: 2nd April 2008, 17:28

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.