This is my first thread on this board, so bear with me. I was scanning through some code, and noticed the send() function.
It looks like it only sends text. What if you wanted to send something else? That's all for now.
This is my first thread on this board, so bear with me. I was scanning through some code, and noticed the send() function.
It looks like it only sends text. What if you wanted to send something else? That's all for now.
Stan The Man. Beatles fan
When I was a child,
I spoke as a child,
I thought as a child,
I reasoned as a child.
When I became a man,
I put childish ways behind me"
(the holy bible, Paul, in his first letter to the Cor. 13:11)
You send() bytes. These bytes might form a sentence, a number (character or binary level encoding), or maybe a data type like a struct. It's up to you, just give send a valid pointer, tell it the length of data to send, and off you go.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
Okay, Do I need to know winsock for DirectPlay?
I'm guessing for send() you would cast the data, because the prototype says char*, unless I'm mistaken
Stan The Man. Beatles fan
When I was a child,
I spoke as a child,
I thought as a child,
I reasoned as a child.
When I became a man,
I put childish ways behind me"
(the holy bible, Paul, in his first letter to the Cor. 13:11)
You're not mistaken. You send() sizeof(theData) bytes, starting from (char*)&theDataI'm guessing for send() you would cast the data, because the prototype says char*, unless I'm mistaken
Just Google It. √
(\ /)
( . .)
c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.