1 /*
2 * Copyright (c) 2025 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 return 1;
21 }
22
Listen(int32_t socket,const QosTV qos[],uint32_t qosCount,const ISocketListener * listener)23 int32_t Listen(int32_t socket, const QosTV qos[], uint32_t qosCount, const ISocketListener *listener)
24 {
25 return 0;
26 }
27
Bind(int32_t socket,const QosTV qos[],uint32_t qosCount,const ISocketListener * listener)28 int32_t Bind(int32_t socket, const QosTV qos[], uint32_t qosCount, const ISocketListener *listener)
29 {
30 return 0;
31 }
32
BindAsync(int32_t socket,const QosTV qos[],uint32_t qosCount,const ISocketListener * listener)33 int32_t BindAsync(int32_t socket, const QosTV qos[], uint32_t qosCount, const ISocketListener *listener)
34 {
35 return 0;
36 }
37
SendBytes(int32_t socket,const void * data,uint32_t len)38 int32_t SendBytes(int32_t socket, const void *data, uint32_t len)
39 {
40 return 0;
41 }
42
SendBytesAsync(int32_t socket,uint32_t dataSeq,const void * data,uint32_t len)43 int32_t SendBytesAsync(int32_t socket, uint32_t dataSeq, const void *data, uint32_t len)
44 {
45 return 0;
46 }
47
SendMessage(int32_t socket,const void * data,uint32_t len)48 int32_t SendMessage(int32_t socket, const void *data, uint32_t len)
49 {
50 return 0;
51 }
52
SendStream(int32_t socket,const StreamData * data,const StreamData * ext,const StreamFrameInfo * param)53 int32_t SendStream(int32_t socket, const StreamData *data, const StreamData *ext,
54 const StreamFrameInfo *param)
55 {
56 return 0;
57 }
58
SendFile(int32_t socket,const char * sFileList[],const char * dFileList[],uint32_t fileCnt)59 int32_t SendFile(int32_t socket, const char *sFileList[], const char *dFileList[], uint32_t fileCnt)
60 {
61 return 0;
62 }
63
Shutdown(int32_t socket)64 void Shutdown(int32_t socket)
65 {
66 }
67
EvaluateQos(const char * peerNetworkId,TransDataType dataType,const QosTV * qos,uint32_t qosCount)68 int32_t EvaluateQos(const char *peerNetworkId, TransDataType dataType, const QosTV *qos, uint32_t qosCount)
69 {
70 return 0;
71 }
72
SetAccessInfo(int32_t socket,SocketAccessInfo accessInfo)73 int32_t SetAccessInfo(int32_t socket, SocketAccessInfo accessInfo)
74 {
75 return 0;
76 }
77