# HG changeset patch # User snej@snej.local # Date 1228286576 28800 # Node ID a4875607a3a054971a5314188b179a8dfdfb90e5 # Parent ab88e3ee5726ece55b5f98e56e37c2c2ab178d5d Added iPhone demo project diff -r ab88e3ee5726 -r a4875607a3a0 MYNetwork-iPhone.xcodeproj/project.pbxproj --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MYNetwork-iPhone.xcodeproj/project.pbxproj Tue Dec 02 22:42:56 2008 -0800 @@ -0,0 +1,447 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 45; + objects = { + +/* Begin PBXBuildFile section */ + 1D60589B0D05DD56006BFB54 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; }; + 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; + 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; + 270E9AC00EE61113003F17CA /* IPAddress.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AA20EE61113003F17CA /* IPAddress.m */; }; + 270E9AC10EE61113003F17CA /* TCPConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AA50EE61113003F17CA /* TCPConnection.m */; }; + 270E9AC20EE61113003F17CA /* TCPEndpoint.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AA70EE61113003F17CA /* TCPEndpoint.m */; }; + 270E9AC30EE61113003F17CA /* TCPListener.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AA90EE61113003F17CA /* TCPListener.m */; }; + 270E9AC40EE61113003F17CA /* TCPStream.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AAB0EE61113003F17CA /* TCPStream.m */; }; + 270E9AC50EE61113003F17CA /* TCPWriter.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AAD0EE61113003F17CA /* TCPWriter.m */; }; + 270E9AC60EE61113003F17CA /* BLIPConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AB20EE61113003F17CA /* BLIPConnection.m */; }; + 270E9AC70EE61113003F17CA /* BLIPDispatcher.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AB40EE61113003F17CA /* BLIPDispatcher.m */; }; + 270E9AC80EE61113003F17CA /* BLIPMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AB60EE61113003F17CA /* BLIPMessage.m */; }; + 270E9AC90EE61113003F17CA /* BLIPRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AB80EE61113003F17CA /* BLIPRequest.m */; }; + 270E9ACA0EE61113003F17CA /* BLIPProperties.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9ABA0EE61113003F17CA /* BLIPProperties.m */; }; + 270E9ACB0EE61113003F17CA /* BLIPReader.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9ABC0EE61113003F17CA /* BLIPReader.m */; }; + 270E9ACC0EE61113003F17CA /* BLIPWriter.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9ABE0EE61113003F17CA /* BLIPWriter.m */; }; + 270E9ADF0EE6111A003F17CA /* CollectionUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AD10EE6111A003F17CA /* CollectionUtils.m */; }; + 270E9AE00EE6111A003F17CA /* ExceptionUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AD30EE6111A003F17CA /* ExceptionUtils.m */; }; + 270E9AE10EE6111A003F17CA /* Logging.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AD50EE6111A003F17CA /* Logging.m */; }; + 270E9AE20EE6111A003F17CA /* Target.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AD70EE6111A003F17CA /* Target.m */; }; + 270E9AE30EE6111A003F17CA /* Test.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AD90EE6111A003F17CA /* Test.m */; }; + 270E9AE40EE6111A003F17CA /* GTMNSData+zlib.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9ADD0EE6111A003F17CA /* GTMNSData+zlib.m */; }; + 270E9AE90EE61167003F17CA /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 270E9AE80EE61167003F17CA /* libz.dylib */; }; + 270E9B4F0EE63F8F003F17CA /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 270E9B4E0EE63F8F003F17CA /* CFNetwork.framework */; }; + 270E9B950EE64B3C003F17CA /* HelloWorld.xib in Resources */ = {isa = PBXBuildFile; fileRef = 270E9B940EE64B3C003F17CA /* HelloWorld.xib */; }; + 270E9B990EE64B45003F17CA /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 270E9B960EE64B45003F17CA /* Default.png */; }; + 270E9B9A0EE64B45003F17CA /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 270E9B970EE64B45003F17CA /* Icon.png */; }; + 270E9BA10EE64B4E003F17CA /* HelloWorldAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9B9E0EE64B4E003F17CA /* HelloWorldAppDelegate.m */; }; + 270E9BA20EE64B4E003F17CA /* MyViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9BA00EE64B4E003F17CA /* MyViewController.m */; }; + 280E754F0DD40C5E005A515E /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 280E754C0DD40C5E005A515E /* MainWindow.xib */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 1D6058910D05DD3D006BFB54 /* BLIPEcho.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BLIPEcho.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 270E9AA10EE61113003F17CA /* IPAddress.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IPAddress.h; sourceTree = ""; }; + 270E9AA20EE61113003F17CA /* IPAddress.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IPAddress.m; sourceTree = ""; }; + 270E9AA40EE61113003F17CA /* TCPConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TCPConnection.h; sourceTree = ""; }; + 270E9AA50EE61113003F17CA /* TCPConnection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TCPConnection.m; sourceTree = ""; }; + 270E9AA60EE61113003F17CA /* TCPEndpoint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TCPEndpoint.h; sourceTree = ""; }; + 270E9AA70EE61113003F17CA /* TCPEndpoint.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TCPEndpoint.m; sourceTree = ""; }; + 270E9AA80EE61113003F17CA /* TCPListener.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TCPListener.h; sourceTree = ""; }; + 270E9AA90EE61113003F17CA /* TCPListener.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TCPListener.m; sourceTree = ""; }; + 270E9AAA0EE61113003F17CA /* TCPStream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TCPStream.h; sourceTree = ""; }; + 270E9AAB0EE61113003F17CA /* TCPStream.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TCPStream.m; sourceTree = ""; }; + 270E9AAC0EE61113003F17CA /* TCPWriter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TCPWriter.h; sourceTree = ""; }; + 270E9AAD0EE61113003F17CA /* TCPWriter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TCPWriter.m; sourceTree = ""; }; + 270E9AAE0EE61113003F17CA /* TCP_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TCP_Internal.h; sourceTree = ""; }; + 270E9AB00EE61113003F17CA /* BLIP.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BLIP.h; sourceTree = ""; }; + 270E9AB10EE61113003F17CA /* BLIPConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BLIPConnection.h; sourceTree = ""; }; + 270E9AB20EE61113003F17CA /* BLIPConnection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BLIPConnection.m; sourceTree = ""; }; + 270E9AB30EE61113003F17CA /* BLIPDispatcher.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BLIPDispatcher.h; sourceTree = ""; }; + 270E9AB40EE61113003F17CA /* BLIPDispatcher.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BLIPDispatcher.m; sourceTree = ""; }; + 270E9AB50EE61113003F17CA /* BLIPMessage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BLIPMessage.h; sourceTree = ""; }; + 270E9AB60EE61113003F17CA /* BLIPMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BLIPMessage.m; sourceTree = ""; }; + 270E9AB70EE61113003F17CA /* BLIPRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BLIPRequest.h; sourceTree = ""; }; + 270E9AB80EE61113003F17CA /* BLIPRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BLIPRequest.m; sourceTree = ""; }; + 270E9AB90EE61113003F17CA /* BLIPProperties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BLIPProperties.h; sourceTree = ""; }; + 270E9ABA0EE61113003F17CA /* BLIPProperties.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BLIPProperties.m; sourceTree = ""; }; + 270E9ABB0EE61113003F17CA /* BLIPReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BLIPReader.h; sourceTree = ""; }; + 270E9ABC0EE61113003F17CA /* BLIPReader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BLIPReader.m; sourceTree = ""; }; + 270E9ABD0EE61113003F17CA /* BLIPWriter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BLIPWriter.h; sourceTree = ""; }; + 270E9ABE0EE61113003F17CA /* BLIPWriter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BLIPWriter.m; sourceTree = ""; }; + 270E9ABF0EE61113003F17CA /* BLIP_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BLIP_Internal.h; sourceTree = ""; }; + 270E9ACE0EE6111A003F17CA /* MYUtilitiesTest_main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MYUtilitiesTest_main.m; sourceTree = ""; }; + 270E9ACF0EE6111A003F17CA /* MYUtilities_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MYUtilities_Prefix.pch; sourceTree = ""; }; + 270E9AD00EE6111A003F17CA /* CollectionUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CollectionUtils.h; sourceTree = ""; }; + 270E9AD10EE6111A003F17CA /* CollectionUtils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CollectionUtils.m; sourceTree = ""; }; + 270E9AD20EE6111A003F17CA /* ExceptionUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ExceptionUtils.h; sourceTree = ""; }; + 270E9AD30EE6111A003F17CA /* ExceptionUtils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ExceptionUtils.m; sourceTree = ""; }; + 270E9AD40EE6111A003F17CA /* Logging.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Logging.h; sourceTree = ""; }; + 270E9AD50EE6111A003F17CA /* Logging.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Logging.m; sourceTree = ""; }; + 270E9AD60EE6111A003F17CA /* Target.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Target.h; sourceTree = ""; }; + 270E9AD70EE6111A003F17CA /* Target.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Target.m; sourceTree = ""; }; + 270E9AD80EE6111A003F17CA /* Test.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Test.h; sourceTree = ""; }; + 270E9AD90EE6111A003F17CA /* Test.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Test.m; sourceTree = ""; }; + 270E9ADB0EE6111A003F17CA /* GTMDefines.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GTMDefines.h; sourceTree = ""; }; + 270E9ADC0EE6111A003F17CA /* GTMNSData+zlib.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "GTMNSData+zlib.h"; sourceTree = ""; }; + 270E9ADD0EE6111A003F17CA /* GTMNSData+zlib.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "GTMNSData+zlib.m"; sourceTree = ""; }; + 270E9AE80EE61167003F17CA /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; }; + 270E9B4E0EE63F8F003F17CA /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; }; + 270E9B940EE64B3C003F17CA /* HelloWorld.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = HelloWorld.xib; sourceTree = ""; }; + 270E9B960EE64B45003F17CA /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = ""; }; + 270E9B970EE64B45003F17CA /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = ""; }; + 270E9B9D0EE64B4E003F17CA /* HelloWorldAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HelloWorldAppDelegate.h; sourceTree = ""; }; + 270E9B9E0EE64B4E003F17CA /* HelloWorldAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HelloWorldAppDelegate.m; sourceTree = ""; }; + 270E9B9F0EE64B4E003F17CA /* MyViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MyViewController.h; sourceTree = ""; }; + 270E9BA00EE64B4E003F17CA /* MyViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MyViewController.m; sourceTree = ""; }; + 280E754C0DD40C5E005A515E /* MainWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MainWindow.xib; sourceTree = ""; }; + 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = iPhone/main.m; sourceTree = ""; }; + 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 1D60588F0D05DD3D006BFB54 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */, + 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */, + 270E9AE90EE61167003F17CA /* libz.dylib in Frameworks */, + 270E9B4F0EE63F8F003F17CA /* CFNetwork.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 19C28FACFE9D520D11CA2CBB /* Products */ = { + isa = PBXGroup; + children = ( + 1D6058910D05DD3D006BFB54 /* BLIPEcho.app */, + ); + name = Products; + sourceTree = ""; + }; + 270E9A9B0EE61091003F17CA /* iPhone */ = { + isa = PBXGroup; + children = ( + 270E9B9C0EE64B4E003F17CA /* Classes */, + 29B97317FDCFA39411CA2CEA /* Resources */, + ); + path = iPhone; + sourceTree = ""; + tabWidth = 4; + }; + 270E9AA00EE61113003F17CA /* MYNetwork */ = { + isa = PBXGroup; + children = ( + 270E9AA10EE61113003F17CA /* IPAddress.h */, + 270E9AA20EE61113003F17CA /* IPAddress.m */, + 270E9AA30EE61113003F17CA /* TCP */, + 270E9AAF0EE61113003F17CA /* BLIP */, + ); + name = MYNetwork; + sourceTree = ""; + }; + 270E9AA30EE61113003F17CA /* TCP */ = { + isa = PBXGroup; + children = ( + 270E9AA40EE61113003F17CA /* TCPConnection.h */, + 270E9AA50EE61113003F17CA /* TCPConnection.m */, + 270E9AA60EE61113003F17CA /* TCPEndpoint.h */, + 270E9AA70EE61113003F17CA /* TCPEndpoint.m */, + 270E9AA80EE61113003F17CA /* TCPListener.h */, + 270E9AA90EE61113003F17CA /* TCPListener.m */, + 270E9AAA0EE61113003F17CA /* TCPStream.h */, + 270E9AAB0EE61113003F17CA /* TCPStream.m */, + 270E9AAC0EE61113003F17CA /* TCPWriter.h */, + 270E9AAD0EE61113003F17CA /* TCPWriter.m */, + 270E9AAE0EE61113003F17CA /* TCP_Internal.h */, + ); + path = TCP; + sourceTree = ""; + }; + 270E9AAF0EE61113003F17CA /* BLIP */ = { + isa = PBXGroup; + children = ( + 270E9AB00EE61113003F17CA /* BLIP.h */, + 270E9AB10EE61113003F17CA /* BLIPConnection.h */, + 270E9AB20EE61113003F17CA /* BLIPConnection.m */, + 270E9AB30EE61113003F17CA /* BLIPDispatcher.h */, + 270E9AB40EE61113003F17CA /* BLIPDispatcher.m */, + 270E9AB50EE61113003F17CA /* BLIPMessage.h */, + 270E9AB60EE61113003F17CA /* BLIPMessage.m */, + 270E9AB70EE61113003F17CA /* BLIPRequest.h */, + 270E9AB80EE61113003F17CA /* BLIPRequest.m */, + 270E9AB90EE61113003F17CA /* BLIPProperties.h */, + 270E9ABA0EE61113003F17CA /* BLIPProperties.m */, + 270E9ABB0EE61113003F17CA /* BLIPReader.h */, + 270E9ABC0EE61113003F17CA /* BLIPReader.m */, + 270E9ABD0EE61113003F17CA /* BLIPWriter.h */, + 270E9ABE0EE61113003F17CA /* BLIPWriter.m */, + 270E9ABF0EE61113003F17CA /* BLIP_Internal.h */, + ); + path = BLIP; + sourceTree = ""; + }; + 270E9ACD0EE6111A003F17CA /* MYUtilities */ = { + isa = PBXGroup; + children = ( + 270E9ACE0EE6111A003F17CA /* MYUtilitiesTest_main.m */, + 270E9ACF0EE6111A003F17CA /* MYUtilities_Prefix.pch */, + 270E9AD00EE6111A003F17CA /* CollectionUtils.h */, + 270E9AD10EE6111A003F17CA /* CollectionUtils.m */, + 270E9AD20EE6111A003F17CA /* ExceptionUtils.h */, + 270E9AD30EE6111A003F17CA /* ExceptionUtils.m */, + 270E9AD40EE6111A003F17CA /* Logging.h */, + 270E9AD50EE6111A003F17CA /* Logging.m */, + 270E9AD60EE6111A003F17CA /* Target.h */, + 270E9AD70EE6111A003F17CA /* Target.m */, + 270E9AD80EE6111A003F17CA /* Test.h */, + 270E9AD90EE6111A003F17CA /* Test.m */, + 270E9ADA0EE6111A003F17CA /* GoogleToolboxSubset */, + ); + name = MYUtilities; + path = ../MYUtilities; + sourceTree = SOURCE_ROOT; + }; + 270E9ADA0EE6111A003F17CA /* GoogleToolboxSubset */ = { + isa = PBXGroup; + children = ( + 270E9ADB0EE6111A003F17CA /* GTMDefines.h */, + 270E9ADC0EE6111A003F17CA /* GTMNSData+zlib.h */, + 270E9ADD0EE6111A003F17CA /* GTMNSData+zlib.m */, + ); + path = GoogleToolboxSubset; + sourceTree = ""; + }; + 270E9B9C0EE64B4E003F17CA /* Classes */ = { + isa = PBXGroup; + children = ( + 270E9B9D0EE64B4E003F17CA /* HelloWorldAppDelegate.h */, + 270E9B9E0EE64B4E003F17CA /* HelloWorldAppDelegate.m */, + 270E9B9F0EE64B4E003F17CA /* MyViewController.h */, + 270E9BA00EE64B4E003F17CA /* MyViewController.m */, + ); + path = Classes; + sourceTree = ""; + }; + 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = { + isa = PBXGroup; + children = ( + 270E9AA00EE61113003F17CA /* MYNetwork */, + 270E9ACD0EE6111A003F17CA /* MYUtilities */, + 270E9A9B0EE61091003F17CA /* iPhone */, + 29B97315FDCFA39411CA2CEA /* Other Sources */, + 29B97323FDCFA39411CA2CEA /* Frameworks */, + 19C28FACFE9D520D11CA2CBB /* Products */, + ); + name = CustomTemplate; + sourceTree = ""; + }; + 29B97315FDCFA39411CA2CEA /* Other Sources */ = { + isa = PBXGroup; + children = ( + 29B97316FDCFA39411CA2CEA /* main.m */, + ); + name = "Other Sources"; + sourceTree = ""; + }; + 29B97317FDCFA39411CA2CEA /* Resources */ = { + isa = PBXGroup; + children = ( + 270E9B940EE64B3C003F17CA /* HelloWorld.xib */, + 280E754C0DD40C5E005A515E /* MainWindow.xib */, + 8D1107310486CEB800E47090 /* Info.plist */, + 270E9B960EE64B45003F17CA /* Default.png */, + 270E9B970EE64B45003F17CA /* Icon.png */, + ); + name = Resources; + sourceTree = ""; + }; + 29B97323FDCFA39411CA2CEA /* Frameworks */ = { + isa = PBXGroup; + children = ( + 1D30AB110D05D00D00671497 /* Foundation.framework */, + 270E9B4E0EE63F8F003F17CA /* CFNetwork.framework */, + 270E9AE80EE61167003F17CA /* libz.dylib */, + 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 1D6058900D05DD3D006BFB54 /* MYNetwork-iPhone */ = { + isa = PBXNativeTarget; + buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "MYNetwork-iPhone" */; + buildPhases = ( + 1D60588D0D05DD3D006BFB54 /* Resources */, + 1D60588E0D05DD3D006BFB54 /* Sources */, + 1D60588F0D05DD3D006BFB54 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "MYNetwork-iPhone"; + productName = "MYNetwork-iPhone"; + productReference = 1D6058910D05DD3D006BFB54 /* BLIPEcho.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 29B97313FDCFA39411CA2CEA /* Project object */ = { + isa = PBXProject; + buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "MYNetwork-iPhone" */; + compatibilityVersion = "Xcode 3.1"; + hasScannedForEncodings = 1; + knownRegions = ( + English, + Japanese, + French, + German, + en, + ); + mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 1D6058900D05DD3D006BFB54 /* MYNetwork-iPhone */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 1D60588D0D05DD3D006BFB54 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 280E754F0DD40C5E005A515E /* MainWindow.xib in Resources */, + 270E9B950EE64B3C003F17CA /* HelloWorld.xib in Resources */, + 270E9B990EE64B45003F17CA /* Default.png in Resources */, + 270E9B9A0EE64B45003F17CA /* Icon.png in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 1D60588E0D05DD3D006BFB54 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 1D60589B0D05DD56006BFB54 /* main.m in Sources */, + 270E9AC00EE61113003F17CA /* IPAddress.m in Sources */, + 270E9AC10EE61113003F17CA /* TCPConnection.m in Sources */, + 270E9AC20EE61113003F17CA /* TCPEndpoint.m in Sources */, + 270E9AC30EE61113003F17CA /* TCPListener.m in Sources */, + 270E9AC40EE61113003F17CA /* TCPStream.m in Sources */, + 270E9AC50EE61113003F17CA /* TCPWriter.m in Sources */, + 270E9AC60EE61113003F17CA /* BLIPConnection.m in Sources */, + 270E9AC70EE61113003F17CA /* BLIPDispatcher.m in Sources */, + 270E9AC80EE61113003F17CA /* BLIPMessage.m in Sources */, + 270E9AC90EE61113003F17CA /* BLIPRequest.m in Sources */, + 270E9ACA0EE61113003F17CA /* BLIPProperties.m in Sources */, + 270E9ACB0EE61113003F17CA /* BLIPReader.m in Sources */, + 270E9ACC0EE61113003F17CA /* BLIPWriter.m in Sources */, + 270E9ADF0EE6111A003F17CA /* CollectionUtils.m in Sources */, + 270E9AE00EE6111A003F17CA /* ExceptionUtils.m in Sources */, + 270E9AE10EE6111A003F17CA /* Logging.m in Sources */, + 270E9AE20EE6111A003F17CA /* Target.m in Sources */, + 270E9AE30EE6111A003F17CA /* Test.m in Sources */, + 270E9AE40EE6111A003F17CA /* GTMNSData+zlib.m in Sources */, + 270E9BA10EE64B4E003F17CA /* HelloWorldAppDelegate.m in Sources */, + 270E9BA20EE64B4E003F17CA /* MyViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 1D6058940D05DD3E006BFB54 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Jens Alfke"; + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = iPhone/MYNetwork_iPhone_Prefix.pch; + INFOPLIST_FILE = iPhone/Info.plist; + PRODUCT_NAME = BLIPEcho; + PROVISIONING_PROFILE = "166C8314-D005-438F-841B-B20D42F71712"; + }; + name = Debug; + }; + 1D6058950D05DD3E006BFB54 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Jens Alfke"; + COPY_PHASE_STRIP = YES; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = iPhone/MYNetwork_iPhone_Prefix.pch; + INFOPLIST_FILE = iPhone/Info.plist; + PRODUCT_NAME = BLIPEcho; + PROVISIONING_PROFILE = "166C8314-D005-438F-841B-B20D42F71712"; + }; + name = Release; + }; + C01FCF4F08A954540054247B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + GCC_C_LANGUAGE_STANDARD = c99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + ONLY_ACTIVE_ARCH = YES; + PREBINDING = NO; + SDKROOT = iphonesimulator2.0; + }; + name = Debug; + }; + C01FCF5008A954540054247B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + GCC_C_LANGUAGE_STANDARD = c99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + PREBINDING = NO; + SDKROOT = iphonesimulator2.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "MYNetwork-iPhone" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1D6058940D05DD3E006BFB54 /* Debug */, + 1D6058950D05DD3E006BFB54 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + C01FCF4E08A954540054247B /* Build configuration list for PBXProject "MYNetwork-iPhone" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C01FCF4F08A954540054247B /* Debug */, + C01FCF5008A954540054247B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 29B97313FDCFA39411CA2CEA /* Project object */; +} diff -r ab88e3ee5726 -r a4875607a3a0 TCP/TCPConnection.m --- a/TCP/TCPConnection.m Tue Jul 15 09:37:15 2008 -0700 +++ b/TCP/TCPConnection.m Tue Dec 02 22:42:56 2008 -0800 @@ -14,7 +14,7 @@ #import "ExceptionUtils.h" -#if (TARGET_OS_IPHONE && !(TARGET_OS_MAC || TARGET_OS_EMBEDDED)) +#if TARGET_OS_IPHONE && TARGET_OS_EMBEDDED // SecureTransport.h is missing on iPhone, with its SSL constants: enum{ errSSLClosedAbort = -9806, /* connection closed via error */ diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/Classes/HelloWorldAppDelegate.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iPhone/Classes/HelloWorldAppDelegate.h Tue Dec 02 22:42:56 2008 -0800 @@ -0,0 +1,65 @@ +/* + +File: HelloWorldAppDelegate.h +Abstract: Responsible for creating the view controller and adding its view to +the window. + + See the ReadMe file for pointers to additional resources about iPhone +development. + +Version: 1.7 + +Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. +("Apple") in consideration of your agreement to the following terms, and your +use, installation, modification or redistribution of this Apple software +constitutes acceptance of these terms. If you do not agree with these terms, +please do not use, install, modify or redistribute this Apple software. + +In consideration of your agreement to abide by the following terms, and subject +to these terms, Apple grants you a personal, non-exclusive license, under +Apple's copyrights in this original Apple software (the "Apple Software"), to +use, reproduce, modify and redistribute the Apple Software, with or without +modifications, in source and/or binary forms; provided that if you redistribute +the Apple Software in its entirety and without modifications, you must retain +this notice and the following text and disclaimers in all such redistributions +of the Apple Software. +Neither the name, trademarks, service marks or logos of Apple Inc. may be used +to endorse or promote products derived from the Apple Software without specific +prior written permission from Apple. Except as expressly stated in this notice, +no other rights or licenses, express or implied, are granted by Apple herein, +including but not limited to any patent rights that may be infringed by your +derivative works or by other works in which the Apple Software may be +incorporated. + +The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO +WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED +WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN +COMBINATION WITH YOUR PRODUCTS. + +IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR +DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF +CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF +APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Copyright (C) 2008 Apple Inc. All Rights Reserved. + +*/ + +#import + +@class MyViewController; + +@interface HelloWorldAppDelegate : NSObject { + + IBOutlet UIWindow *window; + MyViewController *myViewController; +} + +@property (nonatomic, retain) UIWindow *window; +@property (nonatomic, retain) MyViewController *myViewController; + +@end diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/Classes/HelloWorldAppDelegate.m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iPhone/Classes/HelloWorldAppDelegate.m Tue Dec 02 22:42:56 2008 -0800 @@ -0,0 +1,84 @@ +/* + +File: HelloWorldAppDelegate.m +Abstract: Responsible for creating the view controller and adding its view to +the window. + + See the ReadMe file for pointers to additional resources about iPhone +development. + +Version: 1.7 + +Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. +("Apple") in consideration of your agreement to the following terms, and your +use, installation, modification or redistribution of this Apple software +constitutes acceptance of these terms. If you do not agree with these terms, +please do not use, install, modify or redistribute this Apple software. + +In consideration of your agreement to abide by the following terms, and subject +to these terms, Apple grants you a personal, non-exclusive license, under +Apple's copyrights in this original Apple software (the "Apple Software"), to +use, reproduce, modify and redistribute the Apple Software, with or without +modifications, in source and/or binary forms; provided that if you redistribute +the Apple Software in its entirety and without modifications, you must retain +this notice and the following text and disclaimers in all such redistributions +of the Apple Software. +Neither the name, trademarks, service marks or logos of Apple Inc. may be used +to endorse or promote products derived from the Apple Software without specific +prior written permission from Apple. Except as expressly stated in this notice, +no other rights or licenses, express or implied, are granted by Apple herein, +including but not limited to any patent rights that may be infringed by your +derivative works or by other works in which the Apple Software may be +incorporated. + +The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO +WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED +WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN +COMBINATION WITH YOUR PRODUCTS. + +IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR +DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF +CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF +APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Copyright (C) 2008 Apple Inc. All Rights Reserved. + +*/ + +#import "HelloWorldAppDelegate.h" +#import "MyViewController.h" + + +@implementation HelloWorldAppDelegate + +@synthesize window; +@synthesize myViewController; + + +- (void)applicationDidFinishLaunching:(UIApplication *)application { + + // Set up the view controller + MyViewController *aViewController = [[MyViewController alloc] initWithNibName:@"HelloWorld" bundle:[NSBundle mainBundle]]; + self.myViewController = aViewController; + [aViewController release]; + + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackOpaque]; + + // Add the view controller's view as a subview of the window + UIView *controllersView = [myViewController view]; + [window addSubview:controllersView]; + [window makeKeyAndVisible]; +} + + +- (void)dealloc { + [myViewController release]; + [window release]; + [super dealloc]; +} + +@end diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/Classes/MyViewController.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iPhone/Classes/MyViewController.h Tue Dec 02 22:42:56 2008 -0800 @@ -0,0 +1,68 @@ +/* + +File: MyViewController.h +Abstract: A view controller responsible for managing the Hello World view. + +Version: 1.7 + +Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. +("Apple") in consideration of your agreement to the following terms, and your +use, installation, modification or redistribution of this Apple software +constitutes acceptance of these terms. If you do not agree with these terms, +please do not use, install, modify or redistribute this Apple software. + +In consideration of your agreement to abide by the following terms, and subject +to these terms, Apple grants you a personal, non-exclusive license, under +Apple's copyrights in this original Apple software (the "Apple Software"), to +use, reproduce, modify and redistribute the Apple Software, with or without +modifications, in source and/or binary forms; provided that if you redistribute +the Apple Software in its entirety and without modifications, you must retain +this notice and the following text and disclaimers in all such redistributions +of the Apple Software. +Neither the name, trademarks, service marks or logos of Apple Inc. may be used +to endorse or promote products derived from the Apple Software without specific +prior written permission from Apple. Except as expressly stated in this notice, +no other rights or licenses, express or implied, are granted by Apple herein, +including but not limited to any patent rights that may be infringed by your +derivative works or by other works in which the Apple Software may be +incorporated. + +The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO +WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED +WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN +COMBINATION WITH YOUR PRODUCTS. + +IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR +DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF +CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF +APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Copyright (C) 2008 Apple Inc. All Rights Reserved. + +*/ + +#import +#import "BLIPConnection.h" + +@interface MyViewController : UIViewController { + + IBOutlet UITextField *textField; + IBOutlet UILabel *label; + NSString *string; + BLIPListener *_listener; +} + +@property (nonatomic, retain) UITextField *textField; +@property (nonatomic, retain) UILabel *label; +@property (nonatomic, copy) NSString *string; + +- (void)updateString; + +@end + diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/Classes/MyViewController.m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iPhone/Classes/MyViewController.m Tue Dec 02 22:42:56 2008 -0800 @@ -0,0 +1,153 @@ +/* + +File: MyViewController.m +Abstract: A view controller responsible for managing the Hello World view. + +Version: 1.7 + +Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. +("Apple") in consideration of your agreement to the following terms, and your +use, installation, modification or redistribution of this Apple software +constitutes acceptance of these terms. If you do not agree with these terms, +please do not use, install, modify or redistribute this Apple software. + +In consideration of your agreement to abide by the following terms, and subject +to these terms, Apple grants you a personal, non-exclusive license, under +Apple's copyrights in this original Apple software (the "Apple Software"), to +use, reproduce, modify and redistribute the Apple Software, with or without +modifications, in source and/or binary forms; provided that if you redistribute +the Apple Software in its entirety and without modifications, you must retain +this notice and the following text and disclaimers in all such redistributions +of the Apple Software. +Neither the name, trademarks, service marks or logos of Apple Inc. may be used +to endorse or promote products derived from the Apple Software without specific +prior written permission from Apple. Except as expressly stated in this notice, +no other rights or licenses, express or implied, are granted by Apple herein, +including but not limited to any patent rights that may be infringed by your +derivative works or by other works in which the Apple Software may be +incorporated. + +The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO +WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED +WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN +COMBINATION WITH YOUR PRODUCTS. + +IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR +DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF +CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF +APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Copyright (C) 2008 Apple Inc. All Rights Reserved. + +*/ + +#import "MyViewController.h" +#import "BLIP.h" + + +@implementation MyViewController + +@synthesize textField; +@synthesize label; +@synthesize string; + +- (void)viewDidLoad { + // When the user starts typing, show the clear button in the text field. + textField.clearButtonMode = UITextFieldViewModeWhileEditing; + + label.text = @"Opening listener socket..."; + + _listener = [[BLIPListener alloc] initWithPort: 12345]; + _listener.delegate = self; + _listener.pickAvailablePort = YES; + _listener.bonjourServiceType = @"_blipecho._tcp"; + [_listener open]; +} + + +- (void)updateString { + + // Store the text of the text field in the 'string' instance variable. + self.string = textField.text; + // Set the text of the label to the value of the 'string' instance variable. + label.text = self.string; +} + + +- (BOOL)textFieldShouldReturn:(UITextField *)theTextField { + // When the user presses return, take focus away from the text field so that the keyboard is dismissed. + if (theTextField == textField) { + [textField resignFirstResponder]; + // Invoke the method that changes the greeting. + [self updateString]; + } + return YES; +} + + +- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event +{ + // Dismiss the keyboard when the view outside the text field is touched. + [textField resignFirstResponder]; + // Revert the text field to the previous value. + [super touchesBegan:touches withEvent:event]; +} + + +- (void)dealloc { + [textField release]; + [label release]; + + [_listener close]; + [_listener release]; + + [super dealloc]; +} + + +#pragma mark BLIP Listener Delegate: + + +- (void) listenerDidOpen: (TCPListener*)listener +{ + label.text = [NSString stringWithFormat: @"Listening on port %i",listener.port]; +} + +- (void) listener: (TCPListener*)listener failedToOpen: (NSError*)error +{ + label.text = [NSString stringWithFormat: @"Failed to open listener on port %i: %@", + listener.port,error]; +} + +- (void) listener: (TCPListener*)listener didAcceptConnection: (TCPConnection*)connection +{ + label.text = [NSString stringWithFormat: @"Accepted connection from %@", + connection.address]; + connection.delegate = self; +} + +- (void) connection: (TCPConnection*)connection failedToOpen: (NSError*)error +{ + label.text = [NSString stringWithFormat: @"Failed to open connection from %@: %@", + connection.address,error]; +} + +- (void) connection: (BLIPConnection*)connection receivedRequest: (BLIPRequest*)request +{ + NSString *message = [[NSString alloc] initWithData: request.body encoding: NSUTF8StringEncoding]; + label.text = [NSString stringWithFormat: @"Echoed:\nā€œ%@ā€",message]; + [request respondWithData: request.body contentType: request.contentType]; +} + +- (void) connectionDidClose: (TCPConnection*)connection; +{ + label.text = [NSString stringWithFormat: @"Connection closed from %@", + connection.address]; +} + + +@end diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/Default.png Binary file iPhone/Default.png has changed diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/HelloWorld.xib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iPhone/HelloWorld.xib Tue Dec 02 22:42:56 2008 -0800 @@ -0,0 +1,262 @@ + + + + 512 + 9F33 + 670 + 949.34 + 352.00 + + YES + + + + YES + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + YES + + IBFilesOwner + + + IBFirstResponder + + + + 288 + + YES + + + 292 + {320, 480} + + NO + NO + 4 + NO + + NSImage + Default.png + + + + + 268 + {{20, 48}, {280, 115}} + + + 3 + MC43NSAwLjIyAA + + 2 + + + NO + YES + NO + + + Helvetica + 2.400000e+01 + 16 + + + 3 + MC43NDU5Njc2OSAwLjk5MDAwMDAxAA + + + 1 + 2.000000e+01 + 4 + 1 + + + + 292 + {{39, 288}, {241, 57}} + + NO + YES + NO + BLIP Echo + + Helvetica-Bold + 4.800000e+01 + 16 + + + 1 + MCAwIDAAA + + + 1 + 1.000000e+01 + 1 + + + {320, 480} + + + 3 + MC41AA + + + NO + + + + + YES + + + view + + + + 35 + + + + label + + + + 52 + + + + + YES + + 0 + + YES + + + + + + -1 + + + RmlsZSdzIE93bmVyA + + + 24 + + + YES + + + + + + + + -2 + + + + + 40 + + + + + 55 + + + + + 61 + + + + + + + YES + + YES + -1.CustomClassName + -2.CustomClassName + 24.IBEditorWindowLastContentRect + 24.IBPluginDependency + 40.IBPluginDependency + 55.IBPluginDependency + 61.IBPluginDependency + + + YES + MyViewController + UIResponder + {{474, 260}, {320, 480}} + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + YES + + YES + + + YES + + + + + YES + + YES + + + YES + + + + 61 + + + + YES + + MyViewController + UIViewController + + YES + + YES + label + textField + + + YES + UILabel + UITextField + + + + IBProjectSource + iPhone/Classes/MyViewController.h + + + + MyViewController + UIViewController + + IBUserSource + + + + + + 0 + ../MYNetwork-iPhone.xcodeproj + 3 + + diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/Icon.png Binary file iPhone/Icon.png has changed diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/Info.plist --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iPhone/Info.plist Tue Dec 02 22:42:56 2008 -0800 @@ -0,0 +1,30 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + BLIP Echo + LSRequiresIPhoneOS + + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIconFile + icon.png + CFBundleIdentifier + com.yourcompany.${PRODUCT_NAME:identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleSignature + ???? + CFBundleVersion + 1.7 + NSMainNibFile + MainWindow + + diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/MYNetwork_iPhone_Prefix.pch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iPhone/MYNetwork_iPhone_Prefix.pch Tue Dec 02 22:42:56 2008 -0800 @@ -0,0 +1,8 @@ +// +// Prefix header for all source files of the 'MYNetwork-iPhone' target in the 'MYNetwork-iPhone' project +// + +#ifdef __OBJC__ +#import +#import +#endif diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/MainWindow.xib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iPhone/MainWindow.xib Tue Dec 02 22:42:56 2008 -0800 @@ -0,0 +1,199 @@ + + + + 512 + 9F33 + 670 + 949.34 + 352.00 + + YES + + + + YES + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + YES + + IBFilesOwner + + + IBFirstResponder + + + + + 1292 + + YES + + + 1316 + {320, 480} + + NO + NO + 4 + NO + + NSImage + Default.png + + + + + {320, 480} + + + 1 + MSAxIDEAA + + NO + NO + + + + + YES + + + delegate + + + + 6 + + + + window + + + + 7 + + + + + YES + + 0 + + YES + + + + + + 2 + + + YES + + + + + + -1 + + + RmlsZSdzIE93bmVyA + + + 4 + + + HelloWorldAppDelegate + + + -2 + + + + + 8 + + + + + + + YES + + YES + -1.CustomClassName + -2.CustomClassName + 2.IBAttributePlaceholdersKey + 2.IBEditorWindowLastContentRect + 2.IBPluginDependency + 2.UIWindow.visibleAtLaunch + 4.CustomClassName + 4.IBPluginDependency + 8.IBPluginDependency + + + YES + UIApplication + UIResponder + + YES + + YES + + + YES + + + {{474, 333}, {320, 480}} + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + HelloWorldAppDelegate + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + YES + + YES + + + YES + + + + + YES + + YES + + + YES + + + + 8 + + + + YES + + HelloWorldAppDelegate + NSObject + + window + UIWindow + + + IBProjectSource + iPhone/Classes/HelloWorldAppDelegate.h + + + + + 0 + ../MYNetwork-iPhone.xcodeproj + 3 + + diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/main.m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iPhone/main.m Tue Dec 02 22:42:56 2008 -0800 @@ -0,0 +1,56 @@ +/* + +File: main.m +Abstract: Standard main file. + +Version: 1.7 + +Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. +("Apple") in consideration of your agreement to the following terms, and your +use, installation, modification or redistribution of this Apple software +constitutes acceptance of these terms. If you do not agree with these terms, +please do not use, install, modify or redistribute this Apple software. + +In consideration of your agreement to abide by the following terms, and subject +to these terms, Apple grants you a personal, non-exclusive license, under +Apple's copyrights in this original Apple software (the "Apple Software"), to +use, reproduce, modify and redistribute the Apple Software, with or without +modifications, in source and/or binary forms; provided that if you redistribute +the Apple Software in its entirety and without modifications, you must retain +this notice and the following text and disclaimers in all such redistributions +of the Apple Software. +Neither the name, trademarks, service marks or logos of Apple Inc. may be used +to endorse or promote products derived from the Apple Software without specific +prior written permission from Apple. Except as expressly stated in this notice, +no other rights or licenses, express or implied, are granted by Apple herein, +including but not limited to any patent rights that may be infringed by your +derivative works or by other works in which the Apple Software may be +incorporated. + +The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO +WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED +WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN +COMBINATION WITH YOUR PRODUCTS. + +IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR +DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF +CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF +APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Copyright (C) 2008 Apple Inc. All Rights Reserved. + +*/ + +#import + +int main(int argc, char *argv[]) +{ + NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; + int retVal = UIApplicationMain(argc, argv, nil, nil); + [pool release]; + return retVal; +}