org.hfbk.vis.mcp.Pinger Class Reference

List of all members.

Public Member Functions

 Pinger ()
void run ()

Package Functions

abstract void pinged (List< SocketAddress > addresses)

Package Attributes

DatagramSocket socket
DatagramPacket paket = new DatagramPacket(new byte[32], 32)
InetAddress broadcastIP

Static Package Attributes

static int pingport = 7779

Detailed Description

a simple automated Pinger thread.

repeatedly broadcasts udp datagrams containing "PING" to pingport and tracks all remote sockets that answer "PONG".

pinged(..) should be overridden to handle the resulting list of active remote sockets.


Definition at line 24 of file

Constructor & Destructor Documentation

org.hfbk.vis.mcp.Pinger.Pinger (  ) 

Definition at line 36 of file

References org.hfbk.vis.mcp.Pinger.broadcastIP, org.hfbk.vis.mcp.Pinger.pingport, and org.hfbk.vis.mcp.Pinger.socket.

Member Function Documentation

void (  ) 

Definition at line 49 of file

References org.hfbk.vis.mcp.Pinger.broadcastIP, org.hfbk.vis.mcp.Pinger.paket, org.hfbk.vis.mcp.Pinger.pinged(), and org.hfbk.vis.mcp.Pinger.socket.

Here is the call graph for this function:

abstract void org.hfbk.vis.mcp.Pinger.pinged ( List< SocketAddress >  addresses  )  [package, pure virtual]

should be overridden to take the sucessfull remote sockets after each ping.

Referenced by

Here is the caller graph for this function:

Member Data Documentation

DatagramSocket org.hfbk.vis.mcp.Pinger.socket [package]

Definition at line 26 of file

Referenced by org.hfbk.vis.mcp.Pinger.Pinger(), and

DatagramPacket org.hfbk.vis.mcp.Pinger.paket = new DatagramPacket(new byte[32], 32) [package]

Definition at line 28 of file

Referenced by

InetAddress org.hfbk.vis.mcp.Pinger.broadcastIP [package]

Definition at line 30 of file

Referenced by org.hfbk.vis.mcp.Pinger.Pinger(), and

int org.hfbk.vis.mcp.Pinger.pingport = 7779 [static, package]

the local port used to broadcast PING

Definition at line 33 of file

Referenced by org.hfbk.vis.mcp.Pinger.Pinger().

The documentation for this class was generated from the following file:
Generated on Tue Apr 7 17:58:38 2009 for visclient by  doxygen 1.5.1