ScummVM API documentation
ags_sock.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * of the License, or(at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef AGS_PLUGINS_AGS_SOCK_H
23 #define AGS_PLUGINS_AGS_SOCK_H
24 
25 #include "ags/plugins/ags_plugin.h"
26 
27 namespace AGS3 {
28 namespace Plugins {
29 namespace AGSSock {
30 
31 class AGSSock : public PluginBase {
32  SCRIPT_HASH(AGSSock)
33 private:
34  Common::String _text;
35 
40  void SockData_Create(ScriptMethodParams &params);
41 
45  void SockData_CreateEmpty(ScriptMethodParams &params);
46 
50  void SockData_CreateFromString(ScriptMethodParams &params);
51 
55  void SockData_get_Size(ScriptMethodParams &params);
56 
60  void SockData_set_Size(ScriptMethodParams &params);
61 
65  void SockData_geti_Chars(ScriptMethodParams &params);
66 
70  void SockData_seti_Chars(ScriptMethodParams &params);
71 
76  void SockData_AsString(ScriptMethodParams &params);
77 
82  void SockData_Clear(ScriptMethodParams &params);
83 
88  void SockAddr_Create(ScriptMethodParams &params);
89 
94  void SockAddr_CreateFromString(ScriptMethodParams &params);
95 
99  void SockAddr_CreateFromData(ScriptMethodParams &params);
100 
105  void SockAddr_CreateIP(ScriptMethodParams &params);
106 
111  void SockAddr_CreateIPv6(ScriptMethodParams &params);
112 
116  void SockAddr_get_Port(ScriptMethodParams &params);
117 
121  void SockAddr_set_Port(ScriptMethodParams &params);
122 
126  void SockAddr_get_Address(ScriptMethodParams &params);
127 
131  void SockAddr_set_Address(ScriptMethodParams &params);
132 
136  void SockAddr_get_IP(ScriptMethodParams &params);
137 
141  void SockAddr_set_IP(ScriptMethodParams &params);
142 
147  void SockAddr_GetData(ScriptMethodParams &params);
148 
152  void Socket_Create(ScriptMethodParams &params);
153 
157  void Socket_CreateUDP(ScriptMethodParams &params);
158 
162  void Socket_CreateTCP(ScriptMethodParams &params);
163 
167  void Socket_CreateUDPv6(ScriptMethodParams &params);
168 
172  void Socket_CreateTCPv6(ScriptMethodParams &params);
173 
177  void Socket_get_Tag(ScriptMethodParams &params);
178 
182  void Socket_set_Tag(ScriptMethodParams &params);
183 
187  void Socket_get_Local(ScriptMethodParams &params);
188 
192  void Socket_get_Remote(ScriptMethodParams &params);
193 
197  void Socket_get_Valid(ScriptMethodParams &params);
198 
203  void Socket_ErrorString(ScriptMethodParams &params);
204 
209  void Socket_Bind(ScriptMethodParams &params);
210 
216  void Socket_Listen(ScriptMethodParams &params);
217 
223  void Socket_Connect(ScriptMethodParams &params);
224 
229  void Socket_Accept(ScriptMethodParams &params);
230 
235  void Socket_Close(ScriptMethodParams &params);
236 
241  void Socket_Send(ScriptMethodParams &params);
242 
246  void Socket_SendTo(ScriptMethodParams &params);
247 
252  void Socket_Recv(ScriptMethodParams &params);
253 
258  void Socket_RecvFrom(ScriptMethodParams &params);
259 
264  void Socket_SendData(ScriptMethodParams &params);
265 
269  void Socket_SendDataTo(ScriptMethodParams &params);
270 
275  void Socket_RecvData(ScriptMethodParams &params);
276 
281  void Socket_RecvDataFrom(ScriptMethodParams &params);
282 
286  void Socket_GetOption(ScriptMethodParams &params);
287 
291  void Socket_SetOption(ScriptMethodParams &params);
292 
293 public:
294  AGSSock() : PluginBase() {}
295  virtual ~AGSSock() {}
296 
297  const char *AGS_GetPluginName() override;
298  void AGS_EngineStartup(IAGSEngine *engine) override;
299 
300 };
301 
302 } // namespace AGSSock
303 } // namespace Plugins
304 } // namespace AGS3
305 
306 #endif
Definition: str.h:59
Definition: plugin_base.h:171
Definition: ags_sock.h:31
Definition: plugin_base.h:131
Definition: ags_plugin.h:328
Definition: ags.h:40