Results 1 to 4 of 4

Thread: client/server without port

  1. #1
    Join Date
    Mar 2006
    Posts
    48
    Thanks
    5
    Thanked 4 Times in 3 Posts

    Default client/server without port

    i need provides communication capabilities between
    different applications on localhost
    but i can't reserve port for it
    so i need something like Qtopia::QCopChannel

    how i can realise this?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: client/server without port

    Use shared memory, message, queues, shared resource (like a file), unix domain sockets or search google for InterProcess Communication (IPC). You can also try to use already existing frameworks like dcop or Corba. BTW. Why can't you use a network socket?

  3. #3
    Join Date
    Mar 2006
    Posts
    48
    Thanks
    5
    Thanked 4 Times in 3 Posts

    Default Re: client/server without port

    i just want to use Unix socket
    but find nothing in Qt
    so u right network socket is single way

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: client/server without port

    It's not the only way. You can probably create a unix domain socket (or simply a pipe) and then pass its descriptor to QTcpSocket (or QUdpSocket). And you can use all other mentioned solutions.

Similar Threads

  1. serial port same local machine
    By adamatic in forum Qt Programming
    Replies: 7
    Last Post: 3rd February 2009, 07:29
  2. QUdpSocket -- Rebinding with Different Port Numbers
    By swamyonline in forum Qt Programming
    Replies: 0
    Last Post: 22nd January 2009, 13:39
  3. First attempt to display serial port data on GUI
    By ShaChris23 in forum Newbie
    Replies: 12
    Last Post: 4th May 2007, 09:14
  4. Replies: 6
    Last Post: 18th April 2007, 15:04
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.