engine/EngineNetwork.c
/*
==================
NET_SendMessage

Try to send a complete length+message unit over the reliable stream.
returns 0 if the message cannot be delivered reliably, but the connection
		is still considered valid
returns 1 if the message was sent properly
returns -1 if the connection died
==================
*/
NET_SendMessage
Try to send a complete length+message unit over the reliable stream.
returns 0 if the message cannot be delivered reliably, but the connection
is still considered valid
returns 1 if the message was sent properly
returns -1 if the connection died
NET_SendMessage Try to send a complete length + message unit over the reliable stream . returns 0 if the message cannot be delivered reliably but the connection is still considered valid returns 1 if the message was sent properly returns - 1 if the connection died
int NET_SendMessage (qsocket_t *sock, sizebuf_t *data)
{
	int		r;
	if (!sock)
		return -1;
	if (sock->disconnected)
	{
		Con_Printf("NET_SendMessage: disconnected socket\n");
		return -1;
	}
	SetNetTime();
	r = sfunc.QSendMessage(sock, data);
	if (r == 1 && sock->driver)
		messagesSent++;
	return r;
}
int NET_SendMessage ( qsocket_t * sock , sizebuf_t * data ) { int r ; if ( ! sock ) return -1 ; if ( sock -> disconnected ) { Con_Printf ( " \n " ) ; return -1 ; } SetNetTime ( ) ; r = sfunc . QSendMessage ( sock , data ) ; if ( r == 1 && sock -> driver ) messagesSent ++ ; return r ; }
NET_SendMessage
Try to send a complete length+message unit over the reliable stream.
NET_SendMessage Try to send a complete length + message unit over the reliable stream .