powerrox
powerrox

Reputation: 1342

ssize_t data type in XDR for RPC

I am writing an RPC application. I need to use ssize_t data type in the C portion and it needs to be sent over the wire. What should I represent ssize_t as in the IDL? I can cast it to int but I want to know the correct way to do it than just casting to int, not sure if that is the correct way.

Upvotes: 0

Views: 138

Answers (1)

kofemann
kofemann

Reputation: 4423

Xdr type int (IOW, you should use hyper) represents 32 bit integer. Check ONC+ Developer's Guide for details.

Upvotes: 0

Related Questions