org.hfbk.vis.UdpListener Class Reference

Collaboration diagram for org.hfbk.vis.UdpListener:

Collaboration graph
List of all members.

Public Member Functions

void run ()
void close ()

Package Functions

 UdpListener (VisClient client)
void parseMsg (String msg)
String script (String js)

Package Attributes

DatagramSocket socket = null
DatagramPacket paket = null
VisClient client
ScriptRouter router
float nickNeutral = 0x160
float rollNeutral = 0x160

Static Package Attributes

static int udpport = 7778

Detailed Description

a thread to look for udp messages

some hardcoded messagehandling here... see parser below!

verboseity should be used carefully here, as an unvisible shell window could get fed up rapidly stalling stdout until its buffer is displayed. this could then freeze the whole app. so its disabled by default (Prefs.current.verbose).


Definition at line 31 of file

Constructor & Destructor Documentation

org.hfbk.vis.UdpListener.UdpListener ( VisClient  client  )  [package]

Definition at line 44 of file

References org.hfbk.vis.UdpListener.client, org.hfbk.vis.UdpListener.paket, org.hfbk.vis.UdpListener.router, org.hfbk.vis.UdpListener.socket, and org.hfbk.vis.UdpListener.udpport.

Member Function Documentation

void (  ) 

Definition at line 65 of file

References org.hfbk.vis.UdpListener.paket, org.hfbk.vis.UdpListener.parseMsg(), org.hfbk.vis.UdpListener.script(), and org.hfbk.vis.UdpListener.socket.

Here is the call graph for this function:

void org.hfbk.vis.UdpListener.close (  ) 

Definition at line 100 of file

References org.hfbk.vis.UdpListener.socket.

Referenced by org.hfbk.vis.VisTests.main(), and org.hfbk.vis.VisClientPanel.paintGL().

Here is the caller graph for this function:

void org.hfbk.vis.UdpListener.parseMsg ( String  msg  )  [package]

Definition at line 123 of file

References org.hfbk.vis.VisClientPanel.allesfresser, org.hfbk.vis.UdpListener.client, org.hfbk.vis.MouseViewpoint.dangle, org.hfbk.vis.MouseViewpoint.delevation, org.hfbk.vis.MouseViewpoint.dforward, org.hfbk.vis.ScriptRouter.dispatch(), org.hfbk.vis.MouseViewpoint.dlift, org.hfbk.vis.MouseViewpoint.droll, org.hfbk.vis.Viewpoint.elevation, org.hfbk.vis.visnode.VisNode.findNode(), org.hfbk.vis.Allesfresser.friss(), org.hfbk.vis.VisClient.mouseViewpoint, org.hfbk.vis.UdpListener.nickNeutral, org.hfbk.vis.VisClient.panel, org.hfbk.vis.Viewpoint.roll, org.hfbk.vis.UdpListener.rollNeutral, org.hfbk.vis.VisClient.root, and org.hfbk.vis.UdpListener.router.

Referenced by

Here is the call graph for this function:

Here is the caller graph for this function:

String org.hfbk.vis.UdpListener.script ( String  js  )  [package]

Definition at line 205 of file

References org.hfbk.vis.UdpListener.client, and org.hfbk.util.Scripter.evaluate().

Referenced by

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

int org.hfbk.vis.UdpListener.udpport = 7778 [static, package]

the port the UDP server listens to

Definition at line 35 of file

Referenced by org.hfbk.vis.UdpListener.UdpListener().

DatagramSocket org.hfbk.vis.UdpListener.socket = null [package]

Definition at line 36 of file

Referenced by org.hfbk.vis.UdpListener.close(),, and org.hfbk.vis.UdpListener.UdpListener().

DatagramPacket org.hfbk.vis.UdpListener.paket = null [package]

Definition at line 37 of file

Referenced by, and org.hfbk.vis.UdpListener.UdpListener().

VisClient org.hfbk.vis.UdpListener.client [package]

Definition at line 38 of file

Referenced by org.hfbk.vis.UdpListener.parseMsg(), org.hfbk.vis.UdpListener.script(), and org.hfbk.vis.UdpListener.UdpListener().

ScriptRouter org.hfbk.vis.UdpListener.router [package]

Definition at line 41 of file

Referenced by org.hfbk.vis.UdpListener.parseMsg(), and org.hfbk.vis.UdpListener.UdpListener().

float org.hfbk.vis.UdpListener.nickNeutral = 0x160 [package]

parse the message and dispatch them. general format is [command, arg1, arg2, ...]

current commands are:

[scale, name, value] draws a scale at the origin showing the value which is a hex string of format 0x???? in the range 0x0000-0x03FF (10 bit). this is used for incoming analog values. a name of "pot1" is handled specially: it adjust the timescale instead a visual scale, thus speeding the whole client up or down.

msg the message

Definition at line 120 of file

Referenced by org.hfbk.vis.UdpListener.parseMsg().

float org.hfbk.vis.UdpListener.rollNeutral = 0x160 [package]

Definition at line 120 of file

Referenced by org.hfbk.vis.UdpListener.parseMsg().

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