| 146 | } |
| 147 | |
| 148 | static 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 | |
| 158 | static bool AS_IsValidSocketTCP(uint32_t socket) { |
| 159 | return Engine::Instance()->GetASNetwork()->IsValidSocketTCP(socket); |
nothing calls this directly
no test coverage detected