473,654 Members | 3,114 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5241


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.goo gle.com...
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.628 143$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.goo gle.com...
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.c om (al butler) wrote in
news:f4******** *************** ***@posting.goo gle.com:
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.628 143$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
2024
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 perhaps give the event stack a kick (if there is one)? Thanks, George
12
4208
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 does the Java Developmet system? I was considering learning Java for my next project and someone suggested dotnet instead. 3 - Can someone give me the pro's & con's of each?
8
2038
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 Object. There is no UBC in C++, nor will there ever be one (well, there actually /is/ a UBC in C++, but it is a pure abstraction). One feature of user defined Java classes is that they all have a member derived from the java.lang.Class object. The...
3
2663
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 back when A2.0 was more widely used, so the code is Access Basic. Autodialer is not the answer, as it requires users to take handsets off-hook manually. I find myself in need of more direct control of a voice/data/fax modem from an A97 program....
6
1783
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 StateUpdated(sender As Object, e As StateUpdatedEventArgs) End Interface In practice, the interface contains many more event handlers like this, but you get the picture.
1
9623
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 and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
4
9165
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 control the devices or equipments from the remote place through a web-page. Here all the devices which are to be controlled are connected to the relays(acts as switches)on the webserver circuit board. The web-server circuit is connected to LAN or...
318
10952
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 ... http://kingrazi.blogspot.com/2008/05/shootout-c-net-vs-java-benchmarks.html Just to keep the post on topic for my friends at comp.lang.c++, how do I play default windows sounds with C++?
1
4344
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; import org.sf.feeling.swt.win32.extension.hook.listener.HookEventListener; public class HotMouse {
0
8379
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8816
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8709
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8596
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7309
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4297
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2719
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1924
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.