1 /* -----------------------------------------------------------------------------
2 * $Id: sendTo.c,v 1.3 1998/12/02 13:26:46 simonm Exp $
4 * sendTo run-time support
6 * (c) The GHC Team 1998
7 * -------------------------------------------------------------------------- */
9 #define NON_POSIX_SOURCE
11 #include "ghcSockets.h"
15 sendTo__(StgInt fd, StgAddr buf, StgInt nbytes, StgAddr to, StgInt sz)
20 while ( (count = sendto((int)fd, (void*)buf, (int)nbytes, flags, (struct sockaddr*)to, sz)) < 0) {