libnetdude 0.11 (Default branch)


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News libnetdude 0.11 (Default branch)
# 1  
Old 09-01-2008
libnetdude 0.11 (Default branch)

libnetdude is the packet manipulation backend ofthe Netdude trace file editing framework. Itallows you to perform trace file manipulations ata much higher level of abstraction than codewritten directly for the pcap interface. It alsosupports plugins (dynamically loaded libraries)that can essentially do whatever the programmerdesires. When developers write their packetmanipulation code as libnetdude plugins, thisinstantly allows other developers to use theirtools. It provides data types and APIs for themost common situations when dealing with libpcaptrace files: trace files of arbitrary size,packets, network protocols, packet iterators, andpacket filters, just to name a few. License: BSD License (revised)Changes:
This release adds support for VLAN-tagged packets. It fixes a small number of bugs in the handling of unused space in packets.Image

Image

More...
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question
PG_TRACE(3)															       PG_TRACE(3)

pg_trace - Enable tracing a PostgreSQL connection

SYNOPSIS
bool pg_trace (string $pathname, [string $mode = "w"], [resource $connection]) DESCRIPTION
pg_trace(3) enables tracing of the PostgreSQL frontend/backend communication to a file. To fully understand the results, one needs to be familiar with the internals of PostgreSQL communication protocol. For those who are not, it can still be useful for tracing errors in queries sent to the server, you could do for example grep '^To backend' trace.log and see what queries actually were sent to the PostgreSQL server. For more information, refer to the PostgreSQL Documentation. PARAMETERS
o $pathname - The full path and file name of the file in which to write the trace log. Same as in fopen(3). o $mode - An optional file access mode, same as for fopen(3). o $connection - PostgreSQL database connection resource. When $connection is not present, the default connection is used. The default connection is the last connection made by pg_connect(3) or pg_pconnect(3). RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 pg_trace(3) example <?php $pgsql_conn = pg_connect("dbname=mark host=localhost"); if ($pgsql_conn) { pg_trace('/tmp/trace.log', 'w', $pgsql_conn); pg_query("SELECT 1"); pg_untrace($pgsql_conn); // Now /tmp/trace.log will contain backend communication } else { print pg_last_error($pgsql_conn); exit; } ?> SEE ALSO
fopen(3), pg_untrace(3). PHP Documentation Group PG_TRACE(3)