• 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: CFSocket question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFSocket question


  • Subject: Re: CFSocket question
  • From: Doug Brown <email@hidden>
  • Date: Wed, 18 Jun 2003 12:55:09 -0700

Hi Lev,

Beej's Guide to Network Programming should really help you in this instance. The URL to that guide is:

http://www.ecst.csuchico.edu/~beej/guide/net/

More specifically, here's the area about struct sockaddr's:

http://www.ecst.csuchico.edu/~beej/guide/net/html/structs.html

If you want to be able to give it a hostname and use DNS, check this area out:

http://www.ecst.csuchico.edu/~beej/guide/net/html/syscalls.html#dns

I've used the sample code directly from this tutorial in various projects, and it works really well! Hope this helps,

Doug

On Wednesday, June 18, 2003, at 12:14 PM, Lev Knopov wrote:

I want to use CFSocket in my application
I have an ip address and port I want to connect. Documentation states that I must fill "a struct sockaddr appropriate for the protocol family of socket, indicating the remote address to which to connect".

--
Doug Brown - La Grande, OR
Idiot's Guide to Mac Cases - http://www.ircandy.com/maccases/
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >CFSocket question (From: Lev Knopov <email@hidden>)

  • Prev by Date: Re: SCNetworkCheckReachabilityByName && proxies
  • Next by Date: Safari and Helper Applications
  • Previous by thread: CFSocket question
  • Next by thread: Re: SCNetworkCheckReachabilityByName && proxies
  • Index(es):
    • Date
    • Thread