Skip to content

TCP Server

Introduction

ResIOT now allows you to create your own TCP and UDP server(s) right within the platform.

Be careful!

It's up to you to make sure only one connector is listening on a given port and to configure the server firewall to allow incoming connections over said port. If more than one server is listening over the same port over the same protocol one will surely fail to start. No priority system is in place.

Configuration

Server type: decide if you want your server to be TCP or UDP.

Listen address: [remote_host]:[port]. This field decides the listening port and accepted remote hosts. If you want to accept incoming connections from any IP address, just enter 0.0.0.0:port or :port

Buffer size: incoming data from the server connections need to be to be read from a LUA script. Until read, it will be stored in a buffer. This field specifies the max size of the buffer.

Handling data

Coming soon...