project_files/frontlib/net/netconn.c
changeset 7580 c92596feac0d
parent 7566 57d343ee382f
child 7691 55c0a856ecd0
equal deleted inserted replaced
7578:d5c880e6d772 7580:c92596feac0d
   448 				if(!strcmp(subcmd, "SCHEME") && netmsg->partCount == flib_meta.modCount + flib_meta.settingCount + 3) {
   448 				if(!strcmp(subcmd, "SCHEME") && netmsg->partCount == flib_meta.modCount + flib_meta.settingCount + 3) {
   449 					flib_scheme *cfg = flib_scheme_from_netmsg(netmsg->parts+2);
   449 					flib_scheme *cfg = flib_scheme_from_netmsg(netmsg->parts+2);
   450 					if(cfg) {
   450 					if(cfg) {
   451 						flib_scheme_destroy(conn->scheme);
   451 						flib_scheme_destroy(conn->scheme);
   452 						conn->scheme = cfg;
   452 						conn->scheme = cfg;
   453 						conn->onCfgSchemeCb(conn->onCfgSchemeCtx, cfg);
   453 						conn->onSchemeChangedCb(conn->onSchemeChangedCtx, cfg);
   454 					} else {
   454 					} else {
   455 						flib_log_e("Error processing CFG SCHEME message");
   455 						flib_log_e("Error processing CFG SCHEME message");
   456 					}
   456 					}
   457 				} else if(!strcmp(subcmd, "FULLMAPCONFIG") && netmsg->partCount == 7) {
   457 				} else if(!strcmp(subcmd, "FULLMAPCONFIG") && netmsg->partCount == 7) {
   458 					flib_map *map = flib_map_from_netmsg(netmsg->parts+2);
   458 					flib_map *map = flib_map_from_netmsg(netmsg->parts+2);