_GSocket_Enable_Events(sck);
/* Bind to the local address,
_GSocket_Enable_Events(sck);
/* Bind to the local address,
- ioctl(connection->m_fd, FIONBIO, &arg);
+ ioctl(connection->m_fd, FIONBIO, (char*)&arg, sizeof(arg));
_GSocket_Enable_Events(sck);
/* Connect it to the peer address, with a timeout (see below) */
ret = connect(sck->m_fd, sck->m_peer->m_addr, sck->m_peer->m_len);
printf("connect on %d to %X (%d) returned %d, errno = %d\n",
_GSocket_Enable_Events(sck);
/* Connect it to the peer address, with a timeout (see below) */
ret = connect(sck->m_fd, sck->m_peer->m_addr, sck->m_peer->m_len);
printf("connect on %d to %X (%d) returned %d, errno = %d\n",
- sck->m_fd, sck->m_peer->m_addr, sck->m_peer->m_len, ret, errno);
+ sck->m_fd, sck->m_peer->m_addr, sck->m_peer->m_len, ret, errno);
_GSocket_Enable_Events(sck);
/* Bind to the local address,
_GSocket_Enable_Events(sck);
/* Bind to the local address,
if ((flags & (1 << count)) != 0)
{
printf("Setting callback no %d for socket at %X to address %X,data %X\n",
if ((flags & (1 << count)) != 0)
{
printf("Setting callback no %d for socket at %X to address %X,data %X\n",
- count, socket, callback, cdata);
+ count, socket, callback, cdata);
if ((flags & (1 << count)) != 0)
{
printf("Removing callback no %d for socket at %X",
if ((flags & (1 << count)) != 0)
{
printf("Removing callback no %d for socket at %X",
ret = send(socket->m_fd, buffer, size, 0);
UNMASK_SIGNAL();
#else
ret = send(socket->m_fd, buffer, size, 0);
UNMASK_SIGNAL();
#else
- ret = send(socket->m_fd, buffer, size, 0);
+ ret = send(socket->m_fd, (char *)buffer, size, 0);
ret = sendto(socket->m_fd, buffer, size, 0, addr, len);
UNMASK_SIGNAL();
#else
ret = sendto(socket->m_fd, buffer, size, 0, addr, len);
UNMASK_SIGNAL();
#else
- ret = sendto(socket->m_fd, buffer, size, 0, addr, len);
+ ret = sendto(socket->m_fd, (char *)buffer, size, 0, addr, len);