Register for your free account! | Forgot your password?

You last visited: Today at 20:35

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

Advertisement



[C#] Help me

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

Reply
 
Old   #1
 
elite*gold: 293
Join Date: Mar 2008
Posts: 109
Received Thanks: 37
[C#] Help me

Hi.

I need make my own packet analyzer. This is my codes

Code:
 int a;
            a=1;
            TcpClient Socket = new TcpClient();
            Socket.Connect("127.0.0.1", 22580);
            Console.WriteLine("Bağlantı Sağlandı!");

            while (a <= 1)
            {
                Stream stm = Socket.GetStream();
                byte[] bb = new byte[1024];
                int k = stm.Read(bb, 0, 1024);
                Console.WriteLine(bb);
            }
            Console.Read();
Any one help me in this subject? ^^ How can i get raw codes? Waiting your help. Thank you.

Ps: Sorry for my English.
fatihy93 is offline  
Old 06/21/2011, 02:13   #2

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
Declare x as a Socket ( before that import system.net.sockets ofc)
you can simply use x.receive to receive packets
sarkoplata is offline  
Old 06/21/2011, 13:58   #3
 
lesderid's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 2,400
Received Thanks: 1,517
Trying to reinvent the wheel, huh?

Search for pushedx's SilkroadSecurity API.
lesderid is offline  
Reply




All times are GMT +1. The time now is 20:36.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.