### Summary
Adds back the `SocketConnected` event. This event only fires asynchronously! (TcpServer thread).
Example:
```cs
public static void Configure()
{
TcpServer.EventSink.SocketConnected += OnSocketConnected;
}
// WARNING: Executed on the TcpServer thread!
private static void OnSocketConnected(TcpServer.SocketConnectedEventArgs args)
{
if (... logic here...)
{
AdminFirewall.Add(((IPEndPoint)Socket.RemoteEndPoint)!.Address);
}
}
```
|
||
|---|---|---|
| .. | ||
| Firewall | ||
| NetState | ||
| Packets | ||
| EncodedPacketHandler.cs | ||
| EncodedReader.cs | ||
| IPLimiter.cs | ||
| MovementThrottle.cs | ||
| NetworkCompression.cs | ||
| PacketHandler.cs | ||
| PacketUtilities.cs | ||
| PingServer.cs | ||
| Pipe.cs | ||
| ServerInfo.cs | ||
| TcpServer.cs | ||