netdb.h file for MPC8313ERDB

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

netdb.h file for MPC8313ERDB

1,357 次查看
ak79
Contributor I
Hi,

  I have an application built on the PC which transmits data to a given IP. I am trying to port the same on to the MPC8313ERDB. I am unable to find the netdb.h file from the board source code. I am unable to perform some of the socket related functions. Is there a alternative/replacement for this netdb.h file??

Regards,
Ak79
标记 (1)
0 项奖励
回复
1 回复

721 次查看
abartky
Contributor IV

Ak79,

On my Linux machine, the netdb.h file is under the same directory as all the other regular include files for compiling MPC8313E targeted linux apps.

Here is where I found it on my machine:

alan@raptor:/opt/mtwk/usr/local/powerpc-linux/gcc-3.4.3-glibc-2.3.3/powerpc-linux/include$

ls net*.h

netdb.h

I also know that busybox uses netdb.h, so I'd assume it would be a standard install when LTIB is installed, but as I've recompiled busybox to add some options that were not in the default build of the MPC8313E Linux BSP, I guess there is a chance that the .h file is installed if you build busybox from the ./ltib --configure menu.

Hope this helps.

Cheers,

abartky

0 项奖励
回复