Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 10:15

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

Advertisement



C# Async Socket Server | Client Disconnect Erkennen

Discussion on C# Async Socket Server | Client Disconnect Erkennen within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1

 
Nanoxx™'s Avatar
 
elite*gold: 15
Join Date: Feb 2013
Posts: 2,880
Received Thanks: 465
C# Async Socket Server | Client Disconnect Erkennen

Moinsen,

Ich habe ein Problem - Ein Server Welcher Nachrichten empfängt - ein client welcher Nachrichten sendet...

Wenn die Verbindung aufgebaut ist und ich bei dem Client den "Stecker" ziehe kriege ich bei dem Server weder eine Exception noch irgend eine Andere Meldung..

Wenn ich nach dem "Stecker ziehen" versuche eine Nachricht an den Client zu senden und per try/catch einen Fehler abzufangen passiert nichts... kein Fehler keine andere Meldung...

Bis jetzt habe ich keine Lösung gefunden - hatte schon mal jemand die gleiche Situation?
Nanoxx™ is offline  
Old 08/06/2016, 11:55   #2



 
Shawak's Avatar
 
elite*gold: 0
The Black Market: 259/0/0
Join Date: Apr 2010
Posts: 10,289
Received Thanks: 3,613
Ich hab daran ne Ewigkeit rum gefummelt, kannst dir ja mal meine Lösung anschauen:

Shawak is offline  
Thanks
1 User
Old 08/06/2016, 15:30   #3
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462


platform unabhängige networking library
YatoDev is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[C#] Async Socket Connection
09/29/2015 - .NET Languages - 0 Replies
#solved
Async Socket Server (SocketAsyncEventargs, BufferPool, SAEAPool, Etc...)
05/30/2014 - CO2 Programming - 10 Replies
Hi everyone, today i worked a bit with sockets just because wanted to code an asynchronous socket server in the way i think they should work, yet the design was the first idea i had so don't mind if its ugly for your eyes :) Tried to comment everything, i suck at that but i did my best. For this i used the SocketAsyncEventArgs class for accept and I/O operations, Disconnect is done synchronously. So lets divide all the code so i can explain it better :) Buffer Pool According to...
[C#]Async Socket
01/09/2014 - CO2 PServer Guides & Releases - 2 Replies
Hey , this is my first test of coding a socket :D ServerSocket - iPiraTe - Pastebin.com Notice : i didn't finished it yet .. i wanted to know ur opinion first
Async Socket Wrapper
11/11/2011 - CO2 Programming - 8 Replies
So I was bored and thought I would code a socket wrapper. It's a class library, but full project is available for download + an example use for a socket server. It contains both wrapper for server and client stuff, which means it can be used for either private servers as server-socket or for a proxy. WinAsync - This class contains all the events. public delegate void WinEvent(WinClient wClient); public delegate void WinBufferEvent(WinClient wClient, WinBuffer Buffer); ...



All times are GMT +1. The time now is 10:16.


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