bootstrap_net.h 623 Bytes
Newer Older
lishen's avatar
lishen committed
1
2
3
4
5
6
7
8
9
10
11
#pragma once

#include <string.h>
#include "base.h"
#include "socket.h"
#include "bootstrap_utils.h"

namespace sccl {
namespace hardware {
namespace topology {
namespace bootstrap {
12
namespace bootstrapNet {
lishen's avatar
lishen committed
13

14
15
// 初始化
scclResult_t bootstrapNetInit();
16

17
scclSocketAddress_t getLocalSocketAddr();
18

19
20
21
22
// 通过socket发送数据
scclResult_t bootstrapNetSend(scclSocket_t* sock, void* data, int size);
// 通过socket接收数据
scclResult_t bootstrapNetRecv(scclSocket_t* sock, void* data, int size);
lishen's avatar
lishen committed
23

24
} // namespace bootstrapNet
lishen's avatar
lishen committed
25
26
27
28
} // namespace bootstrap
} // namespace topology
} // namespace hardware
} // namespace sccl