This repository has been archived on 2026-07-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
acquire-core-full/app/common/demo_mg_main.c

24 lines
717 B
C

/*
* demo_mg_main.c - 전문게이트웨이 온라인 데모 부트스트랩 (링크 검증)
*
* 생성된 플래그십 서비스(MG_OL_0001)를 TxCore 레지스트리에 등록하여
* 등록/디스패치/DBIO 링크 경로가 실제로 연결됨을 증명한다.
*/
#include <stdio.h>
#include "txcore.h"
void MG_OL_0001(TXSVCINFO *ctx);
int main(void)
{
tx_set_loglevel(TX_LOG_INFO);
tx_log(TX_LOG_INFO, "전문게이트웨이 온라인 데모 기동 (TxCore)");
tx_register("MG_OL_0001", MG_OL_0001);
tx_log(TX_LOG_INFO, "등록 서비스 수 = %d", tx_service_count());
printf("demo_mg_server 준비완료: 서비스 %d개 등록\n",
tx_service_count());
return 0;
}