summaryrefslogtreecommitdiff
path: root/pod/perlport.pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-08-16 14:37:33 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-08-16 14:37:33 +0000
commitdbc6a9ceb7483f64c7dce330a1c016ff98f808f5 (patch)
tree521a3bdaf4ebdccfa425fc17744c22130ad091cd /pod/perlport.pod
parentd667003d37eba3c681f34d7d9411e2e89acff2a4 (diff)
downloadperl-dbc6a9ceb7483f64c7dce330a1c016ff98f808f5.tar.gz
More networking negativity.
p4raw-id: //depot/perl@20731
Diffstat (limited to 'pod/perlport.pod')
-rw-r--r--pod/perlport.pod15
1 files changed, 12 insertions, 3 deletions
diff --git a/pod/perlport.pod b/pod/perlport.pod
index 74cf721317..c04528bb77 100644
--- a/pod/perlport.pod
+++ b/pod/perlport.pod
@@ -497,19 +497,28 @@ to the public Internet.
Don't assume that you can reach outside world through any other port
than 80, or some web proxy. ftp is blocked by many firewalls.
+Don't assume that you can send email by connecting to the local SMTP port.
+
Don't assume that you can reach yourself or any node by the name
-'localhost'. The same goes for '127.0.0.1'. You will have to try
-both.
+'localhost'. The same goes for '127.0.0.1'. You will have to try both.
Don't assume that the host has only one network card, or that it
can't bind to many virtual IP addresses.
Don't assume a particular network device name.
-Don't assume that any particular port (service) will respond.
+Don't assume a particular set of ioctl()s will work.
Don't assume that you can ping hosts and get replies.
+Don't assume that any particular port (service) will respond.
+
+Don't assume that Sys::Hostname() (or any other API or command)
+returns either a fully qualified hostname or a non-qualified hostname:
+it all depends on how the system had been configured. Also remember
+things like DHCP and NAT-- the hostname you get back might not be very
+useful.
+
All the above "don't":s may look daunting, and they are -- but the key
is to degrade gracefully if one cannot reach the particular network
service one wants. Croaking or hanging do not look very professional.