qnx4.2 不能发送广播信息

我用的是qnx4.2,主机ip为192.168.0.23,子网掩码为255.255.255.0,我正在做一个网络通信的实验,需要qnx4.2向局域网中的其他主机发送广播信息,广播地址为192.168.0.255,但是用这个广播地址发送总是失败,而明确指定目标地址却没问题(如192.168.0.26),为什么,感谢指教!

我曾经在论坛上发过一个帖子:

----------------------------------

”我有一张1.44的QNX3.21 数据盘,在QNX3.21下,可以MOUNT上(QNX3.21的MOUNT命令格式为与QNX6.X不一样 ), 但在QNX6.X或RED HAT中就不能MOUNT上了,系统报告"FILE SYSTEM UNSPECIFIED", 使用的命令是“MOUNT -t QNX2 fd0 /mnt/floppy”, 用“MOUNT -t QNX4 fd0 /mnt/floppy”也不行,当然用其他的文件系统也是不行的。

我的目的是要在QNX6.X或LUNIX或UNIX中将它MOUNT上,读出来后再存到DOS文件系统中,好进一步解读其中的数据库文件的内容(我不知道是什么数据库,文件的扩展名是.D和.I, 如TEMP.D). “

-----------------------------------

有朋友说QNX4可能读这样的磁盘。帖子如下:
-----------------------------------

”liug
Moderator
注册时间: 2003-09-11
帖子: 25
来自: 美国 加州
发表于: Thu Nov 06, 2003 4:21 pm 发表主题:


QNX 2 or 3 软盘只能在 QNX 2 or 3 上读。
如果你有QNX4的话,你也许能用Qnx2fsys 来试一试。
其他UNIX (包括Linux, QNX6)就无能为力了。


--------------------------------

并且liun说在QNX4下运行dfs后,可以将文件写到DOS磁盘上,帖子如下。
--------------------------------

我问了一个朋友关于在 QNX2 下读写 DOS 盘, 这是他的答复:

引用:

This is hard to believe, but I found the QNX2 manual that we have and
here’s the deal.

  1. There is a package provided by QSSL called RUNDOS. It has 3 programs
  • rundos - DOS emulator that lets you run a DOS application within
    the QNX2 environment.
  • qdos - BIOS emulator. QDOS emulates only the BIOS and runs
    PC-DOS. PC-DOS must be purchased.
  • dfs - DOS file system. This provides live access to DOS files
    as if they were QNX files, allowing your to use all the
    standard QNX utilities directly DOS files

Sooo what you would use just to copy files is dfs. The other 2 programs
let you run programs like MS-WORD on the QNX2 system. It is something
that was purchased from QSSL.

--------------------------------

liun所说的dfs程序可以在下面的地址中得到:
ftp://quics.qnx.com/usr/free2/qnx2.21/qnx_utils/dfs

你能帮助我吗?

我曾经在论坛上发过一个帖子:

----------------------------------

”我有一张1.44的QNX3.21 数据盘,在QNX3.21下,可以MOUNT上(QNX3.21的MOUNT命令格式为与QNX6.X不一样 ), 但在QNX6.X或RED HAT中就不能MOUNT上了,系统报告"FILE SYSTEM UNSPECIFIED", 使用的命令是“MOUNT -t QNX2 fd0 /mnt/floppy”, 用“MOUNT -t QNX4 fd0 /mnt/floppy”也不行,当然用其他的文件系统也是不行的。

我的目的是要在QNX6.X或LUNIX或UNIX中将它MOUNT上,读出来后再存到DOS文件系统中,好进一步解读其中的数据库文件的内容(我不知道是什么数据库,文件的扩展名是.D和.I, 如TEMP.D). “

-----------------------------------

有朋友说QNX4可能读这样的磁盘。帖子如下:
-----------------------------------

”liug
Moderator
注册时间: 2003-09-11
帖子: 25
来自: 美国 加州
发表于: Thu Nov 06, 2003 4:21 pm 发表主题:


QNX 2 or 3 软盘只能在 QNX 2 or 3 上读。
如果你有QNX4的话,你也许能用Qnx2fsys 来试一试。
其他UNIX (包括Linux, QNX6)就无能为力了。


--------------------------------

并且liun说在QNX4下运行dfs后,可以将文件写到DOS磁盘上,帖子如下。
--------------------------------

我问了一个朋友关于在 QNX2 下读写 DOS 盘, 这是他的答复:

引用:

This is hard to believe, but I found the QNX2 manual that we have and
here’s the deal.

  1. There is a package provided by QSSL called RUNDOS. It has 3 programs
  • rundos - DOS emulator that lets you run a DOS application within
    the QNX2 environment.
  • qdos - BIOS emulator. QDOS emulates only the BIOS and runs
    PC-DOS. PC-DOS must be purchased.
  • dfs - DOS file system. This provides live access to DOS files
    as if they were QNX files, allowing your to use all the
    standard QNX utilities directly DOS files

Sooo what you would use just to copy files is dfs. The other 2 programs
let you run programs like MS-WORD on the QNX2 system. It is something
that was purchased from QSSL.

--------------------------------

liun所说的dfs程序可以在下面的地址中得到:
ftp://quics.qnx.com/usr/free2/qnx2.21/qnx_utils/dfs

你能帮助我吗?

在哪里可以下载QNX4.X呢?

我有QNX3.21系统,可以和你换QNX4.X吗?

一是要用UDP(SOCK_DGRAM),二是要用setsockopt()设SOCK_BROADCAST,
然后就可以了。

但是新的问题又出现了,不能接收广播信息,如果在发送端指定本机IP,则能接收到UDP包,而指定的是广播地址,则接收不到,为什么?敬请指教,谢谢!