![]() |
![]() |
![]() |
File-descriptor-based network driver (QNX)
Net.fd [-a phys_addr] [-c] [-d dev_rate] [-f tty] [-h]
[-i timeout] [-k comp_type] [-l log_net_id]
[-m min_com_length] [-n tx_num_retries]
[-r media_rate] [-t tx_retry_ticks] [-v] tty &
The Net.fd network driver uses file-descriptor based I/O (i.e. open(), read(), write(), and so on) to receive and transmit packets. It provides the Network Manager (Net) with reliable data transfer over any media supported by a file-descriptor-based server process.
For example, you could use Net.fd to connect two machines with a null-modem RS-232 serial cable. By using file descriptor I/O to the serial devices, Net.fd would implicitly use Dev's serial driver (Dev.ser) and set up a logical network link.
![]() |
You should read the technote contained in the
/etc/readme/technotes/Net.fd file.
If you start more than one network driver on the same machine, you must specify a unique network ID (-l option) to every driver. |
Use the first serial port (/dev/ser1) as logical network 1:
Net.fd &
Use the second serial port as logical network 1:
Net.fd /dev/ser2 &
Use the first serial port as logical network 2:
Net.fd -l 2 &
Support two logical networks: use the first serial port as logical network 1 and use the second serial port as logical network 2:
Net.fd &
Net.fd -l 2 /dev/ser2 &
Net.fd closes its standard input, standard output and standard error immediately after initialization.
Error messages are displayed via the qnx_display_*() functions, not through standard error.
Net.fd opens and uses the tty named on the command line for both reading and writing.
The Net.fd driver ignores SIGPWR, but will terminate in SIGHUP unless the -h option is specified.
Net.fd terminates only upon encountering errors during initialization or upon getting a signal (i.e. being killed).
![]() |
![]() |
![]() |