• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Weird error using gethostbyname
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weird error using gethostbyname


  • Subject: Weird error using gethostbyname
  • From: "Fredrik H. Larsen" <email@hidden>
  • Date: Sun, 09 Jul 2006 00:15:50 +0200

Hi,

I've been making a cocoa application connects to a host on a specific port. Both arguments, including others, are passed to the program through NSTextField's.

What I find weird is that when I feed gethostbyname() with a host that doesn't exist (the domain does, however) I get:

gethostbyname: Invalid argument

Why don't I get "Unknown host" or so?

Thanks in advance!

------------------------
Fredrik H. Larsen




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Weird error using gethostbyname
      • From: Tom Marchand <email@hidden>
  • Prev by Date: Re: Hanging Sockets
  • Next by Date: Re: Weird error using gethostbyname
  • Previous by thread: Re: Hanging Sockets
  • Next by thread: Re: Weird error using gethostbyname
  • Index(es):
    • Date
    • Thread