I want to develop a program which can disconnect my active internet connection. can anybody help me?
12 replies to this topic
#1
Posted 11 March 2011 - 10:54 AM
|
|
|
#2
Posted 11 March 2011 - 01:16 PM
Java is probably not the best language for this, and it will be highly OS dependent. Doing this on Windows is quite different from Mac or Linux.
#3
Posted 11 March 2011 - 01:17 PM
You can create a native library in C and load it in to your Java application, although as WP suggested this is not the best language to be doing this in.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#4
Posted 12 March 2011 - 08:48 AM
i want to develop the program for windows xp... how can i start my study. i want to develop only with java
WingedPanther said:
Java is probably not the best language for this, and it will be highly OS dependent. Doing this on Windows is quite different from Mac or Linux.
#5
Posted 12 March 2011 - 08:49 AM
i want to develop the program to develop my concept only. so i want to develop only with java. not with C. please help me
Alexander said:
You can create a native library in C and load it in to your Java application, although as WP suggested this is not the best language to be doing this in.
#6
Posted 12 March 2011 - 02:38 PM
Java runs in a virtual machine, it is simply not the language to be doing this. You can only work with the native networking if you utilize JNI (Java Native Interface) and/or load a C library.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#7
Posted 12 March 2011 - 07:30 PM
I never heared about JNI (Java Native Interface). Please tell me more about that. I want to know more about that.
As i want to develope the program only for education purpose and as i am practising JAVA only i don't want to develop it throw C.
As i want to develope the program only for education purpose and as i am practising JAVA only i don't want to develop it throw C.
Alexander said:
Java runs in a virtual machine, it is simply not the language to be doing this. You can only work with the native networking if you utilize JNI (Java Native Interface) and/or load a C library.
#8
Posted 12 March 2011 - 07:31 PM
I can tell you that you still need to write a C library to perform this.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#9
Posted 12 March 2011 - 07:44 PM
ohh! C will not leave me! ha ha....
Ok sir let me know ...
Ok sir let me know ...
Alexander said:
I can tell you that you still need to write a C library to perform this.
#10
Posted 13 March 2011 - 03:35 AM
For windows you can just access the commandpromt using the Runtime class and execute "ipconfig /release" I guess :p
#11
Posted 14 March 2011 - 04:37 AM
i want to disconnect my internet connection after a certain time (e.g., 1 h 2 min 32 sec)
is that possible throw command prompt
is that possible throw command prompt
wim DC said:
For windows you can just access the commandpromt using the Runtime class and execute "ipconfig /release" I guess :p
#12
Posted 14 March 2011 - 08:39 AM
Just do Thread.sleep(milliseconds) and execute runtime after it.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









