1 /*
2  * Copyright (c) 2023 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 "socket.h"
17 
Socket(SocketInfo info)18 int32_t Socket(SocketInfo info)
19 {
20     (void)info;
21     return 0;
22 }
23 
Listen(int32_t socket,const QosTV qos[],uint32_t qosCount,const ISocketListener * listener)24 int32_t Listen(int32_t socket, const QosTV qos[], uint32_t qosCount, const ISocketListener *listener)
25 {
26     (void)socket;
27     (void)qos;
28     (void)qosCount;
29     (void)listener;
30     return 0;
31 }
32 
Bind(int32_t socket,const QosTV qos[],uint32_t qosCount,const ISocketListener * listener)33 int32_t Bind(int32_t socket, const QosTV qos[], uint32_t qosCount, const ISocketListener *listener)
34 {
35     (void)socket;
36     (void)qos;
37     (void)qosCount;
38     (void)listener;
39     return 0;
40 }
41 
SendBytes(int32_t socket,const void * data,uint32_t len)42 int32_t SendBytes(int32_t socket, const void *data, uint32_t len)
43 {
44     (void)socket;
45     (void)data;
46     (void)len;
47     return 0;
48 }
49 
SendMessage(int32_t socket,const void * data,uint32_t len)50 int32_t SendMessage(int32_t socket, const void *data, uint32_t len)
51 {
52     (void)socket;
53     (void)data;
54     (void)len;
55     return 0;
56 }
57 
SendStream(int32_t socket,const StreamData * data,const StreamData * ext,const StreamFrameInfo * param)58 int32_t SendStream(int32_t socket, const StreamData *data, const StreamData *ext, const StreamFrameInfo *param)
59 {
60     (void)socket;
61     (void)data;
62     (void)ext;
63     (void)param;
64     return 0;
65 }
66 
SendFile(int32_t socket,const char * sFileList[],const char * dFileList[],uint32_t fileCnt)67 int32_t SendFile(int32_t socket, const char *sFileList[], const char *dFileList[], uint32_t fileCnt)
68 {
69     (void)socket;
70     (void)sFileList;
71     (void)dFileList;
72     (void)fileCnt;
73     return 0;
74 }
75 
Shutdown(int32_t socket)76 void Shutdown(int32_t socket)
77 {
78     (void)socket;
79 }
80 
EvaluateQos(const char * peerNetworkId,TransDataType dataType,const QosTV * qos,uint32_t qosCount)81 int32_t EvaluateQos(const char *peerNetworkId, TransDataType dataType, const QosTV *qos, uint32_t qosCount)
82 {
83     (void)peerNetworkId;
84     (void)dataType;
85     (void)qos;
86     (void)qosCount;
87     return 0;
88 }