MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / AS_SocketTCPSend

Function AS_SocketTCPSend

Source/Scripting/angelscript/asfuncs.cpp:148–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148static int AS_SocketTCPSend(uint32_t socket, const CScriptArray& array) {
149 uint8_t* datc = (uint8_t*)alloc.stack.Alloc(array.GetSize());
150 for (unsigned i = 0; i < array.GetSize(); i++) {
151 datc[i] = *(uint8_t*)array.At(i);
152 }
153 int ret = Engine::Instance()->GetASNetwork()->SocketTCPSend(socket, datc, array.GetSize());
154 alloc.stack.Free(datc);
155 return ret;
156}
157
158static bool AS_IsValidSocketTCP(uint32_t socket) {
159 return Engine::Instance()->GetASNetwork()->IsValidSocketTCP(socket);

Callers

nothing calls this directly

Calls 6

SocketTCPSendMethod · 0.80
GetASNetworkMethod · 0.80
AllocMethod · 0.45
GetSizeMethod · 0.45
AtMethod · 0.45
FreeMethod · 0.45

Tested by

no test coverage detected