Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
strange, isEqualToString should solve problems about encoding, are you sure that there isn't strange characters? maybe a space, or something other in str, maybe terminator character \0?
2011-01-13 23:05:46.633 Socket[58689:207] output = ack and length = 4
Thanks for your help
does it mean there is a terminating character \0 any ideas how to compare against that.
:)
Did you post "and length = 4" on a separate line deliberately, or did the newline just appear? It looks like there is a newline character in your data. That makes sense if it came from a text file.
Replies
Are they exact in regards to case?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesomethe strange thing is that if i convert str to integer it works as highlighted below
here is all the code
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeIf you do NSLog(@"output = %@", str);
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeWe know the length of @"ack" should be 3.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeNot too sure
If it is, what should I try
@"ack/n" ??
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesomeand length = 4
Thanks for your help
does it mean there is a terminating character \0
any ideas how to compare against that.
:)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeI tried
but i get an error and the app quits after trying to connect to server
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesomeif you ever need help, yell at me :)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome