Reading the man pages for connect, is says that: If the connection or binding succeeds, zero is returned. On error, -1 is returned, and errno is set appropriately. What is errno, and how do I read it. -- yours/mvh Peter Poulsen Naessundvej 208 9220 Aalborg East Denmark E-mail: peter_poulsen at stofanet.dk Phone: +45 98 15 47 05