Re: WinSock to CFSocket problems
Re: WinSock to CFSocket problems
- Subject: Re: WinSock to CFSocket problems
- From: Ken Baer <email@hidden>
- Date: Tue, 5 Apr 2005 10:16:43 -0700
- Resent-date: Tue, 5 Apr 2005 10:17:35 -0700
- Resent-from: Ken Baer <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: email@hidden
On Apr 4, 2005, at 5:19 PM, Douglas Davidson wrote:
case kCFSocketDataCallBack:
event = FD_READ;
CFDataGetBytes( address, CFRangeMake(0,CFDataGetLength( address )), sockdata->m_ReceivedData );
sockdata->m_AmountBuffered = CFDataGetLength( address );
break;
You are reading the address of the sender as if it were the data being sent.
Douglas Davidson
D'oh!!
Yes, that was it. I changed that to the data variable that was passed in. It's working now.
Hopefully, next time I post here, I'll present something that's more of a challenge :-).
Thanks for the help!
-Ken Baer.
Hash, Inc.
email@hidden
_______________________________________________
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