Changeset 11319
- Timestamp:
- 2006-03-09T11:41:33+13:00 (18 years ago)
- Location:
- trunk/gsdl/src/w32server
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/w32server/fnord.cpp
r10231 r11319 331 331 // get the url and attempt to start a browser 332 332 if (have_networking) { 333 // There are now threeaddress resolution methods:333 // There are now four address resolution methods: 334 334 // 0: Standard -- get local IP then resolve to a name 335 335 // 1: IP only -- as above, but use IP only -- don't resolve to a name 336 // 2: 127.0.0.1 -- always use 127.0.0.1 336 // 2: localhost -- always use localhost 337 // 3: 127.0.0.1 -- always use 127.0.0.1 337 338 char gsdl_address[100]; 338 339 339 340 DWORD local_ip = GetLocalIP(); 340 if (local_ip == INADDR_ANY || gsdl_address_resolution_method == 2) {341 if (local_ip == INADDR_ANY || gsdl_address_resolution_method == 3) { 341 342 local_ip = 127 + (0 << 8) + (0 << 16) + (1 << 24); 342 343 } 343 344 344 if (gsdl_address_resolution_method == 1 || gsdl_address_resolution_method == 2) {345 if (gsdl_address_resolution_method == 1 || gsdl_address_resolution_method == 3) { 345 346 sprintf(gsdl_address, "%d.%d.%d.%d", local_ip & 0xFF, (local_ip >> 8) & 0xFF, (local_ip >> 16) & 0xFF, (local_ip >> 24) & 0xFF); 347 } 348 else if (gsdl_address_resolution_method == 2) { 349 sprintf(gsdl_address, "localhost"); 346 350 } 347 351 else { -
trunk/gsdl/src/w32server/resource.h
r11096 r11319 39 39 #define ID_ARM_IP 1025 40 40 #define ID_ARM_127_0_0_1 1026 41 #define ID_ARM_LOCALHOST 1027 41 42 #define ID_PROJECT_SETTINGS 40001 42 43 #define ID_PROJECT_EXIT 40002 … … 49 50 #define _APS_NEXT_RESOURCE_VALUE 127 50 51 #define _APS_NEXT_COMMAND_VALUE 40011 51 #define _APS_NEXT_CONTROL_VALUE 10 2652 #define _APS_NEXT_CONTROL_VALUE 1030 52 53 #define _APS_NEXT_SYMED_VALUE 102 53 54 #endif -
trunk/gsdl/src/w32server/settings.cpp
r11096 r11319 590 590 if (SendDlgItemMessage(hwndDlg, ID_ARM_IP, 591 591 BM_GETCHECK, 0, 0) == 1) return ARM_IP; 592 if (SendDlgItemMessage(hwndDlg, ID_ARM_LOCALHOST, 593 BM_GETCHECK, 0, 0) == 1) return ARM_LOCALHOST; 592 594 if (SendDlgItemMessage(hwndDlg, ID_ARM_127_0_0_1, 593 595 BM_GETCHECK, 0, 0) == 1) return ARM_127_0_0_1; … … 602 604 SendDlgItemMessage(hwndDlg, ID_ARM_IP, BM_SETCHECK, 603 605 (address_res_method == ARM_IP) ? BST_CHECKED : BST_UNCHECKED, 0); 606 SendDlgItemMessage(hwndDlg, ID_ARM_LOCALHOST, BM_SETCHECK, 607 (address_res_method == ARM_LOCALHOST) ? BST_CHECKED : BST_UNCHECKED, 0); 604 608 SendDlgItemMessage(hwndDlg, ID_ARM_127_0_0_1, BM_SETCHECK, 605 609 (address_res_method == ARM_127_0_0_1) ? BST_CHECKED : BST_UNCHECKED, 0); … … 754 758 dialog_update_enables(hwndDlg); 755 759 return 1; 760 case ID_ARM_LOCALHOST: 761 set_address_resolution_field (hwndDlg, ARM_LOCALHOST); 762 dialog_update_enables(hwndDlg); 763 return 1; 756 764 case ID_ARM_127_0_0_1: 757 765 set_address_resolution_field (hwndDlg, ARM_127_0_0_1); -
trunk/gsdl/src/w32server/settings.h
r11096 r11319 37 37 #define ARM_NAME 0 38 38 #define ARM_IP 1 39 #define ARM_127_0_0_1 2 39 #define ARM_LOCALHOST 2 40 #define ARM_127_0_0_1 3 40 41 41 42 #include "text_t.h"
Note:
See TracChangeset
for help on using the changeset viewer.