41 #define __attribute__(x)
48 #define kXR_PROTOCOLVERSION 0x00000300
49 #define kXR_PROTOCOLVSTRING "3.0.0"
56 #define kXR_DataServer 1
57 #define kXR_LBalServer 0
61 #define kXR_isManager 0x00000002
62 #define kXR_isServer 0x00000001
63 #define kXR_attrMeta 0x00000100
64 #define kXR_attrProxy 0x00000200
65 #define kXR_attrSuper 0x00000400
67 #define kXR_maxReqRetry 10
722 #if !defined(ENOTBLK)
725 #if !defined(ETXTBSY)
728 #if !defined(ENOBUFS)
731 #if !defined(ENETUNREACH)
732 #define ENETUNREACH 114
743 {
if (rc < 0) rc = -rc;
Definition: XProtocol.hh:646
unsigned char kXR_char
Definition: XPtypes.hh:38
kXR_int64 offset
Definition: XProtocol.hh:509
Definition: XProtocol.hh:141
Definition: XProtocol.hh:606
kXR_int32 dlen
Definition: XProtocol.hh:512
Definition: XProtocol.hh:193
Definition: XProtocol.hh:173
Definition: XProtocol.hh:151
kXR_unt16 options
Definition: XProtocol.hh:405
kXR_char role[1]
Definition: XProtocol.hh:384
Definition: XProtocol.hh:249
Definition: XProtocol.hh:210
Definition: XProtocol.hh:92
kXR_unt16 requestid
Definition: XProtocol.hh:357
kXR_char reserved[8]
Definition: XProtocol.hh:436
Definition: XProtocol.hh:107
kXR_int64 offset
Definition: XProtocol.hh:566
kXR_char reserved[12]
Definition: XProtocol.hh:429
Definition: XProtocol.hh:235
Definition: XProtocol.hh:664
kXR_char streamid[2]
Definition: XProtocol.hh:349
kXR_int32 dlen
Definition: XProtocol.hh:462
kXR_int32 port
Definition: XProtocol.hh:617
kXR_char sessid[16]
Definition: XProtocol.hh:358
Definition: XProtocol.hh:233
Definition: XProtocol.hh:190
kXR_char streamid[2]
Definition: XProtocol.hh:433
kXR_char fhandle[4]
Definition: XProtocol.hh:600
kXR_char reserved[7]
Definition: XProtocol.hh:571
XMkdirOptions
Definition: XProtocol.hh:131
kXR_char streamid[2]
Definition: XProtocol.hh:417
kXR_char ability
Definition: XProtocol.hh:382
kXR_int32 wsec
Definition: XProtocol.hh:660
kXR_unt16 requestid
Definition: XProtocol.hh:451
kXR_unt16 requestid
Definition: XProtocol.hh:418
Definition: XProtocol.hh:127
kXR_int32 pid
Definition: XProtocol.hh:379
kXR_char username[8]
Definition: XProtocol.hh:380
Definition: XProtocol.hh:277
Definition: XProtocol.hh:410
Definition: XProtocol.hh:268
union ServerResponse::@20 body
kXR_int32 dlen
Definition: XProtocol.hh:421
kXR_char options[1]
Definition: XProtocol.hh:390
Definition: XProtocol.hh:75
kXR_int32 wsec
Definition: XProtocol.hh:655
Definition: XProtocol.hh:149
Definition: XProtocol.hh:108
Definition: XProtocol.hh:125
ServerResponseBody_Waitresp waitresp
Definition: XProtocol.hh:680
char host[4092]
Definition: XProtocol.hh:643
kXR_char streamid[2]
Definition: XProtocol.hh:465
Definition: XProtocol.hh:175
ServerResponseBody_Wait wait
Definition: XProtocol.hh:679
Definition: XProtocol.hh:244
kXR_int32 dlen
Definition: XProtocol.hh:338
char reserved[4]
Definition: XProtocol.hh:648
char infomsg[4096]
Definition: XProtocol.hh:628
Definition: XProtocol.hh:340
Definition: XProtocol.hh:294
Definition: XProtocol.hh:563
Definition: XProtocol.hh:189
Definition: XProtocol.hh:138
Definition: XProtocol.hh:176
ServerResponseBody_Bind bind
Definition: XProtocol.hh:686
kXR_char streamid[2]
Definition: XProtocol.hh:506
Definition: XProtocol.hh:401
Definition: XProtocol.hh:290
kXR_char reserved[16]
Definition: XProtocol.hh:413
kXR_char streamid[2]
Definition: XProtocol.hh:321
Definition: XProtocol.hh:231
Definition: XProtocol.hh:369
kXR_char fhandle[4]
Definition: XProtocol.hh:508
Definition: XProtocol.hh:276
Definition: XProtocol.hh:279
kXR_int32 dlen
Definition: XProtocol.hh:468
kXR_unt16 requestid
Definition: XProtocol.hh:342
Definition: XProtocol.hh:280
kXR_char reserved[16]
Definition: XProtocol.hh:467
XOpenRequestMode
Definition: XProtocol.hh:119
kXR_char fhandle[4]
Definition: XProtocol.hh:493
unsigned short kXR_unt16
Definition: XPtypes.hh:40
kXR_int32 msec
Definition: XProtocol.hh:661
kXR_int32 third
Definition: XProtocol.hh:696
kXR_char credtype[4]
Definition: XProtocol.hh:324
kXR_int32 msgval
Definition: XProtocol.hh:705
char data[4096]
Definition: XProtocol.hh:665
Definition: XProtocol.hh:211
Definition: XProtocol.hh:284
kXR_char prty
Definition: XProtocol.hh:427
kXR_char pathid
Definition: XProtocol.hh:461
Definition: XProtocol.hh:266
Definition: XProtocol.hh:126
Definition: XProtocol.hh:78
Definition: XProtocol.hh:96
kXR_char sessid[16]
Definition: XProtocol.hh:330
Definition: XProtocol.hh:105
kXR_unt16 requestid
Definition: XProtocol.hh:350
Definition: XProtocol.hh:97
kXR_int32 dlen
Definition: XProtocol.hh:353
kXR_int64 fsize
Definition: XProtocol.hh:344
XLogonType
Definition: XProtocol.hh:223
Definition: XProtocol.hh:514
Definition: XProtocol.hh:106
kXR_unt16 requestid
Definition: XProtocol.hh:484
Definition: XProtocol.hh:416
kXR_unt16 requestid
Definition: XProtocol.hh:378
kXR_int64 offset
Definition: XProtocol.hh:518
Definition: XProtocol.hh:172
Definition: XProtocol.hh:73
kXR_char streamid[2]
Definition: XProtocol.hh:477
Definition: XProtocol.hh:653
kXR_int32 rlen
Definition: XProtocol.hh:565
Definition: XProtocol.hh:132
kXR_int32 dlen
Definition: XProtocol.hh:438
Definition: XProtocol.hh:212
Definition: XProtocol.hh:470
Definition: XProtocol.hh:157
Definition: XProtocol.hh:150
Definition: XProtocol.hh:327
kXR_unt16 requestid
Definition: XProtocol.hh:527
kXR_unt16 requestid
Definition: XProtocol.hh:397
Definition: XProtocol.hh:423
Definition: XProtocol.hh:668
Definition: XProtocol.hh:234
static int mapError(int rc)
Definition: XProtocol.hh:742
kXR_char reserved[3]
Definition: XProtocol.hh:511
kXR_unt16 requestid
Definition: XProtocol.hh:371
Definition: XProtocol.hh:164
kXR_unt16 infotype
Definition: XProtocol.hh:443
kXR_char capver[1]
Definition: XProtocol.hh:383
kXR_int32 port
Definition: XProtocol.hh:642
XResponseType
Definition: XProtocol.hh:243
kXR_char substreamid
Definition: XProtocol.hh:595
kXR_char reserved[12]
Definition: XProtocol.hh:420
kXR_char streamid[2]
Definition: XProtocol.hh:315
Definition: XProtocol.hh:205
kXR_char reserved[14]
Definition: XProtocol.hh:336
kXR_char streamid[2]
Definition: XProtocol.hh:341
kXR_char reserved[16]
Definition: XProtocol.hh:473
XVerifyType
Definition: XProtocol.hh:218
XQueryType
Definition: XProtocol.hh:204
Definition: XProtocol.hh:109
kXR_int32 rlen
Definition: XProtocol.hh:454
Definition: XProtocol.hh:123
Definition: XProtocol.hh:640
kXR_unt16 requestid
Definition: XProtocol.hh:492
kXR_int32 dlen
Definition: XProtocol.hh:455
Definition: XProtocol.hh:87
Definition: XProtocol.hh:88
ServerResponseBody_Login login
Definition: XProtocol.hh:684
Definition: XProtocol.hh:599
kXR_unt16 requestid
Definition: XProtocol.hh:403
kXR_char streamid[2]
Definition: XProtocol.hh:328
kXR_unt16 requestid
Definition: XProtocol.hh:499
kXR_char reserved1[2]
Definition: XProtocol.hh:444
Definition: XProtocol.hh:252
kXR_int32 dlen
Definition: XProtocol.hh:480
kXR_int32 dlen
Definition: XProtocol.hh:474
kXR_char reserved2[8]
Definition: XProtocol.hh:446
Definition: XProtocol.hh:76
kXR_unt16 requestid
Definition: XProtocol.hh:472
Definition: XProtocol.hh:159
Definition: XProtocol.hh:174
ServerResponseBody_Error error
Definition: XProtocol.hh:677
Definition: XProtocol.hh:320
kXR_int32 fourth
Definition: XProtocol.hh:697
kXR_int32 dlen
Definition: XProtocol.hh:430
Definition: XProtocol.hh:199
Definition: XProtocol.hh:170
Definition: XProtocol.hh:102
XLoginVersion
Definition: XProtocol.hh:156
Definition: XProtocol.hh:293
Definition: XProtocol.hh:98
kXR_char cptype[4]
Definition: XProtocol.hh:602
Definition: XProtocol.hh:505
char host[4096]
Definition: XProtocol.hh:618
Definition: XProtocol.hh:569
kXR_char reserved[16]
Definition: XProtocol.hh:398
kXR_char reserved[4]
Definition: XProtocol.hh:345
Definition: XProtocol.hh:440
kXR_int32 errnum
Definition: XProtocol.hh:622
kXR_char reserved[2]
Definition: XProtocol.hh:521
Definition: XProtocol.hh:90
kXR_int32 dlen
Definition: XProtocol.hh:447
kXR_char reserved[4]
Definition: XProtocol.hh:502
Definition: XProtocol.hh:160
kXR_char options
Definition: XProtocol.hh:426
kXR_int32 options
Definition: XProtocol.hh:364
kXR_char reserved[13]
Definition: XProtocol.hh:391
Definition: XProtocol.hh:611
Definition: XProtocol.hh:169
Definition: XProtocol.hh:122
char chkszreq[25-sizeof(ClientRequest)]
Definition: XProtocol.hh:712
Definition: XProtocol.hh:432
kXR_char streamid[2]
Definition: XProtocol.hh:498
Definition: XProtocol.hh:94
Definition: XProtocol.hh:281
Definition: XProtocol.hh:99
kXR_char streamid[2]
Definition: XProtocol.hh:396
kXR_char streamid[2]
Definition: XProtocol.hh:356
Definition: XProtocol.hh:124
kXR_int32 second
Definition: XProtocol.hh:695
Definition: XProtocol.hh:248
kXR_char streamid[2]
Definition: XProtocol.hh:388
kXR_int32 actnum
Definition: XProtocol.hh:641
kXR_char reserved[16]
Definition: XProtocol.hh:479
Definition: XProtocol.hh:181
kXR_int32 dlen
Definition: XProtocol.hh:522
Definition: XProtocol.hh:246
kXR_char streamid[2]
Definition: XProtocol.hh:334
char data[4096]
Definition: XProtocol.hh:669
kXR_char pathid
Definition: XProtocol.hh:570
Definition: XProtocol.hh:113
Definition: XProtocol.hh:180
kXR_unt16 requestid
Definition: XProtocol.hh:478
Definition: XProtocol.hh:225
kXR_int32 msglen
Definition: XProtocol.hh:703
Definition: XProtocol.hh:74
Definition: XProtocol.hh:213
kXR_unt16 requestid
Definition: XProtocol.hh:459
Definition: XProtocol.hh:139
char respdata[4096]
Definition: XProtocol.hh:650
kXR_char fhandle[4]
Definition: XProtocol.hh:452
kXR_char reserved[12]
Definition: XProtocol.hh:323
kXR_int64 offset
Definition: XProtocol.hh:453
Definition: XProtocol.hh:200
Definition: XProtocol.hh:490
Definition: XProtocol.hh:215
kXR_unt16 requestid
Definition: XProtocol.hh:507
Definition: XProtocol.hh:736
kXR_int32 options
Definition: XProtocol.hh:435
Definition: XProtocol.hh:120
kXR_int32 cpsize
Definition: XProtocol.hh:601
XErrorCode
Definition: XProtocol.hh:275
Definition: XProtocol.hh:712
Definition: XProtocol.hh:348
kXR_char streamid[2]
Definition: XProtocol.hh:471
kXR_int32 dlen
Definition: XProtocol.hh:529
Definition: XProtocol.hh:168
Definition: XProtocol.hh:594
kXR_unt16 requestid
Definition: XProtocol.hh:335
Definition: XProtocol.hh:250
XLoginCapVer
Definition: XProtocol.hh:148
Definition: XProtocol.hh:283
ServerResponseBody_Protocol protocol
Definition: XProtocol.hh:683
Definition: XProtocol.hh:158
kXR_char streamid[2]
Definition: XProtocol.hh:483
kXR_int32 buffsz
Definition: XProtocol.hh:366
Definition: XProtocol.hh:89
Definition: XProtocol.hh:476
Definition: XProtocol.hh:140
kXR_unt16 requestid
Definition: XProtocol.hh:412
kXR_unt16 mode
Definition: XProtocol.hh:392
kXR_int32 pval
Definition: XProtocol.hh:607
Definition: XProtocol.hh:214
kXR_int32 dlen
Definition: XProtocol.hh:414
kXR_char streamid[2]
Definition: XProtocol.hh:515
void ServerResponseHeader2NetFmt(struct ServerResponseHeader *srh)
Definition: XProtocol.hh:247
Definition: XProtocol.hh:376
Definition: XProtocol.hh:395
ServerResponseBody_Redirect redirect
Definition: XProtocol.hh:681
Definition: XProtocol.hh:209
Definition: XProtocol.hh:114
Definition: XProtocol.hh:101
kXR_int32 dlen
Definition: XProtocol.hh:385
Definition: XProtocol.hh:267
kXR_int32 dlen
Definition: XProtocol.hh:374
Definition: XProtocol.hh:77
kXR_char body[16]
Definition: XProtocol.hh:528
Definition: XProtocol.hh:95
Definition: XProtocol.hh:314
Definition: XProtocol.hh:333
Definition: XProtocol.hh:103
kXR_char streamid[2]
Definition: XProtocol.hh:491
Definition: XProtocol.hh:672
kXR_int64 offset
Definition: XProtocol.hh:501
kXR_char reserved[12]
Definition: XProtocol.hh:406
kXR_int32 flags
Definition: XProtocol.hh:608
Definition: XProtocol.hh:631
kXR_unt16 requestid
Definition: XProtocol.hh:442
kXR_char streamid[2]
Definition: XProtocol.hh:458
Definition: XProtocol.hh:525
Definition: XProtocol.hh:245
Definition: XProtocol.hh:188
Definition: XProtocol.hh:121
kXR_unt16 requestid
Definition: XProtocol.hh:389
Definition: XProtocol.hh:142
Definition: XProtocol.hh:128
kXR_int32 ServerResponseType
Definition: XProtocol.hh:710
kXR_char options
Definition: XProtocol.hh:485
kXR_char fhandle[4]
Definition: XProtocol.hh:564
Definition: XProtocol.hh:191
Definition: XProtocol.hh:291
Definition: XProtocol.hh:261
Definition: XProtocol.hh:278
kXR_int32 fifth
Definition: XProtocol.hh:698
XLoginAbility
Definition: XProtocol.hh:137
char parms[4096]
Definition: XProtocol.hh:637
kXR_int32 dlen
Definition: XProtocol.hh:407
kXR_unt16 requestid
Definition: XProtocol.hh:322
Definition: XProtocol.hh:144
kXR_int32 dlen
Definition: XProtocol.hh:503
Definition: XProtocol.hh:186
Definition: XProtocol.hh:133
Definition: XProtocol.hh:196
Definition: XProtocol.hh:297
ServerResponseHeader resphdr
Definition: XProtocol.hh:649
Definition: XProtocol.hh:464
kXR_int32 buffsz
Definition: XProtocol.hh:437
Definition: XProtocol.hh:262
XRequestTypes
Definition: XProtocol.hh:86
Definition: XProtocol.hh:206
kXR_char streamid[2]
Definition: XProtocol.hh:411
kXR_int32 first
Definition: XProtocol.hh:694
kXR_char reserved[15]
Definition: XProtocol.hh:351
kXR_int32 actnum
Definition: XProtocol.hh:659
kXR_int32 dlen
Definition: XProtocol.hh:399
Definition: XProtocol.hh:287
kXR_char streamid[2]
Definition: XProtocol.hh:450
Definition: XProtocol.hh:265
Definition: XProtocol.hh:288
Definition: XProtocol.hh:449
kXR_char streamid[2]
Definition: XProtocol.hh:441
Definition: XProtocol.hh:220
Definition: XProtocol.hh:355
kXR_char sec[4096]
Definition: XProtocol.hh:613
kXR_int32 seconds
Definition: XProtocol.hh:632
Definition: XProtocol.hh:232
Definition: XProtocol.hh:104
Definition: XProtocol.hh:361
XPrepRequestOption
Definition: XProtocol.hh:229
kXR_char streamid[2]
Definition: XProtocol.hh:424
Definition: XProtocol.hh:230
Definition: XProtocol.hh:282
kXR_char streamid[2]
Definition: XProtocol.hh:377
Definition: XProtocol.hh:185
Definition: XProtocol.hh:260
kXR_char streamid[2]
Definition: XProtocol.hh:526
kXR_int32 dlen
Definition: XProtocol.hh:367
Definition: XProtocol.hh:236
Definition: XProtocol.hh:626
Definition: XProtocol.hh:197
XActionCode
Definition: XProtocol.hh:259
kXR_char streamid[2]
Definition: XProtocol.hh:402
kXR_unt16 requestid
Definition: XProtocol.hh:516
kXR_int32 dlen
Definition: XProtocol.hh:495
Definition: XProtocol.hh:457
Definition: XProtocol.hh:658
kXR_char streamid[2]
Definition: XProtocol.hh:370
Definition: XProtocol.hh:143
kXR_char reserved[14]
Definition: XProtocol.hh:373
Definition: XProtocol.hh:93
Definition: XProtocol.hh:91
Definition: XProtocol.hh:251
XOpenRequestOption
Definition: XProtocol.hh:184
Definition: XProtocol.hh:263
ServerResponseBody_Attn attn
Definition: XProtocol.hh:682
kXR_char vertype
Definition: XProtocol.hh:520
Definition: XProtocol.hh:198
kXR_char fhandle[4]
Definition: XProtocol.hh:343
XDirlistRequestOption
Definition: XProtocol.hh:179
int kXR_int32
Definition: XPtypes.hh:62
Definition: XProtocol.hh:192
Definition: XProtocol.hh:693
ServerResponseHeader hdr
Definition: XProtocol.hh:674
Definition: XProtocol.hh:208
kXR_int32 actnum
Definition: XProtocol.hh:647
kXR_char reserved[11]
Definition: XProtocol.hh:486
kXR_unt16 requestid
Definition: XProtocol.hh:329
kXR_int32 dlen
Definition: XProtocol.hh:331
kXR_unt16 mode
Definition: XProtocol.hh:404
kXR_int32 dlen
Definition: XProtocol.hh:488
Definition: XProtocol.hh:201
Definition: XProtocol.hh:289
kXR_int32 protover
Definition: XProtocol.hh:704
kXR_int32 dlen
Definition: XProtocol.hh:359
Definition: XProtocol.hh:532
kXR_char reserved[12]
Definition: XProtocol.hh:494
Definition: XProtocol.hh:482
Definition: XProtocol.hh:702
Definition: XProtocol.hh:285
Definition: XProtocol.hh:286
Definition: XProtocol.hh:194
kXR_char streamid[2]
Definition: XProtocol.hh:362
Definition: XProtocol.hh:621
ServerResponseBody_Buffer buffer
Definition: XProtocol.hh:685
char errmsg[4096]
Definition: XProtocol.hh:623
kXR_char options[1]
Definition: XProtocol.hh:352
kXR_unt16 requestid
Definition: XProtocol.hh:363
kXR_unt16 port
Definition: XProtocol.hh:428
kXR_char pathid
Definition: XProtocol.hh:510
kXR_unt16 requestid
Definition: XProtocol.hh:434
Definition: XProtocol.hh:295
XStatRespFlags
Definition: XProtocol.hh:167
kXR_char reserved[8]
Definition: XProtocol.hh:365
kXR_unt16 requestid
Definition: XProtocol.hh:425
kXR_int32 dlen
Definition: XProtocol.hh:393
kXR_char reserved
Definition: XProtocol.hh:381
Definition: XProtocol.hh:110
kXR_char reserved[15]
Definition: XProtocol.hh:460
kXR_char fhandle[4]
Definition: XProtocol.hh:517
Definition: XProtocol.hh:296
Definition: XProtocol.hh:195
Definition: XProtocol.hh:100
kXR_int32 seconds
Definition: XProtocol.hh:627
kXR_char pathid
Definition: XProtocol.hh:519
kXR_int32 actnum
Definition: XProtocol.hh:654
Definition: XProtocol.hh:292
long long kXR_int64
Definition: XPtypes.hh:71
Definition: XProtocol.hh:207
kXR_int32 actnum
Definition: XProtocol.hh:636
Definition: XProtocol.hh:187
XReqErrorType
Definition: XProtocol.hh:72
kXR_int32 dlen
Definition: XProtocol.hh:325
XStatRequestOption
Definition: XProtocol.hh:163
Definition: XProtocol.hh:112
Definition: XProtocol.hh:224
kXR_unt16 mode
Definition: XProtocol.hh:337
kXR_unt16 requestid
Definition: XProtocol.hh:316
kXR_int32 dlen
Definition: XProtocol.hh:346
Definition: XProtocol.hh:497
kXR_char sessid[16]
Definition: XProtocol.hh:612
kXR_char reserved[16]
Definition: XProtocol.hh:317
Definition: XProtocol.hh:635
char chkszrsp[9-sizeof(ServerResponseHeader)]
Definition: XProtocol.hh:713
kXR_char fhandle[4]
Definition: XProtocol.hh:487
Definition: XProtocol.hh:264
kXR_unt16 options
Definition: XProtocol.hh:372
Definition: XProtocol.hh:387
Definition: XProtocol.hh:111
ServerResponseBody_Authmore authmore
Definition: XProtocol.hh:678
Definition: XProtocol.hh:219
Definition: XProtocol.hh:171
kXR_char fhandle[4]
Definition: XProtocol.hh:500
Definition: XProtocol.hh:616
kXR_unt16 requestid
Definition: XProtocol.hh:466
kXR_char fhandle[4]
Definition: XProtocol.hh:445
kXR_int32 dlen
Definition: XProtocol.hh:318
Definition: XProtocol.hh:115
kXR_int32 clientpv
Definition: XProtocol.hh:419