NSUKit 1.4.0
板卡级统一交互接口
载入中...
搜索中...
未找到
link_only_eth.cpp
浏览该文件的文档.
1
2// Copyright (c) 2024. Naishu
3// NSUKit is licensed under Mulan PSL v2.
4// You can use this software according to the terms and conditions of the Mulan PSL v2.
5// You may obtain a copy of Mulan PSL v2 at:
6// http://license.coscl.org.cn/MulanPSL2
7// THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
8// EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
9// MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10// See the Mulan PSL v2 for more details.
12
13//
14// Created by jilianyi<jilianyi@naishu.tech> on 2024/4/19.
15//
16
17#include "NSUKit.h"
18
19int main() {
21 nsuInitParam_t param;
22 param.cmd_ip ="192.168.1.162";
23 param.cmd_tcp_port = 5001;
24 param.stream_ip ="192.168.1.162";
25 param.stream_tcp_port = 6002;
26
27 auto res = kit.link_cmd(&param);
28 res = kit.link_stream(&param);
29
30 return 0;
31}
32
std::string cmd_ip
Definition: type.h:98
uint32_t cmd_tcp_port
Definition: type.h:99
std::string stream_ip
Definition: type.h:102
uint32_t stream_tcp_port
Definition: type.h:103