Results 1 to 7 of 7

Thread: VPN connection

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

    Default VPN connection

    I have a dial up modem and I want to write a program that can create new VPN connection profile, enumerate all profile and connect to network by choosing one of those profile.
    Which Qt class can I use to do that?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    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: VPN connection

    To do what? To write a program? A text editor would be a good start.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jul 2010
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: VPN connection

    Quote Originally Posted by wysota View Post
    To do what? To write a program? A text editor would be a good start.

    I mean which Qt class I can use to establish a connection to network using the modem.
    By choosing one of the connection profile in the network manager and clicking connect, I can connect to network. Now I want to do that by clicking a "connect" button in my program

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    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: VPN connection

    I don't think there is a class in Qt that makes dialup connections. You can look at QNetorkConfigurationManager and family but I don't see anything related to dialup there.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: VPN connection

    Whats a dial up modem ?

    If your using Windows, you can typically configure it to automatically dial a default connection upon a program requesting to connect to an address outside your local LAN. Last time I used it (10 or 15 years ago) it wasn't too smart, but maybe it's better now. I think it was called "Autodial".

    Otherwise you can use OS-specific calls. Eg. on Windows, you can just call InternetAutodial(INTERNET_AUTODIAL_FORCE_UNATTENDE D)

  6. #6
    Join Date
    Jul 2010
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: VPN connection

    Thank you wysota,

    I looked at all the Network class but could not find anything about the VPN connection. I think there will be some Windows APIs for it.

    By the way, are there some Qt network class that I can monitor the upload / download speed?

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    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: VPN connection

    Quote Originally Posted by baobui View Post
    By the way, are there some Qt network class that I can monitor the upload / download speed?
    No, there are not.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 1
    Last Post: 2nd April 2010, 06:42
  2. Connection to dbf
    By codeman in forum Qt Programming
    Replies: 0
    Last Post: 28th March 2010, 20:02
  3. Regarding MYSQL connection
    By sudheer168 in forum Qt Programming
    Replies: 3
    Last Post: 16th October 2009, 15:34
  4. Connection with MS SQL
    By manish_pesit in forum Qt Programming
    Replies: 4
    Last Post: 13th September 2006, 07:47
  5. connection
    By mickey in forum Qt Programming
    Replies: 4
    Last Post: 20th July 2006, 20:25

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.