mirror of
https://github.com/deavmi/nostril
synced 2024-09-20 09:03:01 +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;
|
private Connection[Connection] connections;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO
|
* Constructs a new server listening on the given
|
||||||
|
* network parameters
|
||||||
*
|
*
|
||||||
* Params:
|
* Params:
|
||||||
* bindAddresses =
|
* bindAddresses = list of addresses to bind to
|
||||||
* bindPort =
|
* bindPort = port to bind to
|
||||||
*/
|
*/
|
||||||
this(string[] bindAddresses, ushort bindPort)
|
this(string[] bindAddresses, ushort bindPort)
|
||||||
{
|
{
|
||||||
@ -104,13 +105,16 @@ public class Server
|
|||||||
connections[newConnection] = newConnection;
|
connections[newConnection] = newConnection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes the provided connection from the connection queue
|
||||||
|
*
|
||||||
|
* Params:
|
||||||
|
* existingConnection = the connection to remove
|
||||||
|
*/
|
||||||
public final void delConnection(Connection existingConnection)
|
public final void delConnection(Connection existingConnection)
|
||||||
{
|
{
|
||||||
connections.remove(existingConnection);
|
connections.remove(existingConnection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user