Model Railroad System 2.2.2
|
Connect to a OpenLCB over Tcp/Ip. More...
Public Member Functions | |
OpenLCBOverTcp (name,...) | |
Constructor: Connect to a Tcp/Ip OpenLCB network. More... | |
setMessageHandler (handler) | |
Set the message handler. More... | |
setSentMessageHandler (handler) | |
Set the sent message handler. More... | |
sendMessage (...) | |
Send a message on the OpenLCB bus. More... | |
Static Public Member Functions | |
static | buildPortnidandhostDialog () |
Function to construct the Dialog to ask the user for a port, host, and Node ID. More... | |
static | _CancelOpenTransport () |
Function bound to the Cancel button. More... | |
static | _OpenTransport () |
Function bound to the Open button. More... | |
static | requiredOpts () |
Return the default option list. More... | |
static | drawOptionsDialog (...) |
Pop up the Options Dialog box. More... | |
Static Public Attributes | |
static | portnidandhostDialog |
Dialog to ask the user for a port, host, and Node ID. More... | |
static | portLSpin |
LabelSpinBox containing possible network ports. More... | |
static | hostLEntry |
LabelEntry containing the hostname. More... | |
static | nidLEntry |
LabelEntry containing the Node ID. More... | |
Private Attributes | |
mtidetail | |
MTIDetail component. More... | |
messagehandler | |
Message handler. More... | |
sentMessageHandler | |
Sent Message handler. More... | |
datagrambuffers | |
Datagram buffers. More... | |
messagebuffers | |
General message buffers (for multi frame messages) More... | |
sock | |
The socket I/O channel. More... | |
_timeout | |
Timeout flag. More... | |
Static Private Attributes | |
static | NIDPATTERN |
The regexp for breaking up the Node ID into bytes. More... | |
Connect to a OpenLCB over Tcp/Ip.
Options:
hh:hh:hh:hh:hh:hh
which is a 48 bit number expressed as 6 pairs of hexadecimal digits separacted by colons (:). lcc::OpenLCBOverTcp::OpenLCBOverTcp | ( | name | , |
... | |||
) |
Constructor: Connect to a Tcp/Ip OpenLCB network.
Create a connection to a Tcp/Ip network.
name | The name of the instance. |
... | The options:
|
|
static |
Function bound to the Cancel
button.
Closes the dialog box and returns the empty string.
|
static |
Function bound to the Open
button.
Closes the dialog box and returns the options needed to open the transport.
-nid
and -port
options.
|
static |
Function to construct the Dialog to ask the user for a port, host, and Node ID.
|
static |
Pop up the Options Dialog box.
Pops up the Options Dialog box and collects the options needed to open the OpenLCBOverTcp object.
... | Options:
|
|
static |
Return the default option list.
Returns the default options for the options dialog.
lcc::OpenLCBOverTcp::sendMessage | ( | ... | ) |
Send a message on the OpenLCB bus.
... | Message options. See OpenLCBMessage for possible options. |
lcc::OpenLCBOverTcp::setMessageHandler | ( | handler | ) |
Set the message handler.
Generally called from the upper level class to gain access to incoming messages asyncronously.
handler | The new handler procedure. |
lcc::OpenLCBOverTcp::setSentMessageHandler | ( | handler | ) |
Set the sent message handler.
Generally called from the upper level class to gain access to outgoing messages asyncronously.
handler | The new handler procedure. |
|
private |
Timeout flag.
|
private |
Datagram buffers.
|
static |
LabelEntry containing the hostname.
|
private |
General message buffers (for multi frame messages)
|
private |
Message handler.
|
private |
MTIDetail component.
This component is used to extract and pack fields from and to a MTI header at a MTI detail level.
|
static |
LabelEntry containing the Node ID.
|
staticprivate |
The regexp for breaking up the Node ID into bytes.
|
static |
LabelSpinBox containing possible network ports.
|
static |
Dialog to ask the user for a port, host, and Node ID.
|
private |
Sent Message handler.
|
private |
The socket I/O channel.