MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / sendRemoteCommand

Method sendRemoteCommand

Engine/source/app/net/net.cpp:155–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153 }
154
155 void RemoteCommandEvent::sendRemoteCommand(NetConnection *conn, S32 argc, const char **argv)
156 {
157 if(U8(argv[0][0]) != StringTagPrefixByte)
158 {
159 Con::errorf(ConsoleLogEntry::Script, "Remote Command Error - command must be a tag.");
160 return;
161 }
162 S32 i;
163 for(i = argc - 1; i >= 0; i--)
164 {
165 if(argv[i][0] != 0)
166 break;
167 argc = i;
168 }
169 for(i = 0; i < argc; i++)
170 conn->validateSendString(argv[i]);
171 RemoteCommandEvent *cevt = new RemoteCommandEvent(argc, argv, conn);
172 conn->postNetEvent(cevt);
173 }
174
175 const char* RemoteCommandEvent::getTaggedString(const char* tag)
176 {

Callers

nothing calls this directly

Calls 3

errorfFunction · 0.85
validateSendStringMethod · 0.80
postNetEventMethod · 0.80

Tested by

no test coverage detected