Using JDialUp API
Requirements:
- Windows operating system (7, Vista, XP, 200x, NT 4, Me, 98, 95)
- JRE must be 1.4 or later
- Your Windows environment PATH settings must include path to jdialup.dll and jdialup2.dll files, or they should be copied to your application start-up folder
Usage principles:
- JDial class contains methods to work with Microsoft™ RAS - dialing, hanging up, etc.
- Provide implementation of JDNotification interface in your application if you want to get callback notification about dialing process state, see JDialSample.java
- When dial-up connection is established you can use java.net and javax.net API for instance, as you've joined the network.
- When exiting or terminating your application it is recommended to perform hanging up of the "not yet established" connections with the shutdown hook method, see code samples in JDialSample.java marked with "// setting ShutDownHook" and "// ShutDownHook method" comments.
- JDialSample.java is a sample Java application. It demonstrates some functions of JDialUp package. Use files from sample folder:
- run.bat - to run the sample
- build.bat - to compile the sample
