-GSocketError GSocket_SetReuseAddr(GSocket *socket)
-{
- /* allow a socket to re-bind if the socket is in the TIME_WAIT
- state after being previously closed.
- */
- u_long arg = 1;
- setsockopt(socket->m_fd, SOL_SOCKET, SO_REUSEADDR, (const char*)&arg, sizeof(u_long));
-}
-
-void GSocket_Streamed(GSocket *socket)
-{
- socket->m_stream = TRUE;
-}
-
-void GSocket_Unstreamed(GSocket *socket)
-{
- socket->m_stream = FALSE;
-}
-