int aros_inet_pton(int af, char *src, void *dst)
{
- printf("No inet_pton yet");
- exit(10);
+ struct sockaddr_in sin;
+
+ sin.sin_addr.s_addr = inet_addr(src);
+ memcpy(dst, &sin.sin_addr.s_addr, sizeof(sin.sin_addr,s_addr));
+ return 1;
}
total = rpc->outqueue->outdata.size;
-#if defined(WIN32)
+#if defined(WIN32) | defined(AROS)
count = send(rpc->fd, rpc->outqueue->outdata.data + rpc->outqueue->written, total - rpc->outqueue->written, 0);
#else
count = write(rpc->fd, rpc->outqueue->outdata.data + rpc->outqueue->written, total - rpc->outqueue->written);
if (rpc->inpos < 4) {
size = 4 - rpc->inpos;
-#if defined(WIN32)
+#if defined(WIN32) | defined(AROS)
count = recv(rpc->fd, rpc->inbuf + rpc->inpos, size, 0);
#else
count = read(rpc->fd, rpc->inbuf + rpc->inpos, size);
size = rpc->insize - rpc->inpos;
}
-#if defined(WIN32)
+#if defined(WIN32) | defined(AROS)
count = recv(rpc->fd, rpc->inbuf + rpc->inpos, size, 0);
#else
count = read(rpc->fd, rpc->inbuf + rpc->inpos, size);