Changeset 54
- Timestamp:
- 02/09/07 03:52:56 (4 years ago)
- Location:
- trunk/PmpMyApp
- Files:
-
- 2 added
- 7 modified
-
English.lproj/MainMenu.nib/classes.nib (modified) (1 diff)
-
English.lproj/MainMenu.nib/keyedobjects.nib (modified) (previous)
-
PmpMyApp.xcodeproj/project.pbxproj (modified) (6 diffs)
-
PmpMyApp.xcodeproj/tyler.mode1 (modified) (11 diffs)
-
PmpMyApp.xcodeproj/tyler.pbxuser (modified) (5 diffs)
-
source/XzibitController.h (added)
-
source/XzibitController.m (added)
-
source/pmpmapper.c (modified) (4 diffs)
-
source/pmpmapper.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PmpMyApp/English.lproj/MainMenu.nib/classes.nib
r48 r54 1 1 { 2 IBClasses = ({CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }); 2 IBClasses = ( 3 {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, 4 { 5 ACTIONS = {createMapping = id; destroyMapping = id; }; 6 CLASS = XzibitController; 7 LANGUAGE = ObjC; 8 OUTLETS = { 9 localCreatePort = NSTextField; 10 localDestroyPort = NSTextField; 11 mappingDuration = NSTextField; 12 natCreatePort = NSTextField; 13 statusField = NSTextField; 14 }; 15 SUPERCLASS = NSObject; 16 } 17 ); 3 18 IBVersion = 1; 4 19 } -
trunk/PmpMyApp/PmpMyApp.xcodeproj/project.pbxproj
r53 r54 8 8 9 9 /* Begin PBXBuildFile section */ 10 2F18D6740B7C6AF400149D44 /* XzibitController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2F18D6730B7C6AF400149D44 /* XzibitController.m */; }; 10 11 2F5A48720B75598F0052B0C1 /* pmpmapper.c in Sources */ = {isa = PBXBuildFile; fileRef = 2F5A48710B75598F0052B0C1 /* pmpmapper.c */; }; 11 12 2F5A48900B75658F0052B0C1 /* pmpmapper.c in Sources */ = {isa = PBXBuildFile; fileRef = 2F5A48710B75598F0052B0C1 /* pmpmapper.c */; }; … … 28 29 2F18D56B0B7C516D00149D44 /* draft-cheshire-nat-pmp.rtf */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = "draft-cheshire-nat-pmp.rtf"; path = "doc/draft-cheshire-nat-pmp.rtf"; sourceTree = "<group>"; }; 29 30 2F18D56C0B7C516D00149D44 /* draft-cheshire-nat-pmp.txt */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; name = "draft-cheshire-nat-pmp.txt"; path = "doc/draft-cheshire-nat-pmp.txt"; sourceTree = "<group>"; }; 31 2F18D6720B7C6AF400149D44 /* XzibitController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = XzibitController.h; path = source/XzibitController.h; sourceTree = "<group>"; }; 32 2F18D6730B7C6AF400149D44 /* XzibitController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = XzibitController.m; path = source/XzibitController.m; sourceTree = "<group>"; }; 30 33 2F5A48700B75598F0052B0C1 /* pmpmapper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = pmpmapper.h; path = source/pmpmapper.h; sourceTree = "<group>"; }; 31 34 2F5A48710B75598F0052B0C1 /* pmpmapper.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = pmpmapper.c; path = source/pmpmapper.c; sourceTree = "<group>"; }; … … 61 64 children = ( 62 65 2F5A486C0B7559600052B0C1 /* NAT-PMP */, 66 2F18D6720B7C6AF400149D44 /* XzibitController.h */, 67 2F18D6730B7C6AF400149D44 /* XzibitController.m */, 63 68 ); 64 69 name = Classes; … … 235 240 2F5A48720B75598F0052B0C1 /* pmpmapper.c in Sources */, 236 241 2F901ED00B7AEDB5004FF42C /* route.c in Sources */, 242 2F18D6740B7C6AF400149D44 /* XzibitController.m in Sources */, 237 243 ); 238 244 runOnlyForDeploymentPostprocessing = 0; … … 270 276 GCC_OPTIMIZATION_LEVEL = 0; 271 277 INSTALL_PATH = "$(HOME)/bin"; 278 OTHER_CFLAGS = "-DPMP_DEBUG"; 272 279 PREBINDING = NO; 273 280 PRODUCT_NAME = PMPMapper; … … 288 295 GCC_MODEL_TUNING = G5; 289 296 INSTALL_PATH = "$(HOME)/bin"; 297 OTHER_CFLAGS = "-DPMP_DEBUG"; 290 298 PREBINDING = NO; 291 299 PRODUCT_NAME = PMPMapper; -
trunk/PmpMyApp/PmpMyApp.xcodeproj/tyler.mode1
r53 r54 266 266 <array> 267 267 <array> 268 <integer>6</integer> 269 <integer>2</integer> 268 <integer>8</integer> 270 269 <integer>1</integer> 271 270 <integer>0</integer> … … 310 309 <string>1CE0B20306471E060097A5F4</string> 311 310 <key>PBXProjectModuleLabel</key> 312 <string> pmpmapper.c</string>311 <string>XzibitController.m</string> 313 312 <key>PBXSplitModuleInNavigatorKey</key> 314 313 <dict> … … 318 317 <string>1CE0B20406471E060097A5F4</string> 319 318 <key>PBXProjectModuleLabel</key> 320 <string> pmpmapper.c</string>319 <string>XzibitController.m</string> 321 320 <key>_historyCapacity</key> 322 321 <integer>0</integer> 323 322 <key>bookmark</key> 324 <string>2F18D6 5A0B7C688B00149D44</string>323 <string>2F18D69D0B7C6D9900149D44</string> 325 324 <key>history</key> 326 325 <array> … … 331 330 <string>2F9021510B7BE0FB004FF42C</string> 332 331 <string>2F18D5750B7C51B000149D44</string> 333 <string>2F18D62D0B7C661600149D44</string> 334 <string>2F18D62E0B7C661600149D44</string> 332 <string>2F18D6800B7C6CA900149D44</string> 333 <string>2F18D6950B7C6D8000149D44</string> 334 <string>2F18D6960B7C6D8000149D44</string> 335 <string>2F18D6970B7C6D8000149D44</string> 335 336 </array> 336 337 <key>prevStack</key> … … 344 345 <string>2F901EE10B7AEE09004FF42C</string> 345 346 <string>2F18D5770B7C51B000149D44</string> 346 <string>2F18D60F0B7C60BE00149D44</string> 347 <string>2F18D62F0B7C661600149D44</string> 347 <string>2F18D66A0B7C68EB00149D44</string> 348 <string>2F18D6840B7C6CA900149D44</string> 349 <string>2F18D6850B7C6CA900149D44</string> 350 <string>2F18D6860B7C6CA900149D44</string> 351 <string>2F18D6870B7C6CA900149D44</string> 352 <string>2F18D6980B7C6D8000149D44</string> 353 <string>2F18D6990B7C6D8000149D44</string> 348 354 </array> 349 355 </dict> … … 377 383 <dict> 378 384 <key>Frame</key> 379 <string>{{0, 88 3}, {951, 0}}</string>385 <string>{{0, 884}, {951, 0}}</string> 380 386 <key>RubberWindowFrame</key> 381 387 <string>1 104 1159 924 0 0 1680 1028 </string> … … 403 409 <key>TableOfContents</key> 404 410 <array> 405 <string>2F18D 5540B7C4C1900149D44</string>411 <string>2F18D66C0B7C68EB00149D44</string> 406 412 <string>1CE0B1FE06471DED0097A5F4</string> 407 <string>2F18D 5550B7C4C1900149D44</string>413 <string>2F18D66D0B7C68EB00149D44</string> 408 414 <string>1CE0B20306471E060097A5F4</string> 409 415 <string>1CE0B20506471E060097A5F4</string> … … 539 545 <key>WindowOrderList</key> 540 546 <array> 541 <string>2F18D5FC0B7C5F9400149D44</string>542 <string>2F18D5FD0B7C5F9400149D44</string>543 <string>2F5A48CE0B756D650052B0C1</string>544 <string>1CD10A99069EF8BA00B06720</string>545 <string>2F18D5FA0B7C5F9400149D44</string>546 547 <string>2F5A48970B7565A60052B0C1</string> 547 548 <string>1C0AD2B3069F1EA900FABCE6</string> … … 592 593 <dict> 593 594 <key>PBXBuildLogShowsTranscriptDefaultKey</key> 594 <string>{{0, 209}, {620, 261}}</string>595 <string>{{0, 149}, {620, 321}}</string> 595 596 <key>PBXProjectModuleGUID</key> 596 597 <string>XCMainBuildResultsModuleGUID</string> … … 630 631 <array> 631 632 <string>2F5A48970B7565A60052B0C1</string> 632 <string>2F18D 55F0B7C4E5500149D44</string>633 <string>2F18D66E0B7C68EB00149D44</string> 633 634 <string>1CD0528F0623707200166675</string> 634 635 <string>XCMainBuildResultsModuleGUID</string> … … 1000 1001 <array> 1001 1002 <string>1C0AD2B3069F1EA900FABCE6</string> 1002 <string>2F18D 5560B7C4C1900149D44</string>1003 <string>2F18D66F0B7C68EB00149D44</string> 1003 1004 <string>1CD0528B0623707200166675</string> 1004 <string>2F18D 5570B7C4C1900149D44</string>1005 <string>2F18D6700B7C68EB00149D44</string> 1005 1006 </array> 1006 1007 <key>ToolbarConfiguration</key> -
trunk/PmpMyApp/PmpMyApp.xcodeproj/tyler.pbxuser
r53 r54 10 10 29B97313FDCFA39411CA2CEA /* Project object */ = { 11 11 activeBuildConfigurationName = Debug; 12 activeExecutable = 2F5A48 8B0B7565810052B0C1 /* PMPMapper*/;13 activeTarget = 2F5A48890B7565810052B0C1 /* PMPMapper*/;12 activeExecutable = 2F5A484B0B7558670052B0C1 /* PmpMyApp */; 13 activeTarget = 8D1107260486CEB800E47090 /* PmpMyApp */; 14 14 addToTargets = ( 15 15 8D1107260486CEB800E47090 /* PmpMyApp */, … … 68 68 ); 69 69 }; 70 PBXPerProjectTemplateStateSaveDate = 192 695317;71 PBXWorkspaceStateSaveDate = 192 695317;70 PBXPerProjectTemplateStateSaveDate = 192702654; 71 PBXWorkspaceStateSaveDate = 192702654; 72 72 }; 73 73 perUserProjectItems = { 74 74 2F18D5750B7C51B000149D44 /* PBXTextBookmark */ = 2F18D5750B7C51B000149D44 /* PBXTextBookmark */; 75 75 2F18D5770B7C51B000149D44 /* PBXTextBookmark */ = 2F18D5770B7C51B000149D44 /* PBXTextBookmark */; 76 2F18D60F0B7C60BE00149D44 /* PBXTextBookmark */ = 2F18D60F0B7C60BE00149D44 /* PBXTextBookmark */; 77 2F18D62D0B7C661600149D44 /* PBXTextBookmark */ = 2F18D62D0B7C661600149D44 /* PBXTextBookmark */; 78 2F18D62E0B7C661600149D44 /* PBXTextBookmark */ = 2F18D62E0B7C661600149D44 /* PBXTextBookmark */; 79 2F18D62F0B7C661600149D44 /* PBXTextBookmark */ = 2F18D62F0B7C661600149D44 /* PBXTextBookmark */; 80 2F18D65A0B7C688B00149D44 /* PBXTextBookmark */ = 2F18D65A0B7C688B00149D44 /* PBXTextBookmark */; 76 2F18D66A0B7C68EB00149D44 /* PBXTextBookmark */ = 2F18D66A0B7C68EB00149D44 /* PBXTextBookmark */; 77 2F18D6800B7C6CA900149D44 /* PBXTextBookmark */ = 2F18D6800B7C6CA900149D44 /* PBXTextBookmark */; 78 2F18D6840B7C6CA900149D44 /* PBXTextBookmark */ = 2F18D6840B7C6CA900149D44 /* PBXTextBookmark */; 79 2F18D6850B7C6CA900149D44 /* PBXTextBookmark */ = 2F18D6850B7C6CA900149D44 /* PBXTextBookmark */; 80 2F18D6860B7C6CA900149D44 /* PBXTextBookmark */ = 2F18D6860B7C6CA900149D44 /* PBXTextBookmark */; 81 2F18D6870B7C6CA900149D44 /* PBXTextBookmark */ = 2F18D6870B7C6CA900149D44 /* PBXTextBookmark */; 82 2F18D6950B7C6D8000149D44 /* PBXTextBookmark */ = 2F18D6950B7C6D8000149D44 /* PBXTextBookmark */; 83 2F18D6960B7C6D8000149D44 /* PBXTextBookmark */ = 2F18D6960B7C6D8000149D44 /* PBXTextBookmark */; 84 2F18D6970B7C6D8000149D44 /* PBXTextBookmark */ = 2F18D6970B7C6D8000149D44 /* PBXTextBookmark */; 85 2F18D6980B7C6D8000149D44 /* PBXTextBookmark */ = 2F18D6980B7C6D8000149D44 /* PBXTextBookmark */; 86 2F18D6990B7C6D8000149D44 /* PBXTextBookmark */ = 2F18D6990B7C6D8000149D44 /* PBXTextBookmark */; 87 2F18D69D0B7C6D9900149D44 /* PBXTextBookmark */ = 2F18D69D0B7C6D9900149D44 /* PBXTextBookmark */; 81 88 2F5A489C0B7565AE0052B0C1 /* PBXTextBookmark */ = 2F5A489C0B7565AE0052B0C1 /* PBXTextBookmark */; 82 89 2F5A489D0B7565AE0052B0C1 /* PBXTextBookmark */ = 2F5A489D0B7565AE0052B0C1 /* PBXTextBookmark */; … … 123 130 vrLoc = 0; 124 131 }; 125 2F18D60F0B7C60BE00149D44 /* PBXTextBookmark */ = { 126 isa = PBXTextBookmark; 127 fRef = 2F5A48710B75598F0052B0C1 /* pmpmapper.c */; 128 name = "pmpmapper.c: 151"; 129 rLen = 0; 130 rLoc = 4269; 131 rType = 0; 132 vrLen = 754; 133 vrLoc = 3859; 134 }; 135 2F18D62D0B7C661600149D44 /* PBXTextBookmark */ = { 136 isa = PBXTextBookmark; 137 fRef = 2F5A48700B75598F0052B0C1 /* pmpmapper.h */; 138 name = "pmpmapper.h: "; 139 rLen = 0; 140 rLoc = 1128; 141 rType = 0; 142 vrLen = 1117; 143 vrLoc = 201; 144 }; 145 2F18D62E0B7C661600149D44 /* PBXTextBookmark */ = { 146 isa = PBXTextBookmark; 147 fRef = 2F5A48710B75598F0052B0C1 /* pmpmapper.c */; 148 name = "pmpmapper.c: 151"; 149 rLen = 0; 150 rLoc = 4269; 151 rType = 0; 152 vrLen = 1951; 153 vrLoc = 3397; 154 }; 155 2F18D62F0B7C661600149D44 /* PBXTextBookmark */ = { 156 isa = PBXTextBookmark; 157 fRef = 2F5A48700B75598F0052B0C1 /* pmpmapper.h */; 158 name = "pmpmapper.h: "; 159 rLen = 0; 160 rLoc = 1128; 161 rType = 0; 162 vrLen = 1117; 163 vrLoc = 201; 164 }; 165 2F18D65A0B7C688B00149D44 /* PBXTextBookmark */ = { 132 2F18D66A0B7C68EB00149D44 /* PBXTextBookmark */ = { 166 133 isa = PBXTextBookmark; 167 134 fRef = 2F5A48710B75598F0052B0C1 /* pmpmapper.c */; 168 135 name = "pmpmapper.c: 279"; 169 136 rLen = 0; 170 rLoc = 80 97;137 rLoc = 8035; 171 138 rType = 0; 172 139 vrLen = 1588; 173 140 vrLoc = 0; 174 141 }; 142 2F18D6720B7C6AF400149D44 /* XzibitController.h */ = { 143 uiCtxt = { 144 sepNavIntBoundsRect = "{{0, 0}, {904, 847}}"; 145 sepNavSelRange = "{406, 77}"; 146 sepNavVisRect = "{{0, 0}, {904, 847}}"; 147 }; 148 }; 149 2F18D6730B7C6AF400149D44 /* XzibitController.m */ = { 150 uiCtxt = { 151 sepNavIntBoundsRect = "{{0, 0}, {904, 847}}"; 152 sepNavSelRange = "{824, 0}"; 153 sepNavVisRect = "{{0, 0}, {904, 847}}"; 154 }; 155 }; 156 2F18D6800B7C6CA900149D44 /* PBXTextBookmark */ = { 157 isa = PBXTextBookmark; 158 fRef = 2F18D6720B7C6AF400149D44 /* XzibitController.h */; 159 name = "XzibitController.h: 19"; 160 rLen = 77; 161 rLoc = 406; 162 rType = 0; 163 vrLen = 490; 164 vrLoc = 0; 165 }; 166 2F18D6840B7C6CA900149D44 /* PBXTextBookmark */ = { 167 isa = PBXTextBookmark; 168 fRef = 2F5A48700B75598F0052B0C1 /* pmpmapper.h */; 169 name = "pmpmapper.h: 26"; 170 rLen = 0; 171 rLoc = 439; 172 rType = 0; 173 vrLen = 808; 174 vrLoc = 35; 175 }; 176 2F18D6850B7C6CA900149D44 /* PBXTextBookmark */ = { 177 isa = PBXTextBookmark; 178 fRef = 2F18D6720B7C6AF400149D44 /* XzibitController.h */; 179 name = "XzibitController.h: 19"; 180 rLen = 77; 181 rLoc = 406; 182 rType = 0; 183 vrLen = 490; 184 vrLoc = 0; 185 }; 186 2F18D6860B7C6CA900149D44 /* PBXTextBookmark */ = { 187 isa = PBXTextBookmark; 188 fRef = 2F18D6730B7C6AF400149D44 /* XzibitController.m */; 189 name = "XzibitController.m: 19"; 190 rLen = 0; 191 rLoc = 714; 192 rType = 0; 193 vrLen = 456; 194 vrLoc = 0; 195 }; 196 2F18D6870B7C6CA900149D44 /* PBXTextBookmark */ = { 197 isa = PBXTextBookmark; 198 fRef = 2F5A48710B75598F0052B0C1 /* pmpmapper.c */; 199 name = "pmpmapper.c: 237"; 200 rLen = 0; 201 rLoc = 6828; 202 rType = 0; 203 vrLen = 1486; 204 vrLoc = 6002; 205 }; 206 2F18D6950B7C6D8000149D44 /* PBXTextBookmark */ = { 207 isa = PBXTextBookmark; 208 fRef = 2F5A48700B75598F0052B0C1 /* pmpmapper.h */; 209 name = "pmpmapper.h: pmp_destroy_map"; 210 rLen = 0; 211 rLoc = 1499; 212 rType = 0; 213 vrLen = 1260; 214 vrLoc = 284; 215 }; 216 2F18D6960B7C6D8000149D44 /* PBXTextBookmark */ = { 217 isa = PBXTextBookmark; 218 fRef = 2F5A48710B75598F0052B0C1 /* pmpmapper.c */; 219 name = "pmpmapper.c: 244"; 220 rLen = 0; 221 rLoc = 7071; 222 rType = 0; 223 vrLen = 1533; 224 vrLoc = 6038; 225 }; 226 2F18D6970B7C6D8000149D44 /* PBXTextBookmark */ = { 227 isa = PBXTextBookmark; 228 fRef = 2F18D6730B7C6AF400149D44 /* XzibitController.m */; 229 name = "XzibitController.m: 19"; 230 rLen = 0; 231 rLoc = 714; 232 rType = 0; 233 vrLen = 456; 234 vrLoc = 0; 235 }; 236 2F18D6980B7C6D8000149D44 /* PBXTextBookmark */ = { 237 isa = PBXTextBookmark; 238 fRef = 2F5A48700B75598F0052B0C1 /* pmpmapper.h */; 239 name = "pmpmapper.h: pmp_destroy_map"; 240 rLen = 0; 241 rLoc = 1499; 242 rType = 0; 243 vrLen = 1260; 244 vrLoc = 284; 245 }; 246 2F18D6990B7C6D8000149D44 /* PBXTextBookmark */ = { 247 isa = PBXTextBookmark; 248 fRef = 2F5A48710B75598F0052B0C1 /* pmpmapper.c */; 249 name = "pmpmapper.c: 244"; 250 rLen = 0; 251 rLoc = 7071; 252 rType = 0; 253 vrLen = 1533; 254 vrLoc = 6038; 255 }; 256 2F18D69D0B7C6D9900149D44 /* PBXTextBookmark */ = { 257 isa = PBXTextBookmark; 258 fRef = 2F18D6730B7C6AF400149D44 /* XzibitController.m */; 259 name = "XzibitController.m: 34"; 260 rLen = 0; 261 rLoc = 824; 262 rType = 0; 263 vrLen = 1069; 264 vrLoc = 0; 265 }; 175 266 2F5A484B0B7558670052B0C1 /* PmpMyApp */ = { 176 isa = PBXExecutable;177 activeArgIndex = 2147483647;178 activeArgIndices = (179 );180 argumentStrings = (181 );182 autoAttachOnCrash = 1;183 configStateDict = {184 };185 customDataFormattersEnabled = 1;186 debuggerPlugin = GDBDebugging;187 disassemblyDisplayState = 0;188 enableDebugStr = 1;189 environmentEntries = (190 );191 executableSystemSymbolLevel = 0;192 executableUserSymbolLevel = 0;193 libgmallocEnabled = 0;194 name = PmpMyApp;195 sourceDirectories = (196 );197 };198 2F5A48590B75586F0052B0C1 /* Source Control */ = {199 isa = PBXSourceControlManager;200 fallbackIsa = XCSourceControlManager;201 isSCMEnabled = 0;202 scmConfiguration = {203 };204 scmType = "";205 };206 2F5A485A0B75586F0052B0C1 /* Code sense */ = {207 isa = PBXCodeSenseManager;208 indexTemplatePath = "";209 };210 2F5A48700B75598F0052B0C1 /* pmpmapper.h */ = {211 uiCtxt = {212 sepNavIntBoundsRect = "{{0, 0}, {904, 1036}}";213 sepNavSelRange = "{1128, 0}";214 sepNavVisRect = "{{0, 190}, {904, 846}}";215 sepNavWindowFrame = "{{1954, -14}, {939, 979}}";216 };217 };218 2F5A48710B75598F0052B0C1 /* pmpmapper.c */ = {219 uiCtxt = {220 sepNavIntBoundsRect = "{{0, 0}, {904, 4102}}";221 sepNavSelRange = "{8097, 0}";222 sepNavVisRect = "{{0, 0}, {904, 847}}";223 };224 };225 2F5A48890B7565810052B0C1 /* PMPMapper */ = {226 activeExec = 0;227 executables = (228 2F5A488B0B7565810052B0C1 /* PMPMapper */,229 );230 };231 2F5A488B0B7565810052B0C1 /* PMPMapper */ = {232 267 isa = PBXExecutable; 233 268 activeArgIndex = 2147483647; … … 249 284 executableUserSymbolLevel = 0; 250 285 libgmallocEnabled = 0; 286 name = PmpMyApp; 287 sourceDirectories = ( 288 ); 289 }; 290 2F5A48590B75586F0052B0C1 /* Source Control */ = { 291 isa = PBXSourceControlManager; 292 fallbackIsa = XCSourceControlManager; 293 isSCMEnabled = 0; 294 scmConfiguration = { 295 }; 296 scmType = ""; 297 }; 298 2F5A485A0B75586F0052B0C1 /* Code sense */ = { 299 isa = PBXCodeSenseManager; 300 indexTemplatePath = ""; 301 }; 302 2F5A48700B75598F0052B0C1 /* pmpmapper.h */ = { 303 uiCtxt = { 304 sepNavIntBoundsRect = "{{0, 0}, {904, 1092}}"; 305 sepNavSelRange = "{1499, 0}"; 306 sepNavVisRect = "{{0, 245}, {904, 847}}"; 307 sepNavWindowFrame = "{{1954, -14}, {939, 979}}"; 308 }; 309 }; 310 2F5A48710B75598F0052B0C1 /* pmpmapper.c */ = { 311 uiCtxt = { 312 sepNavIntBoundsRect = "{{0, 0}, {904, 4158}}"; 313 sepNavSelRange = "{7071, 0}"; 314 sepNavVisRect = "{{0, 2888}, {904, 847}}"; 315 }; 316 }; 317 2F5A48890B7565810052B0C1 /* PMPMapper */ = { 318 activeExec = 0; 319 executables = ( 320 2F5A488B0B7565810052B0C1 /* PMPMapper */, 321 ); 322 }; 323 2F5A488B0B7565810052B0C1 /* PMPMapper */ = { 324 isa = PBXExecutable; 325 activeArgIndex = 2147483647; 326 activeArgIndices = ( 327 ); 328 argumentStrings = ( 329 ); 330 autoAttachOnCrash = 1; 331 configStateDict = { 332 }; 333 customDataFormattersEnabled = 1; 334 debuggerPlugin = GDBDebugging; 335 disassemblyDisplayState = 0; 336 dylibVariantSuffix = ""; 337 enableDebugStr = 1; 338 environmentEntries = ( 339 ); 340 executableSystemSymbolLevel = 0; 341 executableUserSymbolLevel = 0; 342 libgmallocEnabled = 0; 251 343 name = PMPMapper; 252 344 savedGlobals = { … … 318 410 name = "PMPMapper.c: 29"; 319 411 rLen = 0; 320 rLoc = 7 302;412 rLoc = 7240; 321 413 rType = 0; 322 414 vrLen = 951; -
trunk/PmpMyApp/source/pmpmapper.c
r53 r54 28 28 29 29 /*! 30 * pmp_get_public( struct sockaddr_in *) will return a sockaddr_in30 * pmp_get_public() will return a sockaddr_in 31 31 * structure representing the publicly facing IP address of the 32 32 * default NAT gateway. The function will return NULL if: … … 34 34 * - The gateway errors in some other spectacular fashion 35 35 */ 36 struct sockaddr_in *pmp_get_public(struct sockaddr_in *gateway) 37 { 36 struct sockaddr_in *pmp_get_public() 37 { 38 struct sockaddr_in *gateway = default_gw(); 39 38 40 if (gateway == NULL) 39 41 { … … 135 137 136 138 /*! 137 * pmp_create_map( struct sockaddr_in *,uint8_t,uint16_t,uint16_t,uint32_t)139 * pmp_create_map(uint8_t,uint16_t,uint16_t,uint32_t) 138 140 * will return NULL on error, or a pointer to the pmp_map_response_t type 139 141 */ 140 pmp_map_response_t *pmp_create_map(struct sockaddr_in *gateway, uint8_t type, uint16_t privateport, uint16_t publicport, uint32_t lifetime) 141 { 142 pmp_map_response_t *pmp_create_map(uint8_t type, uint16_t privateport, uint16_t publicport, uint32_t lifetime) 143 { 144 struct sockaddr_in *gateway = default_gw(); 145 142 146 if (gateway == NULL) 143 147 { … … 231 235 232 236 /*! 233 * pmp_destroy_map( struct sockaddr_in *,uint8_t,uint16_t)237 * pmp_destroy_map(uint8_t,uint16_t) 234 238 * will return NULL on error, or a pointer to the pmp_map_response_t type 235 239 */ 236 pmp_map_response_t *pmp_destroy_map( struct sockaddr_in *gateway,uint8_t type, uint16_t privateport)240 pmp_map_response_t *pmp_destroy_map(uint8_t type, uint16_t privateport) 237 241 { 238 242 pmp_map_response_t *response = NULL; 239 243 240 if ((response = pmp_create_map( gateway,type, privateport, 0, 0)) == NULL)244 if ((response = pmp_create_map(type, privateport, 0, 0)) == NULL) 241 245 { 242 246 fprintf(stderr, "Failed to properly destroy mapping for %d!\n", privateport); -
trunk/PmpMyApp/source/pmpmapper.h
r53 r54 24 24 25 25 // Comment out to disable building main() 26 #define PMP_DEBUG26 //#define PMP_DEBUG 27 27 28 28 #define PMP_VERSION 0 … … 72 72 } pmp_map_response_t; 73 73 74 struct sockaddr_in *pmp_get_public( struct sockaddr_in *gateway);75 pmp_map_response_t *pmp_create_map( struct sockaddr_in *gateway,uint8_t type, uint16_t privateport, uint16_t publicport, uint32_t lifetime);76 pmp_map_response_t *pmp_destroy_map( struct sockaddr_in *gateway,uint8_t type, uint16_t privateport);74 struct sockaddr_in *pmp_get_public(); 75 pmp_map_response_t *pmp_create_map(uint8_t type, uint16_t privateport, uint16_t publicport, uint32_t lifetime); 76 pmp_map_response_t *pmp_destroy_map(uint8_t type, uint16_t privateport); 77 77 78 78 #endif
