MCPcopy Create free account
hub / github.com/ddnet/ddnet / Send

Method Send

src/engine/server/antibot.cpp:42–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 Log(aBuf, pUser);
41}
42void CAntibot::Send(int ClientId, const void *pData, int Size, int Flags, void *pUser)
43{
44 CAntibot *pAntibot = (CAntibot *)pUser;
45
46 int RealFlags = MSGFLAG_VITAL;
47 if(Flags & ANTIBOT_MSGFLAG_NONVITAL)
48 {
49 RealFlags &= ~MSGFLAG_VITAL;
50 }
51 if(Flags & ANTIBOT_MSGFLAG_FLUSH)
52 {
53 RealFlags |= MSGFLAG_FLUSH;
54 }
55 pAntibot->Server()->SendMsgRaw(ClientId, pData, Size, RealFlags);
56}
57void CAntibot::Teehistorian(const void *pData, int Size, void *pUser)
58{
59 CAntibot *pAntibot = (CAntibot *)pUser;

Callers 4

SendLogLineMethod · 0.45
SendMsgMethod · 0.45
SendMsgRawMethod · 0.45
SendServerInfoMethod · 0.45

Calls 2

SendMsgRawMethod · 0.80
ServerMethod · 0.45

Tested by

no test coverage detected