Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

Feature

Networking 401

Issue: 4.3 (January/February 2006)
Author: Aaron Ballman mailto:aaron-at-realsoftware.com
Article Description: No description available.
Article Length (in bytes): 17,974
Starting Page Number: 25
RBD Number: 4311
Resource File(s): None
Related Web Link(s):

mailto:aaron-at-realsoftware.com

Known Limitations: None

Excerpt of article text...

In previous articles, we discussed a lot of the background with the TCP and UDP protocols. Additionally, we discussed the APIs that you can use when dealing with these two protocols. In this article, we're going to delve into a lot more networking theory. Everything from why things behave the way they do, to speeding up your networking code, and beyond!

Port security

You may have noticed by now that on some OSes, you cannot listen on a port less than 1024. This is a security feature that is present on some systems so that only the super-user can listen on well-known ports. The thought process behind this is so that you can't have a malicious application listening on port 80 then doing something nasty (either to the remote machine or the local machine). So which systems is this an issue on? OS X and Linux are security oriented; on those systems you need to have special permissions (called root permissions) to be able to bind to ports below 1024. Currently shipping versions of Windows (as well as Mac Classic) are not as security-minded and so they will let you listen on well-known ports without issue. This may not always be the case for future versions of Windows, so you shouldn't be relying on that behavior. Basically, always assume that you have to do something special in order to listen on well-known ports.

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com