473,386 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Can Java hook port 80 effectively

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.

i would like to stay away from Windows DLL hell and
of course wold like something for multiple operating
systems.

I don't want to throw all my work in to a Windows
LSP (Layered service provider)

Any thoughts?
Jul 17 '05 #1
5 5237


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.

i would like to stay away from Windows DLL hell and
of course wold like something for multiple operating
systems.

I don't want to throw all my work in to a Windows
LSP (Layered service provider)

Any thoughts?

I'm not sure, having never tried this before, but you might be able to
set up a ServerSocket on port 80, listen to whatever you want. However,
I'm pretty sure that applications would have to query this ServerSocket
for data -- so, In a word, I doubt it.

Sorry. Maybe someone else has done this before.

Jul 17 '05 #2
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


Jul 17 '05 #3
Did ya look at Snoball? Pick? APL? Algol? Ada? Prolog? PL/1? PL/S? BCPL?
I hate Forth so I won't mention that (or cobol.)
(-_-)

"al butler" <al***@hotmail.com> wrote in message
news:f4**************************@posting.google.c om...
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.

i would like to stay away from Windows DLL hell and
of course wold like something for multiple operating
systems.

I don't want to throw all my work in to a Windows
LSP (Layered service provider)

Any thoughts?

Jul 17 '05 #4
Well ok thanks, but hey I'll look around.

While I'm here I must say I've never heard of "Snoball".
al
"Phil..." <ry***@ieee.org> wrote in message news:<mxQdb.628143$Ho3.120916@sccrnsc03>...
Did ya look at Snoball? Pick? APL? Algol? Ada? Prolog? PL/1? PL/S? BCPL?
I hate Forth so I won't mention that (or cobol.)
(-_-)

"al butler" <al***@hotmail.com> wrote in message
news:f4**************************@posting.google.c om...
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.

i would like to stay away from Windows DLL hell and
of course wold like something for multiple operating
systems.

I don't want to throw all my work in to a Windows
LSP (Layered service provider)

Any thoughts?

Jul 17 '05 #5
al***@hotmail.com (al butler) wrote in
news:f4**************************@posting.google.c om:
Well ok thanks, but hey I'll look around.

While I'm here I must say I've never heard of "Snoball".
al
I assume that he meant Snobol. A real language, good for pattern matching
(e.g. text). If you are interested, use Google to search for snobol. Free
compilers are available!


"Phil..." <ry***@ieee.org> wrote in message
news:<mxQdb.628143$Ho3.120916@sccrnsc03>...
Did ya look at Snoball? Pick? APL? Algol? Ada? Prolog? PL/1? PL/S?

<snip>
--
Ian Shef 805/F6 * These are my personal opinions
Raytheon Company * and not those of my employer.
PO Box 11337 *
Tucson, AZ 85734-1337 *
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: George Palmer | last post by:
Hi Guys, Is there any way to speed up an event firing if you know it is going to occur and don't want to proceed in the program code until it has? I guess there is a way to hand over control or...
12
by: tmb | last post by:
1 - Is Microsoft dotnet a Virtual Machine... like the Java Virtual Machine... that will run on any operating system? 2 - If so, does Microsoft give away the dotnet development system like Sun...
8
by: Steven T. Hatton | last post by:
I've had an idea kicking around in my head regarding how to create a library of classes (templates?) that provide the same kind of functionality as do Java classes which all derive from the UBC...
3
by: MLH | last post by:
I found some code Dev Ashish posted nearly a decade ago in response to someone's inquiry describing their need to dial a number, monitor call progress and determine whether it was busy. This was...
6
by: Charles Law | last post by:
I have a class, which implements an interface. Let's say, that the interface looks something like Public Interface IEventSinks Sub ValueChanged(sender As Object, e As ValueChangedEventArgs) Sub...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
4
by: deboshripauL | last post by:
hii frenz.. can sumbody tell me d way to go abt interfacing of java programs wid USB devices n ports... dis is reqd 4 a project m tryin 2 work on.. d details of d project r as follows: To...
318
by: King Raz | last post by:
The shootout site has benchmarks comparing different languages. It includes C# Mono vs Java but not C# .NET vs Java. So I went through all the benchmark on the site ... ...
1
Ganesh9u
by: Ganesh9u | last post by:
Hi All, import org.sf.feeling.swt.win32.extension.hook.Hook; import org.sf.feeling.swt.win32.extension.hook.data.HookData; import org.sf.feeling.swt.win32.extension.hook.data.MouseHookData; ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.