December 17, 2003

Sending Data to a Port in UDP Format

The ByteBuffer Class (from the java.nio package) helps you to write data in UDP by converting them to the respective bytes they generally occupy. This is especially helpful when trying

Listing Files in a Directory with Perl

The following code: `ls -t ../../html/indexed | awk {‘print $9’}` Will return an array of files, eg: @files=`ls -t ../../html/indexed | awk {‘print $9’}`; @files is now an array containing

A Container for Pointers to Functions

Many times, you’ll find you need to create a container for pointers to functions. The example below demonstrates the syntax for a vector of pointers to functions. For simplicity’s sake,