Code Modules: TcpSocketPlugin (Runtime)

Intended Platforms: All platforms that support sockets and multi-threading, which is most of them, except HTML5.

代码模块:TcpSocketPlugin(运行时)

预期平台:所有支持套接字和多线程的平台,这是其中的大部分,除了HTML5。

TCP Socket Plugin allows communication with a TCP server purely in blueprints (C++ usage also available). Client-only functionality.

The project is available for free on Github. It’s open source and you’re welcome to contribute.

You can get it for free (Personal license) or buy it for $15 (Professional license) as a thank you.

Usage

Create a Blueprint inheriting from TcpSocketConnection, drop it into the level and recreate nodes from the screenshot to use it.

For C++ usage example, see Github page.

Features
  • Supports multiple connections

  • Multi-threaded: each connection runs on its own thread

  • Detects disconnects as soon as they happen

  • Even dispatchers: OnConnected, OnDisconnected (also triggers when connection fails), OnMessageReceived

  • Serialize and deserialize basic types: UInt8, Int32, Int64, Float (4 and 8 bytes), String

TCP套接字插件允许纯粹在蓝图中与TCP服务器通信(c++用法也可用)。 只限客户 功能性。

该项目可于 Github. 它是开源的,欢迎您做出贡献。

您可以免费获得(个人许可证)或以$15(专业许可证)购买作为感谢。

使用方法

创建一个继承自TcpSocketConnection的蓝图,将其放入关卡并从屏幕截图中重新创建节点以使用它。

有关C++使用示例,请参阅Github页面。

特征
  • 支持多个连接

  • 多线程:每个连接都在自己的线程上运行

  • 在断开连接发生后立即检测到断开连接

  • 甚至dispatchers:OnConnected,OnDisconnected(连接失败时也会触发),OnMessageReceived

  • 序列化和反序列化基本类型:UInt8,Int32,Int64,Float(4和8字节),String

声明:本站所有资源都是由站长从网络上收集而来,如若本站内容侵犯了原著者的合法权益,可联系站长删除。