1 | /* |
2 | * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
3 | * |
4 | * Licensed under the Apache License, Version 2.0 (the "License"). |
5 | * You may not use this file except in compliance with the License. |
6 | * A copy of the License is located at |
7 | * |
8 | * http://aws.amazon.com/apache2.0 |
9 | * |
10 | * or in the "license" file accompanying this file. This file is distributed |
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either |
12 | * express or implied. See the License for the specific language governing |
13 | * permissions and limitations under the License. |
14 | */ |
15 | |
16 | #include <cstddef> |
17 | #include <aws/core/utils/UnreferencedParam.h> |
18 | #include <aws/core/net/SimpleUDP.h> |
19 | |
20 | namespace Aws |
21 | { |
22 | namespace Net |
23 | { |
24 | SimpleUDP::SimpleUDP(int, size_t, size_t, bool) |
25 | { |
26 | } |
27 | |
28 | SimpleUDP::SimpleUDP(bool, size_t, size_t, bool) |
29 | { |
30 | } |
31 | |
32 | SimpleUDP::SimpleUDP(const char*, unsigned short, size_t, size_t, bool) |
33 | { |
34 | //prevent compiler warning for unused private variables |
35 | m_port = 0; |
36 | } |
37 | |
38 | SimpleUDP::~SimpleUDP() |
39 | { |
40 | } |
41 | |
42 | void SimpleUDP::CreateSocket(int, size_t, size_t, bool) |
43 | { |
44 | } |
45 | |
46 | int SimpleUDP::Connect(const sockaddr*, size_t) |
47 | { |
48 | return -1; |
49 | } |
50 | |
51 | int SimpleUDP::ConnectToHost(const char*, unsigned short) const |
52 | { |
53 | return -1; |
54 | } |
55 | |
56 | int SimpleUDP::ConnectToLocalHost(unsigned short) const |
57 | { |
58 | return -1; |
59 | } |
60 | |
61 | int SimpleUDP::Bind(const sockaddr*, size_t) const |
62 | { |
63 | return -1; |
64 | } |
65 | |
66 | int SimpleUDP::BindToLocalHost(unsigned short) const |
67 | { |
68 | return -1; |
69 | } |
70 | |
71 | int SimpleUDP::SendData(const uint8_t*, size_t) const |
72 | { |
73 | return -1; |
74 | } |
75 | |
76 | int SimpleUDP::SendDataTo(const sockaddr*, size_t, const uint8_t*, size_t) const |
77 | { |
78 | return -1; |
79 | } |
80 | |
81 | int SimpleUDP::SendDataToLocalHost(const uint8_t*, size_t, unsigned short) const |
82 | { |
83 | return -1; |
84 | } |
85 | |
86 | int SimpleUDP::ReceiveData(uint8_t*, size_t) const |
87 | { |
88 | return -1; |
89 | } |
90 | |
91 | int SimpleUDP::ReceiveDataFrom(sockaddr*, size_t*, uint8_t*, size_t) const |
92 | { |
93 | return -1; |
94 | } |
95 | } |
96 | } |
97 | |