runSocketplateAppTCP

socketplate quickstart app entry point

int main(string[] args) {
    return runSocketplateApp("my app", args, (SocketServer server) {
        server.listenTCP("127.0.0.1:8080", (SocketConnection connection) {
            // IPv4
        });
        server.listenTCP("[::1]:8080", (SocketConnection connection) {
            // IPv6
        });
    });
}
int main(string[] args) {
    return runSocketplateApp("my app", args, (SocketConnection connection) {
        // listening addresses are read from `args`
    });
}
@safe
int
runSocketplateAppTCP
(
string appName
,
string[] args
,
ConnectionHandler tcpConnectionHandler
,
string[] defaultListeningAddresses = null
,
SocketServerTunables defaults = SocketServerTunables()
)

Meta