mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-21 02:52:44 +02:00
13 lines
434 B
C++
13 lines
434 B
C++
#pragma once
|
|
#include <switch.h>
|
|
#include "iserver.hpp"
|
|
|
|
template <typename T>
|
|
class ManagedPortServer : public IServer<T> {
|
|
private:
|
|
virtual Result register_self(const char *service_name) {
|
|
return svcManageNamedPort(&this->port_handle, service_name, this->max_sessions);
|
|
}
|
|
public:
|
|
ManagedPortServer(const char *service_name, unsigned int max_s) : IServer<T>(service_name, max_s) { }
|
|
}; |