Register for your free account! | Forgot your password?

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

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

Advertisement



Clientless auto relog C#

Discussion on Clientless auto relog C# within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2014
Posts: 7
Received Thanks: 1
Clientless auto relog C#

Hello, this is first thread to me.
i'm working on notice src and i wanna make the clientless re-log after got disconnect, i'm tried for a lot, i can make the app re-log again after the char got dc.
but i won't do it, i wanna to get disconnect from gateway and agent then try to log again.
thanks

conan4 is offline  
Old 10/06/2019, 23:11   #2
 
JellyBitz's Avatar
 
elite*gold: 0
Join Date: Sep 2018
Posts: 344
Received Thanks: 770
The socket still activated. The port stay as "being used" if you don't close it properly.
JellyBitz is online now  
Thanks
1 User
Old 10/07/2019, 16:45   #3
 
elite*gold: 0
Join Date: Sep 2014
Posts: 7
Received Thanks: 1
Quote:
Originally Posted by JellyBitz View Post
The socket still activated. The port stay as "being used" if you don't close it properly.
thanks a lot for reply, but who i can do this? i'm tried socket.close(); but it not working.
conan4 is offline  
Old 10/08/2019, 09:08   #4
 
JellyBitz's Avatar
 
elite*gold: 0
Join Date: Sep 2018
Posts: 344
Received Thanks: 770
You are not closing the connection properly by disposing only.

You have to know there exists three methods for it: Shutdown(), Disconnect() and Close().

If you plan to reuse the same socket then Disconnect will be your choice before Close it! If you don't, then try to do it properly, Shutdown (disconnect using protocols) before Close (dispose the socket).

More info can be found at this .
JellyBitz is online now  
Old 10/08/2019, 14:35   #5
 
elite*gold: 0
Join Date: Sep 2014
Posts: 7
Received Thanks: 1
Quote:
Originally Posted by JellyBitz View Post
You are not closing the connection properly by disposing only.

You have to know there exists three methods for it: Shutdown(), Disconnect() and Close().

If you plan to reuse the same socket then Disconnect will be your choice before Close it! If you don't, then try to do it properly, Shutdown (disconnect using protocols) before Close (dispose the socket).

More info can be found at this .
ah oky, thanks a lot for helped, i'll try <3
conan4 is offline  
Old 10/09/2019, 07:50   #6
 
elite*gold: 0
Join Date: Feb 2014
Posts: 157
Received Thanks: 70
try this
Code:
        public static void Disconnect()
        {
           try
            {
                ag_socket.Close();
                ag_socket.Dispose();
                ag_socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
                ag_security = new Security();
                ag_recv_buffer = new TransferBuffer(4096, 0, 0);
                ag_packets = new List<Packet>();
            }
            catch
            {
            }
        }
hancook1st is offline  
Reply


Similar Threads Similar Threads
DVbot Clientless botting made easy High performance clientless bot. About: Blitzbo
04/24/2015 - League of Legends Trading - 88 Replies
Sales closed!
[CLIENTLESS] YourRock v1 ClientLess WarRockBot
07/20/2013 - WarRock Hacks, Bots, Cheats & Exploits - 15 Replies
CLOSED



All times are GMT +2. The time now is 01:42.


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.