al butler wrote:
I'm looking at the software languages and need an api
to monitor a port (example:80) AND intercept eveything
with the ability to stop whatever application is
trying to send or recieve data on it.
Not possible without getting into native code. To do what you want,
you'd have to hook into the TCP/IP protocol stack somewhere beneath the
OS's socket layer. Java's TCP/IP support sits atop the OS's socket
layer. You can write a Java application that can listen to any port
your OS will allow you to listen to, but your Java application will then
have to process all of the data.
Stopping an application is also OS-specific. If Java isn't starting
the process, you'll have to write native code to be able to do this as well.
This is not a good problem for Java. There is no way you're going to
be able to write this in Java without resorting to a whole lot of native
code, which will kill the portability of your program.
Brad BARCLAY
--
=-=-=-=-=-=-=-=-=
From the OS/2 WARP v4.5 Desktop of Brad BARCLAY.
The jSyncManager Project:
http://www.jsyncmanager.org