Register for your free account! | Forgot your password?

You last visited: Today at 12:56

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Help sending packets

Discussion on Help sending packets within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2007
Posts: 23
Received Thanks: 1
Help sending packets

well i knew that i need to put the packet in a byte array

so i defined it
Code:
BYTE pack[7] = {
    0x01, 0x00, 
    0x4F, 0x70,  
    0x20, 0x00, 
    0x04    
};
and when i send it using the send through a socket like this
Code:
send(nuconnector,pack, sizeof(pack), 0);
it gives me this error
Code:
error C2664: 'send' : cannot convert parameter 2 from 'BYTE [7]' to 'const char *'
what should i do to make this thing work :S help please tanks in advance
dragonsword1 is offline  
Old 06/26/2012, 13:30   #2
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
try this:

Code:
send(nuconnector,&pack, sizeof(pack), 0);
It's been a while since i've used the byte array and sending them so not sure if it works though.
kevin_owner is offline  
Old 06/27/2012, 05:10   #3
 
elite*gold: 0
Join Date: Nov 2007
Posts: 23
Received Thanks: 1
its solved i made it
Code:
send(nuconnector,reinterpret_cast <char*>(packet), sizeof(packet), 0);
and it works now thanks for the help mate
dragonsword1 is offline  
Reply


Similar Threads Similar Threads
Sending Packets
03/26/2019 - PW Hacks, Bots, Cheats, Exploits - 432 Replies
As per Smurfin's request: reposting of what I posted in the Prophet's bot thread. some example of functions you could use with sending packets (AutoIt code, see link below for C#): ;////Code for sending packets.
[AutoIT] Sending Packets Help
10/10/2012 - SRO Coding Corner - 53 Replies
With edxloader i got this : (Sit - Stand recorded) 04 Now, in AutoIt, i think that it need to look like this, but i dont know what to write in "?????" to send packet for sit - stand command .
Help for sending packets
05/11/2012 - PW Hacks, Bots, Cheats, Exploits - 1 Replies
Hello Dear programmers, botovody! I am a novice programmer, and started programming in the language of Delphi! there is a couple of my works Каталог файлов - PwRuf - уникальный бот для Perfect World! But another question! I would like to implement the sending of packages to craft nirvana clothing, weapons. But I have a problem with traffic light emitted from the fact that the package that I send a very large ie 256 characters! Please help or point me where to...
Sending Packets !!!
09/07/2008 - Kal Online - 14 Replies
now i know how to sniff / analyse packets ... but what then ? :) how can i send packets ?? to pimp or mix weapon for example i just need the way to send , and then i can depend on myself :D
Sending packets
10/12/2005 - Conquer Online 2 - 10 Replies
I've a question. Is it possible to send 1 packet multiple times at the exact same time?



All times are GMT +1. The time now is 12:57.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.