This problem is solved!
In cygwin rpcgen created :
clnt = clnt_create(server, MESSAGEPROG, PRINTMESSAGEVERS, "visible");
It should be call protocal to input "udp" or "tcp".
clnt = clnt_create(server, MESSAGEPROG, PRINTMESSAGEVERS, "udp");
--- In "sunnyliu2005" <> wrote:
>
> Dear All,
>
> I am going to build rpc server in TS-7250.
> The TS-7250 run time system doesn't change.
> To use cross tool chain gcc-3.3.4-glibc-2.3.2 in Win 7 Cygwin!
>
> I can run rpcinfo to get server info. rpcinfo version are in this URL
> http://oneparticularharbor.net/cygwin/sunrpc/
>
> But the msg.x DEMO app to run in cygwin to get some errors!
>
> $ ./rprintmsg.exe 192.168.0.83 Test02
> 192.168.0.83: RPC: Unknown protocol
>
> That is call clnt_create failed!
>
> $ /usr/sbin/rpcinfo -p 192.168.0.83
> program vers proto port
> 100000 2 tcp 111
> 100000 2 udp 111
> 536870913 1 udp 743
> 536870913 1 tcp 745
> It is running!
>
> Please help me to solve this issue!
>
> Best regards,
>
> Sunny
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|