i'm using only one USB serial converter, and sometimes linux put it as ttyUSB0, or ttyUSB1 or ttyUSB2....
so, could we use a special character? for example
ser2net -C "3333:telnet:0:/dev/ttyUSB0:9600 1STOPBIT 8DATABITS remctl"
ser2net -C "3333:telnet:0:/dev/ttyUSB*:9600 1STOPBIT 8DATABITS remctl"
when i connect to port 3333 it will seek USB0, if not found check USB1 if not found USB2....
there's a funcion in php called glob, i don't know if there's something like it in c
it return all files with a especial expression like old MSDOS or like linux find -iname "/dev/ttyUSB*"