OH_LOG_Print(LOG_APP, LOG_INFO, LOG_PRINT_DOMAIN, "OPENHARMONY-SERVER","Server is running at http://localhost:8080");
} else {
OH_LOG_Print(LOG_APP, LOG_INFO, LOG_PRINT_DOMAIN, "OPENHARMONY-SERVER","Failed to start server");
}
....
复制代码
报错内容:
E C015b0/NetsysNativeService: [HookSocket-(netsys_sock_client.cpp:46)]musl create socket failed, errno 1
I A0ff00/OPENHARMONY-SERVER: Failed to start server