mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-24 03:54:34 -04:00
a8559bfbbc
* Update all CMakeLists of extensions to use clang-format * Run clang-format on all Extensions * Update GDCore CMakeLists.txt to add clang-format * Run clang-format on GDCore files * Update GDJS and GDCpp CMakeLists.txt to add clang-format * Run clang-format on GDCpp and GDJS files
36 lines
1.2 KiB
C++
36 lines
1.2 KiB
C++
/**
|
|
|
|
GDevelop - Network Extension
|
|
Copyright (c) 2010-2016 Florian Rival (Florian.Rival@gmail.com)
|
|
This project is released under the MIT License.
|
|
*/
|
|
|
|
#ifndef NetworkACTIONS_H_INCLUDED
|
|
#define NetworkACTIONS_H_INCLUDED
|
|
#include <string>
|
|
#include "GDCpp/Runtime/String.h"
|
|
|
|
namespace GDpriv {
|
|
namespace NetworkExtension {
|
|
|
|
void GD_EXTENSION_API ResetReceivedData();
|
|
void GD_EXTENSION_API ActStopListening();
|
|
void GD_EXTENSION_API AddRecipient(const gd::String& adressStr,
|
|
short unsigned int port);
|
|
void GD_EXTENSION_API RemoveAllRecipients();
|
|
void GD_EXTENSION_API ListenToPort(short unsigned int port);
|
|
void GD_EXTENSION_API SendValue(const gd::String& title, double data);
|
|
void GD_EXTENSION_API SendString(const gd::String& title,
|
|
const gd::String& data);
|
|
void GD_EXTENSION_API ReceivePackets();
|
|
gd::String GD_EXTENSION_API GetReceivedDataString(const gd::String& title);
|
|
double GD_EXTENSION_API GetReceivedDataValue(const gd::String& title);
|
|
gd::String GD_EXTENSION_API GetLastError();
|
|
gd::String GD_EXTENSION_API GetPublicAddress(float timeoutInSeconds);
|
|
gd::String GD_EXTENSION_API GetLocalAddress();
|
|
|
|
} // namespace NetworkExtension
|
|
} // namespace GDpriv
|
|
|
|
#endif // NetworkACTIONS_H_INCLUDED
|