SocketInterface
Simple socket interface node. If acceptPort is set, the node opens a server socket at the given port number. Otherwise it tries to connect as client using the address given by connectHost (name or IP address) and connectPort .To read data from the socket use a route from the Field "read"; to write data to the socket, route into the Field "write". Hint: according to IANA (http://www.iana.org/assignments/port-numbers), "Dynamic and/or Private Ports" (thus the ones neither "Well Known" nor "Registered") are those from 49152 through 65535. Choose from them if possible.
Inheritance
Code
XML encoding
<SocketInterface triggerName='Timer' connectHost='' connectPort='50000' acceptPort='0' logFeature='' />
Classic encoding
SocketInterface { triggerName "Timer" connectHost "" connectPort 50000 acceptPort 0 logFeature [""] }
Interface
Filter: X3D only | Avalon only | All
id | Name | DataType | PartType | Default | ValueType | Description |
---|---|---|---|---|---|---|
metadata | SFNode | inputOutput | MetadataObject | container for payload metadata inside MetadataSet element |