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
socket connection status 08/21/2012 - C/C++ - 2 Replies und da habe ich wieder ein problem mit den sockets :)
ich connecte mit einem nonblocking socket zu einem server. soweit alles gut, wenn ich allerdings vom server getrennt werde, bekomme ich das nicht mit.
aktuell versuche ich das so:
int r = select(this->m_socket+1,&fdread,&fdwrit e,nullptr,&tv);
if(r<=0)
return false;
Socket Connection VB.NET 02/15/2012 - Metin2 Private Server - 0 Replies Hello, i'm trying to connect my software at metin2's server, with socket connection.
But I do not know when i err..
This is the code:
Dim query As String = "@SHOWMETHEMONEY.@EVENT TEST 1."
Dim host As IPAddress = Nothing
Dim mySock As Socket = Nothing
Try
If Not IPAddress.TryParse("5.100.136.100", host) Then
MessageBox.Show("This IP is not valid")
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);
...