Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | 1x 22x 22x 22x 1x 20x 1x 1x 4x 4x 4x 1x 10x 10x 10x 10x 10x 10x 1x 8x 1x 30x 30x 1x 2x 2x 2x 2x 1x 2x 1x 2x 2x 1x 2x 1x 2x 1x 6x 6x 6x 1x 4x 1x 4x 4x 4x 1x 2x 1x 2x 1x 2x | import type {Nlm4Stat} from './constants';
import type {Reader} from '@jsonjoy.com/buffers/lib/Reader';
import type * as stucts from './structs';
/**
* Network Lock Manager (NLM) protocol messages (Appendix II)
*/
export type NlmMessage = NlmRequest | NlmResponse;
export type NlmRequest =
| Nlm4TestRequest
| Nlm4LockRequest
| Nlm4CancelRequest
| Nlm4UnlockRequest
| Nlm4GrantedRequest
| Nlm4ShareRequest
| Nlm4UnshareRequest
| Nlm4NmLockRequest
| Nlm4FreeAllRequest;
export type NlmResponse = Nlm4TestResponse | Nlm4Response | Nlm4ShareResponse;
/**
* TEST request arguments
*/
export class Nlm4TestArgs {
constructor(
public readonly cookie: Reader,
public readonly exclusive: boolean,
public readonly lock: stucts.Nlm4Lock,
) {}
}
/**
* TEST request
*/
export class Nlm4TestRequest {
constructor(public readonly args: Nlm4TestArgs) {}
}
/**
* TEST response - denied case
*/
export class Nlm4TestDenied {
constructor(public readonly holder: stucts.Nlm4Holder) {}
}
/**
* TEST response
*/
export class Nlm4TestResponse {
constructor(
public readonly cookie: Reader,
public readonly stat: Nlm4Stat,
public readonly holder?: stucts.Nlm4Holder,
) {}
}
/**
* LOCK request arguments
*/
export class Nlm4LockArgs {
constructor(
public readonly cookie: Reader,
public readonly block: boolean,
public readonly exclusive: boolean,
public readonly lock: stucts.Nlm4Lock,
public readonly reclaim: boolean,
public readonly state: number,
) {}
}
/**
* LOCK request
*/
export class Nlm4LockRequest {
constructor(public readonly args: Nlm4LockArgs) {}
}
/**
* Generic NLM response
*/
export class Nlm4Response {
constructor(
public readonly cookie: Reader,
public readonly stat: Nlm4Stat,
) {}
}
/**
* CANCEL request arguments
*/
export class Nlm4CancelArgs {
constructor(
public readonly cookie: Reader,
public readonly block: boolean,
public readonly exclusive: boolean,
public readonly lock: stucts.Nlm4Lock,
) {}
}
/**
* CANCEL request
*/
export class Nlm4CancelRequest {
constructor(public readonly args: Nlm4CancelArgs) {}
}
/**
* UNLOCK request arguments
*/
export class Nlm4UnlockArgs {
constructor(
public readonly cookie: Reader,
public readonly lock: stucts.Nlm4Lock,
) {}
}
/**
* UNLOCK request
*/
export class Nlm4UnlockRequest {
constructor(public readonly args: Nlm4UnlockArgs) {}
}
/**
* GRANTED request
*/
export class Nlm4GrantedRequest {
constructor(public readonly args: Nlm4TestArgs) {}
}
/**
* SHARE request arguments
*/
export class Nlm4ShareArgs {
constructor(
public readonly cookie: Reader,
public readonly share: stucts.Nlm4Share,
public readonly reclaim: boolean,
) {}
}
/**
* SHARE request
*/
export class Nlm4ShareRequest {
constructor(public readonly args: Nlm4ShareArgs) {}
}
/**
* SHARE response
*/
export class Nlm4ShareResponse {
constructor(
public readonly cookie: Reader,
public readonly stat: Nlm4Stat,
public readonly sequence: number,
) {}
}
/**
* UNSHARE request
*/
export class Nlm4UnshareRequest {
constructor(public readonly args: Nlm4ShareArgs) {}
}
/**
* NM_LOCK request
*/
export class Nlm4NmLockRequest {
constructor(public readonly args: Nlm4LockArgs) {}
}
/**
* FREE_ALL request
*/
export class Nlm4FreeAllRequest {
constructor(public readonly notify: stucts.Nlm4Notify) {}
}
|