anchor.diff:    SocketClose.start(mode)
         : _receivePort = new ReceivePort(),
           _sendPort = null,
  +        _readBytes = 0,
           _dataEvents = 0,
           _closeEvents = 0,
           _errorEvents = 0,
  
positive.code: 
      this.port.receive((message, SendPort replyTo) {
        if (message != SERVERSHUTDOWN) {
          _errorEvents = 0;
          _dataEvents = 0;
          _closeEvents = 0;
  
negative.code:             Expect.fail("No data expected");
              break;
            case 1:
              readBytes(() { });
              break;
            case 2:
              readBytes(() {
                connection.close();
              });
              break;
            case 3:
              readBytes(() {
                connection.writeList("Hello".charCodes(), 0, 5);
                connection.close();
              });
              break;
            case 4:
              readBytes(() {
                connection.writeList("Hello".charCodes(), 0, 5);
              });
              break;
            case 5:
            case 6:
              readBytes(() {
                connection.writeList("Hello".charCodes(), 0, 5);
                connection.close(true);
              });
              break;
            default:
              Expect.fail("Unknown test mode");
  