Big net::msg conversion
This commit is contained in:
+5
-4
@@ -35,6 +35,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#define NET_NAMELEN 64
|
||||
|
||||
#define NET_MAXMESSAGE 64000 /* ericw -- was 32000 */
|
||||
#include "net_msg.hpp"
|
||||
|
||||
extern int DEFAULTnet_hostport;
|
||||
extern int net_hostport;
|
||||
@@ -42,7 +43,7 @@ extern int net_hostport;
|
||||
extern convar hostname;
|
||||
|
||||
extern double net_time;
|
||||
extern sizebuf_t net_message;
|
||||
extern net::msg net_message;
|
||||
extern int net_activeconnections;
|
||||
|
||||
|
||||
@@ -69,14 +70,14 @@ int NET_GetMessage (struct qsocket_s *sock);
|
||||
// returns 2 if an unreliable message was received
|
||||
// returns -1 if the connection died
|
||||
|
||||
int NET_SendMessage (struct qsocket_s *sock, sizebuf_t *data);
|
||||
int NET_SendUnreliableMessage (struct qsocket_s *sock, sizebuf_t *data);
|
||||
int NET_SendMessage (struct qsocket_s *sock, net::msg &msg);
|
||||
int NET_SendUnreliableMessage (struct qsocket_s *sock, net::msg &msg);
|
||||
// returns 0 if the message connot 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_SendToAll(sizebuf_t *data, double blocktime);
|
||||
int NET_SendToAll(net::msg &msg, double blocktime);
|
||||
// This is a reliable *blocking* send to all attached clients.
|
||||
|
||||
void NET_Close (struct qsocket_s *sock);
|
||||
|
||||
Reference in New Issue
Block a user