I am currently trying to get the IPs from sockets without calling
method to set the socket yet I can't find a way to get the remote adress without this method (which gives errors and blocks login in case of a spam, resulting in incapacity of stopping the spamming IPs)
Is there any alternative to get the adress of the remote user without calling this method?
This is what I use
Any ideeas are appreciated :)
Code:
soc.EndAccept(IAsyncResult result)
Is there any alternative to get the adress of the remote user without calling this method?
This is what I use
Code:
public class Wrapper
{
public byte[] buffer;
public Socket _socket;
public object connector;
}
private void AcceptConnections(IAsyncResult result)
{
Wrapper wr = result.AsyncState as Wrapper;
[B] [COLOR="Red"]wr._socket = _socket.EndAccept(result);[/COLOR][/B]
//receive data
//send data for a new connection
//accept new connections
}