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
19
int
main
() {
20
nsukit::NSUSoc<nsukit::TCPCmdUItf, nsukit::TCPCmdUItf, nsukit::TCPStreamUItf>
kit{};
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(¶m);
28
res = kit.link_stream(¶m);
29
30
return
0;
31
}
32
NSUKit.h
nsukit::NSUSoc
Definition:
NSUKit.h:31
main
int main()
Definition:
link_only_eth.cpp:19
nsuInitParam_t
Definition:
type.h:155
nsuTCPParam_t::cmd_ip
std::string cmd_ip
Definition:
type.h:98
nsuTCPParam_t::cmd_tcp_port
uint32_t cmd_tcp_port
Definition:
type.h:99
nsuTCPParam_t::stream_ip
std::string stream_ip
Definition:
type.h:102
nsuTCPParam_t::stream_tcp_port
uint32_t stream_tcp_port
Definition:
type.h:103
examples
link_only_eth.cpp
制作者
1.9.6