Re: Incoming/Sent traffic data - Mailing list pgsql-jdbc

From Maciek Sakrejda
Subject Re: Incoming/Sent traffic data
Date
Msg-id BANLkTi=6=_OYH0yM-YVEg4GNONZ3rMFumg@mail.gmail.com
Whole thread Raw
In response to Re: Incoming/Sent traffic data  (Israel Ben Guilherme Fonseca <israel.bgf@gmail.com>)
Responses Re: Incoming/Sent traffic data
List pgsql-jdbc
>Macieck ->
>A much more portable solution indeed.

Sure, but there's trade-offs--you have to reinvent the wheel (or find
existing reimplementations of the different pieces of the wheel).

>Macieck, another question about the wireshark.
> Is there any way to control it from a java code?

You don't want to control a GUI program from another program if you
can help it. Wireshark relies on libpcap, a library for listening to
(and interpreting) network traffic. Jpcap [1] is a Java wrapper for
libpcap. You *should* be able to do everything you need through Jpcap.
It doesn't understand the PostgreSQL wire protocol like Wireshark
does, but if you need to do that, it might be easier to write your own
wrapper rather than try to control Wireshark programmatically.

[1]: http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/

Thanks,
---
Maciek Sakrejda | System Architect | Truviso

1065 E. Hillsdale Blvd., Suite 215
Foster City, CA 94404
(650) 242-3500 Main
www.truviso.com

pgsql-jdbc by date:

Previous
From: "Johann 'Myrkraverk' Oskarsson"
Date:
Subject: Re: Incoming/Sent traffic data
Next
From: Marc-André Laverdière
Date:
Subject: Support for cert auth in JDBC