separate PIEthernet::Address to PINetworkAddress, typedef PIEthernet::Address to PINetworkAddress and mark as deprecated
PIValueTree new attributes for File and Dir
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include "piscreentiles.h"
|
||||
|
||||
|
||||
DispatcherServer::DispatcherServer(PIEthernet::Address addr): eth(PIEthernet::TCP_Server) {
|
||||
DispatcherServer::DispatcherServer(PINetworkAddress addr): eth(PIEthernet::TCP_Server) {
|
||||
client_gid = 0;
|
||||
max_connections = 1000;
|
||||
eth.setParameter(PIEthernet::ReuseAddress);
|
||||
|
||||
@@ -10,7 +10,7 @@ class DispatcherServer: public PIObject {
|
||||
PIOBJECT(DispatcherServer)
|
||||
|
||||
public:
|
||||
DispatcherServer(PIEthernet::Address addr);
|
||||
DispatcherServer(PINetworkAddress addr);
|
||||
~DispatcherServer();
|
||||
void start();
|
||||
|
||||
|
||||
@@ -65,9 +65,9 @@ int main(int argc, char * argv[]) {
|
||||
usage();
|
||||
return 0;
|
||||
}
|
||||
PIEthernet::Address addr = PIEthernet::Address("0.0.0.0", 10101);
|
||||
PINetworkAddress addr = PINetworkAddress("0.0.0.0", 10101);
|
||||
|
||||
PIString conf_path = confDir();
|
||||
PIString conf_path = confDir();
|
||||
PIDir::make(conf_path);
|
||||
conf_path += "/picloud.conf";
|
||||
uint max_connections = 1000;
|
||||
|
||||
Reference in New Issue
Block a user