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

Method SendInfo

src/engine/client/client.cpp:210–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210void CClient::SendInfo(int Conn)
211{
212 CMsgPacker MsgVer(NETMSG_CLIENTVER, true);
213 MsgVer.AddRaw(&m_ConnectionId, sizeof(m_ConnectionId));
214 MsgVer.AddInt(GameClient()->DDNetVersion());
215 MsgVer.AddString(GameClient()->DDNetVersionStr());
216 SendMsg(Conn, &MsgVer, MSGFLAG_VITAL);
217
218 if(IsSixup())
219 {
220 CMsgPacker Msg(NETMSG_INFO, true);
221 Msg.AddString(GAME_NETVERSION7, 128);
222 Msg.AddString(Config()->m_Password);
223 Msg.AddInt(GameClient()->ClientVersion7());
224 SendMsg(Conn, &Msg, MSGFLAG_VITAL | MSGFLAG_FLUSH);
225 return;
226 }
227
228 CMsgPacker Msg(NETMSG_INFO, true);
229 Msg.AddString(GameClient()->NetVersion());
230 Msg.AddString(m_aPassword);
231 SendMsg(Conn, &Msg, MSGFLAG_VITAL | MSGFLAG_FLUSH);
232}
233
234void CClient::SendEnterGame(int Conn)
235{

Callers

nothing calls this directly

Calls 8

AddRawMethod · 0.80
AddIntMethod · 0.80
DDNetVersionMethod · 0.80
DDNetVersionStrMethod · 0.80
ClientVersion7Method · 0.80
ConfigFunction · 0.50
AddStringMethod · 0.45
NetVersionMethod · 0.45

Tested by

no test coverage detected