NSData Question
NSData Question
- Subject: NSData Question
- From: David Dauer <email@hidden>
- Date: Thu, 09 Oct 2003 15:29:14 +0200
Hello
I'm using an AGSocket (UDP) and want to send some data through it.
AGSocket *socket;
//...
socket = [[AGSocket udpSocket] retain];
//...
[socket write
Data:data toAddress:remoteAddr];
I know what I have to do in php, there the data to send is:
"\xFF\xFF\xFF\xFFmyCommand\n"
And i know that FF is 255 in decimal in the ascii table.
My problem is that i don't know how i can add this value to the NSData
*data.
Thanks for any help
David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.