1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *    http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "softbus_errcode.h"
17 #include "softbus_tcp_connect_manager.h"
18 
CalTcpConnectionId(int32_t fd)19 uint32_t CalTcpConnectionId(int32_t fd)
20 {
21     (void)fd;
22     return 0;
23 }
24 
TcpGetConnNum(void)25 int32_t TcpGetConnNum(void)
26 {
27     return 0;
28 }
29 
TcpConnectDevice(const ConnectOption * option,uint32_t requestId,const ConnectResult * result)30 int32_t TcpConnectDevice(const ConnectOption *option, uint32_t requestId, const ConnectResult *result)
31 {
32     (void)option;
33     (void)requestId;
34     (void)result;
35     return SOFTBUS_OK;
36 }
37 
TcpDisconnectDevice(uint32_t connectionId)38 int32_t TcpDisconnectDevice(uint32_t connectionId)
39 {
40     (void)connectionId;
41     return SOFTBUS_OK;
42 }
43 
TcpDisconnectDeviceNow(const ConnectOption * option)44 int32_t TcpDisconnectDeviceNow(const ConnectOption *option)
45 {
46     (void)option;
47     return SOFTBUS_OK;
48 }
49 
TcpPostBytes(uint32_t connectionId,const char * data,int32_t len,int32_t pid,int32_t flag)50 int32_t TcpPostBytes(uint32_t connectionId, const char *data, int32_t len, int32_t pid, int32_t flag)
51 {
52     (void)connectionId;
53     (void)data;
54     (void)len;
55     (void)pid;
56     (void)flag;
57     return SOFTBUS_OK;
58 }
59 
TcpGetConnectionInfo(uint32_t connectionId,ConnectionInfo * Info)60 int32_t TcpGetConnectionInfo(uint32_t connectionId, ConnectionInfo *Info)
61 {
62     (void)connectionId;
63     (void)Info;
64     return SOFTBUS_OK;
65 }
66 
TcpStartListening(const LocalListenerInfo * info)67 int32_t TcpStartListening(const LocalListenerInfo *info)
68 {
69     (void)info;
70     return SOFTBUS_OK;
71 }
72 
TcpStopListening(const LocalListenerInfo * info)73 int32_t TcpStopListening(const LocalListenerInfo *info)
74 {
75     (void)info;
76     return SOFTBUS_OK;
77 }
78 
ConnInitTcp(const ConnectCallback * callback)79 ConnectFuncInterface *ConnInitTcp(const ConnectCallback *callback)
80 {
81     (void)callback;
82     return NULL;
83 }
84