Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 04:22

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

Advertisement



[Help]trouble on my way C#

Discussion on [Help]trouble on my way C# within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2008
Posts: 112
Received Thanks: 10
[Help]trouble on my way C#

Kevin_owner tell to mahmoda the easiest way to inject packet
Quote:
1. Create a listening socket.
2. wait for a (I assume) sro_client to connect
3. once it is connected you make a connection with the official sro server.
4. Well how I did this was creating 2 loops in separate thread to handle the messages and just forward them.
5. proxy done you can now add a little packet parser to prevent packets to be send and send your own packets
I've done the 1st , 2nd and 3rd but what do you mean by the 4th and how do you do this please give me example for the 4th and 5th
my question is what do you mean by 4th and 5th and how can you do this by example????
kondos is offline  
Old 04/11/2011, 20:07   #2
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
Well what I meant is in C++ I created another thread (process).

So I got 2 processes running cause in C++ the recv function is blocking by default(You can set it to non blocking but that doesn't matter right now)

Well I don't know how this is done in C# but what I mean by creating 2 loops in separate threads to handle the messages(packets) and just forward them was this:

Wait for an client to connect. (Normally your app blocks here till someone connects)

If a client connects you already got one part done. cause now you have an active connection between the client and your little proxy. but now you just need to connect to the server.

In C++ i created another thread to just connect to the official login server of silkroad so at that point I got 2 threads running (The main one and the one created by myself)
the main one handles the client to the offcial server packets and the one I created by myself sens the packets of the offical server to the client.

It's a bit tricky to get at first and I hope that someone has a better solution for you since my main programming language isnt' C#.


This is a little image of how the whole thing works.

I hope this explained things a little bit better
kevin_owner is offline  
Reply


Similar Threads Similar Threads
AM having Trouble
02/11/2010 - Grand Chase Philippines - 0 Replies
am having trouble w/ serial number in installing WIind0w Xp
having trouble
12/28/2009 - Dekaron - 19 Replies
i`m having trouble lvling..I am just 105.. and I`m making the DOOMED MAZE CQ but its so hard to lvl..anyone knows how to do it faster?..it tkates 5 CQ to 15%..its so anoying.. so if u guys can help me?
erm.. sorry to trouble you all
08/06/2009 - Dekaron - 10 Replies
hi every bro.. first, sorry. cuz i quited 2moon on 2008 and juz return to game again, yesterday.. knowing that last year, after the update, all the GG, CRC, cant be use. (winhex) can i ask any bro here that, is the winhex still usable now? like, still need a no crc or GG killer? noob now... :p thank again.. do bro mind i ask is there any hex similiar like winhex? lol:p
trouble
06/20/2008 - Eudemons Online - 2 Replies
when i start my client for the private server its all black like the world biggest lag ever, but when i start the orginal eudemons there is no problem at all, can any1 help me out?????



All times are GMT +2. The time now is 04:22.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

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