mirror of
https://github.com/deavmi/nostril
synced 2024-09-20 05:43:29 +02:00
Server
- Cleaned up whitespace - Added missing header documentation for the `Server` constructor
This commit is contained in:
parent
63b63c72c8
commit
d453c16ad5
@ -43,11 +43,12 @@ public class Server
|
||||
private Connection[Connection] connections;
|
||||
|
||||
/**
|
||||
* TODO
|
||||
* Constructs a new server listening on the given
|
||||
* network parameters
|
||||
*
|
||||
* Params:
|
||||
* bindAddresses =
|
||||
* bindPort =
|
||||
* bindAddresses = list of addresses to bind to
|
||||
* bindPort = port to bind to
|
||||
*/
|
||||
this(string[] bindAddresses, ushort bindPort)
|
||||
{
|
||||
@ -104,13 +105,16 @@ public class Server
|
||||
connections[newConnection] = newConnection;
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes the provided connection from the connection queue
|
||||
*
|
||||
* Params:
|
||||
* existingConnection = the connection to remove
|
||||
*/
|
||||
public final void delConnection(Connection existingConnection)
|
||||
{
|
||||
connections.remove(existingConnection);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user