Re: Incoming/Sent traffic data

From: Maciek Sakrejda <msakrejda(at)truviso(dot)com>
To: Israel Ben Guilherme Fonseca <israel(dot)bgf(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Incoming/Sent traffic data
Date: 2011-05-15 15:45:22
Message-ID: BANLkTi=6=_OYH0yM-YVEg4GNONZ3rMFumg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Marc-André Laverdière 2011-05-18 04:49:41 Support for cert auth in JDBC
Previous Message Johann 'Myrkraverk' Oskarsson 2011-05-14 16:05:48 Re: Incoming/Sent traffic data