prefix_ unsigned senf::ReadablePolicy::do_readfrom(FileHandle handle, char * buffer,
unsigned size,
- struct ::sockaddr * addr, socklen_t len)
+ struct ::sockaddr * addr, socklen_t * len)
{
int rv = -1;
do {
- rv = ::recvfrom(handle.fd(),buffer, size, 0, addr, &len);
+ rv = ::recvfrom(handle.fd(),buffer, size, 0, addr, len);
if (rv < 0)
switch (errno) {
case EINTR:
typename SPolicy::AddressingPolicy::Address & address,
typename IfCommunicationPolicyIs<SPolicy,UnconnectedCommunicationPolicy>::type *)
{
- return do_readfrom(handle, buffer, size, address.sockaddr_p(), address.socklen());
+ return do_readfrom(handle, buffer, size, address.sockaddr_p(), address.socklen_p());
}
#else
template <class SPolicy>
private:
static unsigned do_readfrom(FileHandle handle, char * buffer, unsigned size,
- struct ::sockaddr * addr, socklen_t len);
+ struct ::sockaddr * addr, socklen_t * len);
};
/** \brief ReadPolicy for unreadable sockets