Results 1 to 2 of 2

Thread: Port connection

  1. #1
    Join Date
    Jul 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Port connection

    Hi all,

    I have a application which connects to a port with a specified IP-address, say telnet with port-23. If some other application is also connected to the same port, it alows the connection to happen. How can the connection of two applications on the same port be avoided??

    Please share your ideas!!!!!

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Port connection

    You mean you want to limit connection on the machine you are connecting to ? If its a server application written by you, you can modify it to close connection if one connection is already established. This way u limit the number.

    If the server application is not your code, then there must be some API or way to know if other clients are connected as well. If they are, you can from your client application gracefully close the connection.

Similar Threads

  1. setting port in qexserialport
    By Myx in forum Newbie
    Replies: 2
    Last Post: 15th April 2011, 15:49
  2. serial port same local machine
    By adamatic in forum Qt Programming
    Replies: 7
    Last Post: 3rd February 2009, 07:29
  3. QUdpSocket -- Rebinding with Different Port Numbers
    By swamyonline in forum Qt Programming
    Replies: 0
    Last Post: 22nd January 2009, 13:39
  4. Client/Server Error: BadIDChoice
    By 3nc31 in forum Qt Programming
    Replies: 5
    Last Post: 27th November 2007, 10:22
  5. Replies: 6
    Last Post: 18th April 2007, 15:04

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.