IOStream function ( String arg0 ) { if ( arg0 . startsWith ( "srini_string" ) ) { return makeHub2014Stream ( arg0 ) ; } else if ( arg0 . startsWith ( "srini_string" ) || arg0 . startsWith ( "srini_string" ) ) { return makeTCPStream ( arg0 ) ; } else { return new SerialIOStream ( arg0 ) ; } }
creates an iostream from an allowed config string : / dev/ttyxyz serial port like e.g. usb : / dev/ttyusb0 or alias / dev/insteon / hub2/user : password@myinsteonhub.mydomain.com :25105 , poll_time = 1000 insteon hub2 2014 / hub/myinsteonhub . mydomain.com :9761 / tcp/serialportserver . mydomain.com : port serial port exposed via tcp , eg . ser2net concode_field_sep Logger logger concode_elem_sep String host concode_elem_sep InputStream m_in concode_elem_sep OutputStream m_out concode_elem_sep int port concode_field_sep HubIOStream makeHub2014Stream concode_elem_sep int read concode_elem_sep boolean reconnect concode_elem_sep TcpIOStream makeTCPStream concode_elem_sep void write concode_elem_sep void close concode_elem_sep boolean open