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

Re: Using CFSocket to connect


  • Subject: Re: Using CFSocket to connect
  • From: Mike Laster <email@hidden>
  • Date: Wed, 03 Jul 2002 00:46:13 -0400

I'm making progress. I can accept connections, and successfully read data
on those connections. Now I'm getting around to implementing connect and am
running into problems.

I successfully create a socket with CFSocketCreateWithSocketSignature, but
When I call:

CFSocketConnectToAddress(socketRef,socketSignature.address, 60);

I get a -1 error code. I'm not sure why it's failing.

The signature I'm using is:

D: (07-03 00:35:40.461) protocolFamily = 2
D: (07-03 00:35:40.461) socketType = 1
D: (07-03 00:35:40.463) protocol = 6
D: (07-03 00:35:40.464) address:
D: (07-03 00:35:40.466) family: 2
D: (07-03 00:35:40.466) port: 1200
D: (07-03 00:35:40.469) addr: 127.0.0.1

I currently have a server listening on port 1200, but it never sees a
connection attempt.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Using CFSocket to connect
      • From: Douglas Davidson <email@hidden>
References: 
 >Re: Using CFSocket to connect (From: Becky Willrich <email@hidden>)

  • Prev by Date: Re: Using CFSocket to connect
  • Next by Date: Re: Help
  • Previous by thread: Re: Using CFSocket to connect
  • Next by thread: Re: Using CFSocket to connect
  • Index(es):
    • Date
    • Thread