Remove StreamTransport interface

Implement DuplexTransport and SocketTransport separately.
This commit is contained in:
2017-02-10 22:30:12 +01:00
parent b74e5aa4ee
commit a012ca4003
7 changed files with 122 additions and 170 deletions

View File

@ -196,7 +196,7 @@ abstract class Loop
* Params:
* watcher = Watcher.
*/
void start(ConnectionWatcher watcher) @nogc
void start(SocketWatcher watcher) @nogc
{
if (watcher.active)
{
@ -234,9 +234,9 @@ abstract class Loop
*
* Returns: $(D_KEYWORD true) if the operation was successful.
*/
abstract protected bool reify(ConnectionWatcher watcher,
EventMask oldEvents,
EventMask events) @nogc;
abstract protected bool reify(SocketWatcher watcher,
EventMask oldEvents,
EventMask events) @nogc;
/**
* Returns: The blocking time.
@ -273,7 +273,7 @@ abstract class Loop
* watcher = Watcher.
* exception = Occurred exception.
*/
protected void kill(IOWatcher watcher, SocketException exception) @nogc
protected void kill(IOWatcher watcher, SocketException exception = null) @nogc
in
{
assert(watcher !is null);