readme_broadcastsend

来自「这里包含了风河vxworks系统中的官方例程的C源代码」· 代码 · 共 54 行

TXT
54
字号
FILE LIST -             broadcastSend.cDESCRIPTION -	     Demo for sending a broadcasting message.RUNNING DEMO -	     You need to set/change the value of the BROADCAST_ADDR constant to	     your (subnet) network's broadcast inet address.	     #define BROADCAST_ADDR 	     Run broadcastSend task on one VxWorks system as follows	     after starting the broadcastGet task from another VxWorks system	     in the same physical network. The other half of the demonstration	     is in broadcastGet.c.	     Port number should be greater than 5000 for user applications. TESTED ON -  Host/Target : Solaris 2.5 / mv162	     VxWorks     : 5.3.1EXAMPLE COMPILE LINE -	     make CPU=MC68040 broadcastSend.o%  make CPU=MC68040 broadcastSend.occppc -B/petaluma1/mayur/tor101-ppc/host/sun4-solaris2/lib/gcc-lib/ -mstrict-align -ansi -nostdinc -O2 -fvolatile -fno-builtin -fno-for-scope -Wall -I/h   -I. -I/petaluma1/mayur/tor101-ppc/target/config/all -I/petaluma1/mayur/tor101-ppc/target/h -I/petaluma1/mayur/tor101-ppc/target/src/config -I/petaluma1/mayur/tor101-ppc/target/src/drv -DCPU=PPC604  -DMV1600 -DTARGET_DIR="\"mv1604\""   -c broadcastSend.cOUTPUTS/LOGFILE -On VxWorks target:==================-> ld <broadcastSend.ovalue = 730424 = 0xb2538-> sp (broadcastSend,  7001)task spawned: id = 5d1ca0, name = u1value = 6102176 = 0x5d1ca0The output on the console window:=================================etherOutput done - message: Hello World!!! etherOutputDemo completed17 bytes of broadcast message sent: Hello, world!!!

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?