Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions MultiAdmin/ServerIO/ServerSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,9 @@ public class ServerSocket : IDisposable

public event EventHandler<string> OnReceiveMessage;

public int Port
{
get
{
return ((IPEndPoint)listener.LocalEndpoint).Port;
}
}
public int Port => ((IPEndPoint)listener.LocalEndpoint).Port;

public bool Connected
{
get
{
return client?.Connected ?? false;
}
}
public bool Connected => client?.Connected ?? false;

// Port 0 automatically assigns a port
public ServerSocket(int port = 0)
Expand Down