Skip to content

Commit

Permalink
Merge pull request robbiehanson#59 from vronin/master
Browse files Browse the repository at this point in the history
Minor change to SecureHTTPServer sample
  • Loading branch information
vronin committed Feb 14, 2013
2 parents 6bc7da3 + 05cef1b commit eddf408
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Samples/SecureHTTPServer/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
// Normally there's no need to run our server on any specific port.
// Technologies like Bonjour allow clients to dynamically discover the server's port at runtime.
// However, for easy testing you may want force a certain port so you can just hit the refresh button.
[httpServer setPort:12345];
// [httpServer setPort:12345];

// We're going to extend the base HTTPConnection class with our MyHTTPConnection class.
// This allows us to customize the server for things such as SSL and password-protection.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
// Normally there's no need to run our server on any specific port.
// Technologies like Bonjour allow clients to dynamically discover the server's port at runtime.
// However, for easy testing you may want force a certain port so you can just hit the refresh button.
[httpServer setPort:12345];
// [httpServer setPort:12345];

// Serve files from our embedded Web folder
NSString *webPath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Web"];
Expand Down
2 changes: 2 additions & 0 deletions Samples/SimpleWebSocketServer/README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ Now open a browser that supports WebSockets (e.g. Google Chrome or Safari)
and type in the URL:
http://localhost:59123

(Replace 59123 with whatever port the server is actually running on.)

Enjoy.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
// Normally there's no need to run our server on any specific port.
// Technologies like Bonjour allow clients to dynamically discover the server's port at runtime.
// However, for easy testing you may want force a certain port so you can just hit the refresh button.
[httpServer setPort:12345];
// [httpServer setPort:12345];

// Serve files from our embedded Web folder
NSString *webPath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Web"];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
// Normally there's no need to run our server on any specific port.
// Technologies like Bonjour allow clients to dynamically discover the server's port at runtime.
// However, for easy testing you may want force a certain port so you can just hit the refresh button.
[httpServer setPort:12345];
// [httpServer setPort:12345];

// Serve files from our embedded Web folder
NSString *webPath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Web"];
Expand Down
2 changes: 1 addition & 1 deletion Samples/iPhoneHTTPServer/README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If you're running it via the simulator, then you can use:
http://localhost:59123

If you're running it on your device, then you'll need to use:
http://<local IP of device>:59123
http://&lt;local IP of device&gt;:59123

(Replace 59123 with whatever port the server is actually running on.)

Expand Down

0 comments on commit eddf408

Please sign in to comment.