开发者

Receive udp data from the system udp server on android?

hi I am new to android.I need to know how to receive the udp data in android emulator.Data's are coming from the PC (UDP SERVER is running on the pc).I am using Eclipse I开发者_开发知识库DE.Can anyone guide me to solve this ?


You will need to set up redirects since the emulator sits behind a virtual router.

Start the emulator, connect to it via telnet, then give it routing commands;

telnet localhost 5554 
redir add udp:<host-port>:<guest-port>

You will need to this each time you restart the eumlator, so it might be worthwhile to script it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜