refactored tlibc collections

This commit is contained in:
2025-11-25 16:31:58 +05:00
parent 7a3808ba59
commit 8bc98a321d
32 changed files with 294 additions and 265 deletions

View File

@@ -24,16 +24,16 @@ declare_RequestHandler(ServerPublicInfo)
Return RESULT_VOID;
}
case ServerPublicInfo_Name:
content = str_castTo_Array(conn->server->name);
content = str_castTo_Array_u8(conn->server->name);
break;
case ServerPublicInfo_Description:
content = str_castTo_Array(conn->server->description);
content = str_castTo_Array_u8(conn->server->description);
break;
}
// send response
ServerPublicInfoResponse res;
ServerPublicInfoResponse_construct(&res, res_head, content.size);
ServerPublicInfoResponse_construct(&res, res_head, content.len);
try_void(EncryptedSocketTCP_sendStruct(&conn->sock, res_head));
try_void(EncryptedSocketTCP_sendStruct(&conn->sock, &res));
try_void(EncryptedSocketTCP_send(&conn->sock, content));