|
-
Jun 28th, 2002, 09:12 PM
#1
Thread Starter
Banned
-
Jun 29th, 2002, 08:47 AM
#2
You shouldn't use str* functions here. Those functions are for strings, and that's not what you're using here. You should keep the length of the array yourself (in an int), and copy using memcpy.
-
Jun 29th, 2002, 10:21 AM
#3
New Member
ye now i use memcpy to copy, but im usiing getline to get the data. so i dont know the length.
so how can i get the length? also the send() function for winsock wont take a unsigned char. and if i type cast wont it make all the chars with a value over 127 negative?
-
Jun 29th, 2002, 10:46 AM
#4
Monday Morning Lunatic
If it's binary, don't use getline. Use read instead.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|