Can Java hook port 80 effectively

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • al butler

    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?
  • Alexander Bryanson

    #2
    Re: Can Java hook port 80 effectively



    al butler wrote:[color=blue]
    > 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?[/color]


    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.

    Comment

    • Brad BARCLAY

      #3
      Re: Can Java hook port 80 effectively

      al butler wrote:[color=blue]
      > 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.[/color]

      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
      

      Comment

      • Phil...

        #4
        Re: Can Java hook port 80 effectively

        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" <al881@hotmail. com> wrote in message
        news:f4fc5bfd.0 309281152.2fa4b cb7@posting.goo gle.com...[color=blue]
        > 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?[/color]


        Comment

        • al butler

          #5
          Re: Can Java hook port 80 effectively

          Well ok thanks, but hey I'll look around.

          While I'm here I must say I've never heard of "Snoball".
          al


          "Phil..." <rynes@ieee.org > wrote in message news:<mxQdb.628 143$Ho3.120916@ sccrnsc03>...[color=blue]
          > 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" <al881@hotmail. com> wrote in message
          > news:f4fc5bfd.0 309281152.2fa4b cb7@posting.goo gle.com...[color=green]
          > > 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?[/color][/color]

          Comment

          • Ian Shef

            #6
            Re: Can Java hook port 80 effectively

            al881@hotmail.c om (al butler) wrote in
            news:f4fc5bfd.0 309291040.39126 6dd@posting.goo gle.com:
            [color=blue]
            > Well ok thanks, but hey I'll look around.
            >
            > While I'm here I must say I've never heard of "Snoball".
            > al[/color]

            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!
            [color=blue]
            >
            >
            > "Phil..." <rynes@ieee.org > wrote in message
            > news:<mxQdb.628 143$Ho3.120916@ sccrnsc03>...[color=green]
            >> Did ya look at Snoball? Pick? APL? Algol? Ada? Prolog? PL/1? PL/S?[/color][/color]
            <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 *

            Comment

            Working...