• 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
Re: Macnetworkprog Digest, Vol 1, Issue 74
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Macnetworkprog Digest, Vol 1, Issue 74


  • Subject: Re: Macnetworkprog Digest, Vol 1, Issue 74
  • From: Frederick Cheung <email@hidden>
  • Date: Thu, 16 Dec 2004 20:29:24 +0000


Date: Thu, 16 Dec 2004 08:17:30 -0700
From: Ryan M Joseph <email@hidden>
Subject: how to use: struct sockaddr
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"

I have a simple question that has me very confused. I'm trying to use
CFSocket to set up a client/server over the internet but I can not
understand how the sockaddr struct can be used to describe and IP
address. Is is not intended to do this? do I need to use some other
form of address then an IP? Or is there a function I can not find which
maybe builds the struct for you based off an IP string? Thanks for your
help.
sockaddr is a generic thingy, that allows a single set of function to calls to work with different types of address (ipv4, ipv6, other stuff).
Various protocols give different meaning to the bytes that follow the sin_length and sin_family fields, for ipv4 stuff this is defined by the sockaddr_in structure.


Fred

_______________________________________________
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: Macnetworkprog Digest, Vol 1, Issue 74
      • From: Ryan M Joseph <email@hidden>
  • Prev by Date: CFNetwork support for SSL
  • Next by Date: Re: Macnetworkprog Digest, Vol 1, Issue 74
  • Previous by thread: Re: CFNetwork support for SSL
  • Next by thread: Re: Macnetworkprog Digest, Vol 1, Issue 74
  • Index(es):
    • Date
    • Thread