| View previous topic :: View next topic |
| Author |
Message |
Negima I post too much
Reputation: 5
Joined: 22 May 2007 Posts: 2222
|
Posted: Sun Aug 10, 2008 6:32 pm Post subject: [C++]Sending a packet? |
|
|
| How does one send a packet in C++. I tried looking on msdn, but I had no luck.
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Sun Aug 10, 2008 6:33 pm Post subject: |
|
|
send API.
_________________
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sun Aug 10, 2008 6:43 pm Post subject: |
|
|
Can you really use that to send a packet (i.e a WoL packet)?
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
smartz993 I post too much
Reputation: 2
Joined: 20 Jun 2006 Posts: 2013 Location: USA
|
Posted: Sun Aug 10, 2008 8:07 pm Post subject: |
|
|
| oib111 wrote: | | Can you really use that to send a packet (i.e a WoL packet)? |
How do you think the game sends packets?
|
|
| Back to top |
|
 |
kitterz Grandmaster Cheater Supreme
Reputation: 0
Joined: 24 Dec 2007 Posts: 1268
|
Posted: Sun Aug 10, 2008 8:34 pm Post subject: |
|
|
| smartz993 wrote: | | oib111 wrote: | | Can you really use that to send a packet (i.e a WoL packet)? |
How do you think the game sends packets? |
I guess. REMOVE YOUR AVATAR. IT IS OFFENSIVE.
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sun Aug 10, 2008 9:59 pm Post subject: |
|
|
@kitterz
Me or smartz?
And how exactly do you send a packet with the send API? I.e a WoL packet:
| Code: |
FFFFFFFFFFFF010203040506010203040506010203040506010203040506
010203040506010203040506010203040506010203040506010203040506
010203040506010203040506010203040506010203040506010203040506
010203040506010203040506
|
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Sun Aug 10, 2008 10:30 pm Post subject: |
|
|
2nd parameter is const char*
Just put it in there... just fill a char pointer like this:
char bPacket[nSizeOfPacket] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x02, 0x03, 0x04 ... }
_________________
|
|
| Back to top |
|
 |
Noz3001 I'm a spammer
Reputation: 26
Joined: 29 May 2006 Posts: 6220 Location: /dev/null
|
Posted: Mon Aug 11, 2008 3:22 am Post subject: |
|
|
| oib111 wrote: | @kitterz
Me or smartz?
And how exactly do you send a packet with the send API? I.e a WoL packet:
| Code: |
FFFFFFFFFFFF010203040506010203040506010203040506010203040506
010203040506010203040506010203040506010203040506010203040506
010203040506010203040506010203040506010203040506010203040506
010203040506010203040506
|
|
Don't know what a WoL packet is but data is data. It's all the same, just looked at differently.
|
|
| Back to top |
|
 |
|