3 Star 0 Fork 0

mirrors_vmware-archive/rclient

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
client.c 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
/*------------------------------------------------------------------------------
*
* Copyright (c) 2016-Present Pivotal Software, Inc
*
*------------------------------------------------------------------------------
*/
#include <stdlib.h>
#include <assert.h>
#include "common/comm_channel.h"
#include "common/comm_utils.h"
#include "common/comm_connectivity.h"
#include "common/comm_server.h"
#include "rcall.h"
int main(int argc UNUSED, char **argv UNUSED) {
int sock;
plcConn *conn;
int status;
sanity_check_client();
set_signal_handlers();
/* do not overwrite, if the CLIENT_NAME has already set */
setenv("CLIENT_LANGUAGE", "rclient", 0);
client_log_level = WARNING;
// Bind the socket and start listening the port
sock = start_listener();
// Initialize R
plc_elog(LOG, "Client start to listen execution");
status = r_init();
connection_wait(sock);
conn = connection_init(sock);
if (status == 0) {
receive_loop(handle_call, conn);
} else {
plc_raise_delayed_error(conn);
}
plc_elog(LOG, "Client has finished execution");
return 0;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_vmware-archive/rclient.git
git@gitee.com:mirrors_vmware-archive/rclient.git
mirrors_vmware-archive
rclient
rclient
6X_STABLE

搜索帮助