public class WiFiClient
extends java.lang.Object
implements java.awt.event.ActionListener, java.lang.Runnable
A complete C++ implementation is messier, due to the need for additional layers to mediate between the Java and C++ code:WiFiClient JavaGUIAdapter LinkLayer (802.11~ implementation) RF
See the project documentation for additional information on compiling an 802.11~ project.WiFiClient (Java) CppGUIAdapter (Java) cppStubs (C++) linklayer (802.11~ implementation in C++) RF (C++ JNI layer) RF (Java implementation of RF layer)
Constructor and Description |
---|
WiFiClient(short MACaddr,
GUIClientInterface theLinkLayer)
The constructor builds the GUI and prepares it for use.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Handler for button-press events.
|
void |
addText(java.lang.String msg)
Call this to append text to the scrolling output pane.
|
static void |
main(java.lang.String[] args)
The main method selects a MAC address, creates a WiFiClient GUI and associates
it with the link layer implementation, then waits in an infinite loop watching
for stream output from the link layer and routing into the GUI display.
|
void |
run()
The run method should be executed by the event-dispatching thread.
|
public WiFiClient(short MACaddr, GUIClientInterface theLinkLayer)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void addText(java.lang.String msg)
msg
- Text to add to the scrolling panepublic void run()
run
in interface java.lang.Runnable
public static void main(java.lang.String[] args)