Files
GDevelop/Extensions/Network/NetworkManagerFunctions.h
T
Florian Rival a8559bfbbc Add clang-format to format (C++) source files automatically (#491)
* 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
2018-05-09 15:57:38 -07:00

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