private void CFG1() { String cmd = ReadC(); SendSTART(); if (cmd == "Buffersize") { int old = ConfigGetBuffersize(); ConfigSetBuffersize(ReadI()); SendI(ConfigGetBuffersize()); ConfigSetBuffersize(old); } else if (cmd == "Debug") { int old = ConfigGetDebug(); ConfigSetDebug(ReadI()); SendI(ConfigGetDebug()); ConfigSetDebug(old); } else if (cmd == "Timeout") { long old = ConfigGetTimeout(); ConfigSetTimeout(ReadW()); SendW(ConfigGetTimeout()); ConfigSetTimeout(old); } else if (cmd == "Name") { string old = ConfigGetName(); ConfigSetName(ReadC()); SendC(ConfigGetName()); ConfigSetName(old); } else if (cmd == "SrvName") { string old = ConfigGetSrvName(); ConfigSetSrvName(ReadC()); SendC(ConfigGetSrvName()); ConfigSetSrvName(old); } else if (cmd == "Storage") { string old = ConfigGetStorage(); ConfigSetStorage(ReadC()); SendC(ConfigGetStorage()); ConfigSetStorage(old); } else if (cmd == "Ident") { string old = FactoryCtxIdentGet(); FactoryCtxSet(MqFactoryS <Server> .Get().Copy(ReadC()).factory); bool check = LinkGetTargetIdent() == ReadC(); SendSTART(); SendC(FactoryCtxIdentGet()); SendO(check); FactoryCtxIdentSet(old); } else if (cmd == "IsSilent") { bool old = ConfigGetIsSilent(); ConfigSetIsSilent(ReadO()); SendO(ConfigGetIsSilent()); ConfigSetIsSilent(old); } else if (cmd == "IsString") { bool old = ConfigGetIsString(); ConfigSetIsString(ReadO()); SendO(ConfigGetIsString()); ConfigSetIsString(old); } else if (cmd == "IoUds") { string old = ConfigGetIoUdsFile(); ConfigSetIoUdsFile(ReadC()); SendC(ConfigGetIoUdsFile()); ConfigSetIoUdsFile(old); } else if (cmd == "IoTcp") { string h, p, mh, mp; string hv, pv, mhv, mpv; h = ConfigGetIoTcpHost(); p = ConfigGetIoTcpPort(); mh = ConfigGetIoTcpMyHost(); mp = ConfigGetIoTcpMyPort(); hv = ReadC(); pv = ReadC(); mhv = ReadC(); mpv = ReadC(); ConfigSetIoTcp(hv, pv, mhv, mpv); SendC(ConfigGetIoTcpHost()); SendC(ConfigGetIoTcpPort()); SendC(ConfigGetIoTcpMyHost()); SendC(ConfigGetIoTcpMyPort()); ConfigSetIoTcp(h, p, mh, mp); } else if (cmd == "IoPipe") { int old = ConfigGetIoPipeSocket(); ConfigSetIoPipeSocket(ReadI()); SendI(ConfigGetIoPipeSocket()); ConfigSetIoPipeSocket(old); } else if (cmd == "StartAs") { START old = ConfigGetStartAs(); ConfigSetStartAs((START)ReadI()); SendI((int)ConfigGetStartAs()); ConfigSetStartAs(old); } else if (cmd == "DefaultIdent") { SendC(MqFactoryS <Server> .DefaultIdent()); } else { ErrorC("CFG1", 1, "invalid command: " + cmd); } SendRETURN(); }