/usr/share/doc/libglobus-gass-transfer-dev/html/group__globus__gass__transfer__protocol.html is in libglobus-gass-transfer-doc 7.2-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta name="robots" content="noindex">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<!-- THIS FILE IS AUTOMATICALLY GENERATED FROM THE GLOBUS SOURCE CODE
DO NOT MODIFY.
-->
<title>Globus Reference Manual</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head>
<body>
<!-- Generated by Doxygen 1.8.5 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__globus__gass__transfer__protocol.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> |
<a href="#typedef-members">Typedefs</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Protocol Modules</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structglobus__gass__transfer__request__proto__s.html">globus_gass_transfer_request_proto_s</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structglobus__gass__transfer__listener__proto__s.html">globus_gass_transfer_listener_proto_s</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structglobus__gass__transfer__proto__descriptor__t.html">globus_gass_transfer_proto_descriptor_t</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:gaaa1078847d85de85d5b9e4d83cf4a575"><td class="memItemLeft" align="right" valign="top">typedef struct <br class="typebreak"/>
<a class="el" href="structglobus__gass__transfer__request__proto__s.html">globus_gass_transfer_request_proto_s</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gass__transfer__protocol.html#gaaa1078847d85de85d5b9e4d83cf4a575">globus_gass_transfer_request_proto_t</a></td></tr>
<tr class="separator:gaaa1078847d85de85d5b9e4d83cf4a575"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga893db9d9f79492c49f7ac8e147939b1a"><td class="memItemLeft" align="right" valign="top">typedef struct <br class="typebreak"/>
<a class="el" href="structglobus__gass__transfer__listener__proto__s.html">globus_gass_transfer_listener_proto_s</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gass__transfer__protocol.html#ga893db9d9f79492c49f7ac8e147939b1a">globus_gass_transfer_listener_proto_t</a></td></tr>
<tr class="separator:ga893db9d9f79492c49f7ac8e147939b1a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga07dd4dd5d7ef7760438de6aa8f3bdad4"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gass__transfer__protocol.html#ga07dd4dd5d7ef7760438de6aa8f3bdad4">globus_gass_transfer_proto_send_t</a> )(<a class="el" href="group__globus__gass__transfer__protocol.html#gaaa1078847d85de85d5b9e4d83cf4a575">globus_gass_transfer_request_proto_t</a> *proto, <a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> request, globus_byte_t *bytes, globus_size_t send_length, globus_bool_t last_data)</td></tr>
<tr class="separator:ga07dd4dd5d7ef7760438de6aa8f3bdad4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga032bf11045041dc3151f54580e0ef5c4"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gass__transfer__protocol.html#ga032bf11045041dc3151f54580e0ef5c4">globus_gass_transfer_proto_receive_t</a> )(<a class="el" href="group__globus__gass__transfer__protocol.html#gaaa1078847d85de85d5b9e4d83cf4a575">globus_gass_transfer_request_proto_t</a> *proto, <a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> request, globus_byte_t *bytes, globus_size_t bytes_length, globus_size_t wait_for_length)</td></tr>
<tr class="separator:ga032bf11045041dc3151f54580e0ef5c4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaaa0a01e0b020f072dc15fd9deb46f99a"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gass__transfer__protocol.html#gaaa0a01e0b020f072dc15fd9deb46f99a">globus_gass_transfer_proto_func_t</a> )(<a class="el" href="group__globus__gass__transfer__protocol.html#gaaa1078847d85de85d5b9e4d83cf4a575">globus_gass_transfer_request_proto_t</a> *proto, <a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> request)</td></tr>
<tr class="separator:gaaa0a01e0b020f072dc15fd9deb46f99a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa49ac171608bf5379858c8c1106c6d93"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gass__transfer__protocol.html#gaa49ac171608bf5379858c8c1106c6d93">globus_gass_transfer_proto_new_request_t</a> )(<a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> request, globus_gass_transfer_requestattr_t *attr)</td></tr>
<tr class="separator:gaa49ac171608bf5379858c8c1106c6d93"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga67a9a9ff6620102111781ba49c3eeebf"><td class="memItemLeft" align="right" valign="top">typedef int(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gass__transfer__protocol.html#ga67a9a9ff6620102111781ba49c3eeebf">globus_gass_transfer_proto_create_listener_t</a> )(globus_gass_transfer_listener_t listener, globus_gass_transfer_listenerattr_t *attr, char *scheme, char **base_url, <a class="el" href="group__globus__gass__transfer__protocol.html#ga893db9d9f79492c49f7ac8e147939b1a">globus_gass_transfer_listener_proto_t</a> **proto)</td></tr>
<tr class="separator:ga67a9a9ff6620102111781ba49c3eeebf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gadf55877c01a71ad4215787c566b19d08"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gass__transfer__protocol.html#gadf55877c01a71ad4215787c566b19d08">globus_gass_transfer_proto_listener_t</a> )(<a class="el" href="group__globus__gass__transfer__protocol.html#ga893db9d9f79492c49f7ac8e147939b1a">globus_gass_transfer_listener_proto_t</a> *proto, globus_gass_transfer_listener_t listener)</td></tr>
<tr class="separator:gadf55877c01a71ad4215787c566b19d08"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga08596e3286a90eebef68530519a40431"><td class="memItemLeft" align="right" valign="top">typedef globus_object_t *(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gass__transfer__protocol.html#ga08596e3286a90eebef68530519a40431">globus_gass_transfer_proto_new_attr_t</a> )(char *url_scheme)</td></tr>
<tr class="separator:ga08596e3286a90eebef68530519a40431"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad62e21f36ecf72d5ce87967e3c6d2cdb"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gass__transfer__protocol.html#gad62e21f36ecf72d5ce87967e3c6d2cdb">globus_gass_transfer_proto_accept_t</a> )(<a class="el" href="group__globus__gass__transfer__protocol.html#ga893db9d9f79492c49f7ac8e147939b1a">globus_gass_transfer_listener_proto_t</a> *proto, globus_gass_transfer_listener_t listener, <a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> request, globus_gass_transfer_requestattr_t *attr)</td></tr>
<tr class="separator:gad62e21f36ecf72d5ce87967e3c6d2cdb"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga504ed11be998da980c66aa54beaf5872"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gass__transfer__protocol.html#ga504ed11be998da980c66aa54beaf5872">globus_gass_transfer_proto_send_complete</a> (<a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> request, globus_byte_t *bytes, globus_size_t nbytes, globus_bool_t failed, globus_bool_t last_data)</td></tr>
<tr class="separator:ga504ed11be998da980c66aa54beaf5872"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga5ddbe8ac72bc8d742e5edcdd7bcb1812"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gass__transfer__protocol.html#ga5ddbe8ac72bc8d742e5edcdd7bcb1812">globus_gass_transfer_proto_receive_complete</a> (<a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> request, globus_byte_t *bytes, globus_size_t nbytes, globus_bool_t failed, globus_bool_t last_data)</td></tr>
<tr class="separator:ga5ddbe8ac72bc8d742e5edcdd7bcb1812"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4c7f2424daf72260b0629ad6c8b8b1e5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gass__transfer__protocol.html#ga4c7f2424daf72260b0629ad6c8b8b1e5">globus_gass_transfer_proto_listener_ready</a> (globus_gass_transfer_listener_t listener)</td></tr>
<tr class="separator:ga4c7f2424daf72260b0629ad6c8b8b1e5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0458b3b620922d0ad0c50a950a14c40d"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gass__transfer__protocol.html#ga0458b3b620922d0ad0c50a950a14c40d">globus_gass_transfer_proto_register_protocol</a> (<a class="el" href="structglobus__gass__transfer__proto__descriptor__t.html">globus_gass_transfer_proto_descriptor_t</a> *proto_desc)</td></tr>
<tr class="separator:ga0458b3b620922d0ad0c50a950a14c40d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga36927fbdf3d9374e5a0a6d72c00c4de3"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gass__transfer__protocol.html#ga36927fbdf3d9374e5a0a6d72c00c4de3">globus_gass_transfer_proto_unregister_protocol</a> (<a class="el" href="structglobus__gass__transfer__proto__descriptor__t.html">globus_gass_transfer_proto_descriptor_t</a> *proto_desc)</td></tr>
<tr class="separator:ga36927fbdf3d9374e5a0a6d72c00c4de3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga5606790bad7454992afd4d0ae4ce3d6d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gass__transfer__protocol.html#ga5606790bad7454992afd4d0ae4ce3d6d">globus_gass_transfer_proto_request_ready</a> (<a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> request, <a class="el" href="group__globus__gass__transfer__protocol.html#gaaa1078847d85de85d5b9e4d83cf4a575">globus_gass_transfer_request_proto_t</a> *proto)</td></tr>
<tr class="separator:ga5606790bad7454992afd4d0ae4ce3d6d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga517e838bdece326043d00b9b1c48e361"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gass__transfer__protocol.html#ga517e838bdece326043d00b9b1c48e361">globus_gass_transfer_proto_new_listener_request</a> (globus_gass_transfer_listener_t listener, <a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> request, <a class="el" href="group__globus__gass__transfer__protocol.html#gaaa1078847d85de85d5b9e4d83cf4a575">globus_gass_transfer_request_proto_t</a> *proto)</td></tr>
<tr class="separator:ga517e838bdece326043d00b9b1c48e361"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf79e71910ff1d18bb09e51bb1fde7aea"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gass__transfer__protocol.html#gaf79e71910ff1d18bb09e51bb1fde7aea">globus_gass_transfer_proto_request_denied</a> (<a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> request, int reason, char *message)</td></tr>
<tr class="separator:gaf79e71910ff1d18bb09e51bb1fde7aea"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga5fe775f62b3f425ace38383811b637f3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__globus__gass__transfer__protocol.html#ga5fe775f62b3f425ace38383811b637f3">globus_gass_transfer_proto_request_referred</a> (<a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> request, char **url, globus_size_t num_urls)</td></tr>
<tr class="separator:ga5fe775f62b3f425ace38383811b637f3"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Protocol Implementation API. </p>
<p>The GASS Protocol Module API is designed to make it possible to extend the GASS client and server APIs to support additional protocols without making any changes to the core of the GASS implementation. GASS protocol modules are intended to to handle protocol-specific connection and data handling. The GASS Transfer library includes protocol modules which implement the HTTP, HTTPS, FTP, and GSI-FTP protocols.</p>
<p>Every protocol module implementation must include the following header file: </p>
<div class="fragment"><div class="line">* #include <span class="stringliteral">"globus_gass_transfer_proto.h"</span></div>
<div class="line">* </div>
</div><!-- fragment --><p>To implement a protocol module, one must create a <a class="el" href="structglobus__gass__transfer__proto__descriptor__t.html" title="Protocol module descriptor structure. ">globus_gass_transfer_proto_descriptor_t</a> structure which indicates what the protocol module is able to do. This structure contains the URL scheme which the protocol module supports, and function pointers which indicate what type of operations (client or server) that the module implements. To implement a client-side protocol module, the new_requestattr and new_request fields must be set to the protocol module's implementations of those functions. To implement a server-side protocol module, the new_listenerattr and new_listener functions must be set to the protocol module's implementations of those functions.</p>
<p>A protocol module implementor registers a protocol module with the GASS Transfer library by calling the function <a class="el" href="group__globus__gass__transfer__protocol.html#ga0458b3b620922d0ad0c50a950a14c40d" title="Register protocol. ">globus_gass_transfer_proto_register_protocol()</a>, and unregisters the module by calling <a class="el" href="group__globus__gass__transfer__protocol.html#ga36927fbdf3d9374e5a0a6d72c00c4de3" title="Unregister protocol. ">globus_gass_transfer_proto_unregister_protocol()</a>. This functions must be called after the <a class="el" href="group__globus__gass__transfer__activation.html#ga3c4edff0d27f1038ef7d8df297d205ea" title="Module descriptor. ">GLOBUS_GASS_TRANSFER_MODULE</a> has already been activated. Once registered, applications may use URLs of the scheme type provided by the protocol module for the standard <a class="el" href="group__globus__gass__transfer__client.html">client</a> or <a class="el" href="group__globus__gass__transfer__server.html">server</a> operations. </p>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="gaaa1078847d85de85d5b9e4d83cf4a575"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="structglobus__gass__transfer__request__proto__s.html">globus_gass_transfer_request_proto_s</a> <a class="el" href="group__globus__gass__transfer__protocol.html#gaaa1078847d85de85d5b9e4d83cf4a575">globus_gass_transfer_request_proto_t</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Protocol module request handling structure. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="structglobus__gass__transfer__request__proto__s.html" title="Protocol module request handling structure. ">globus_gass_transfer_request_proto_s</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga893db9d9f79492c49f7ac8e147939b1a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="structglobus__gass__transfer__listener__proto__s.html">globus_gass_transfer_listener_proto_s</a> <a class="el" href="group__globus__gass__transfer__protocol.html#ga893db9d9f79492c49f7ac8e147939b1a">globus_gass_transfer_listener_proto_t</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Protocol module listener handling structure. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="structglobus__gass__transfer__listener__proto__s.html" title="Protocol module listener handling structure. ">globus_gass_transfer_listener_proto_s</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga07dd4dd5d7ef7760438de6aa8f3bdad4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void(* globus_gass_transfer_proto_send_t)(<a class="el" href="group__globus__gass__transfer__protocol.html#gaaa1078847d85de85d5b9e4d83cf4a575">globus_gass_transfer_request_proto_t</a> *proto, <a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> request, globus_byte_t *bytes, globus_size_t send_length, globus_bool_t last_data)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Protocol module function type to handle sending data. </p>
<p>A function pointer of this type is associated with the <a class="el" href="group__globus__gass__transfer__protocol.html#gaaa1078847d85de85d5b9e4d83cf4a575" title="Protocol module request handling structure. ">globus_gass_transfer_request_proto_t</a> associated with a request handle. It is called when client or server has registered a bytes array for sending to the client or server which is handling the request. The GASS Transfer Library will only pass one <em>bytes</em> array to the protocol module for processing per request at any given time.</p>
<p>Once the protocol module has processed the array, it must call <a class="el" href="group__globus__gass__transfer__protocol.html#ga504ed11be998da980c66aa54beaf5872" title="Data send complete. ">globus_gass_transfer_proto_send_complete()</a> to let the GASS Transfer library continue to process the request.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">proto</td><td>The protocol module's request handler. </td></tr>
<tr><td class="paramname">request</td><td>The request handle with which this block of bytes is associated. </td></tr>
<tr><td class="paramname">bytes</td><td>The user-supplied byte array containing the data associated with the request. </td></tr>
<tr><td class="paramname">bytes_length</td><td>The length of the <em>bytes</em> array. </td></tr>
<tr><td class="paramname">last_data</td><td>A flag to indicate whether this is the final block of data for the request. If this is true, then the <em>callback</em> function will be delayed until the server acknowledges that the file has been completely received. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="group__globus__gass__transfer__data.html#gaf9fafa443774f59abd5a6584bdeee646" title="Send a byte array associated with a request handle. ">globus_gass_transfer_send_bytes()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga032bf11045041dc3151f54580e0ef5c4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void(* globus_gass_transfer_proto_receive_t)(<a class="el" href="group__globus__gass__transfer__protocol.html#gaaa1078847d85de85d5b9e4d83cf4a575">globus_gass_transfer_request_proto_t</a> *proto, <a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> request, globus_byte_t *bytes, globus_size_t bytes_length, globus_size_t wait_for_length)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Protocol module function type to handle receiving data. </p>
<p>A function pointer of this type is associated with the <a class="el" href="group__globus__gass__transfer__protocol.html#gaaa1078847d85de85d5b9e4d83cf4a575" title="Protocol module request handling structure. ">globus_gass_transfer_request_proto_t</a> associated with a request handle. It is called when client or server has registered a bytes array for receiving from the client or server which is handling the request. The GASS Transfer Library will only pass one <em>bytes</em> array to the protocol module for processing per request at any given time.</p>
<p>Once the protocol module has processed the array, it must call <a class="el" href="group__globus__gass__transfer__protocol.html#ga5ddbe8ac72bc8d742e5edcdd7bcb1812" title="Data receive complete. ">globus_gass_transfer_proto_receive_complete()</a> to let the GASS Transfer library continue to process the request.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">proto</td><td>The protocol module's request handler. </td></tr>
<tr><td class="paramname">request</td><td>The request handle with which this block of bytes is associated. </td></tr>
<tr><td class="paramname">bytes</td><td>The user-supplied byte array containing the data associated with the request. </td></tr>
<tr><td class="paramname">bytes_length</td><td>The length of the <em>bytes</em> array. </td></tr>
<tr><td class="paramname">wait_for_length</td><td>The minimum amount of data to receive before calling <a class="el" href="group__globus__gass__transfer__protocol.html#ga5ddbe8ac72bc8d742e5edcdd7bcb1812" title="Data receive complete. ">globus_gass_transfer_proto_receive_complete()</a> for the request. The GASS Transfer protocol module may call that function with a smaller value for the amount received if EOF has been reached. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="group__globus__gass__transfer__data.html#gacd7c5a82e0018c76dfce993035a5bf6a" title="Receive a byte array associated with a request handle. ">globus_gass_transfer_receive_bytes()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gaaa0a01e0b020f072dc15fd9deb46f99a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void(* globus_gass_transfer_proto_func_t)(<a class="el" href="group__globus__gass__transfer__protocol.html#gaaa1078847d85de85d5b9e4d83cf4a575">globus_gass_transfer_request_proto_t</a> *proto, <a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> request)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Protocol module implementation function type. </p>
<p>Function pointers of this type are associated with the <a class="el" href="group__globus__gass__transfer__protocol.html#gaaa1078847d85de85d5b9e4d83cf4a575" title="Protocol module request handling structure. ">globus_gass_transfer_request_proto_t</a> associated with a particular request handle. They are called when certain functions which modify the status of a request have been called by a client or server.</p>
<p>A function of this type is used for the fail, deny, refer, authorize, and destroy fields of the <a class="el" href="group__globus__gass__transfer__protocol.html#gaaa1078847d85de85d5b9e4d83cf4a575" title="Protocol module request handling structure. ">globus_gass_transfer_request_proto_t</a>. A protocol module can query the request handle to determine the status and, if applicable, denial reasons if necessary.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">proto</td><td>The protocol module's request handler. </td></tr>
<tr><td class="paramname">request</td><td>The request handle. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="gaa49ac171608bf5379858c8c1106c6d93"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void(* globus_gass_transfer_proto_new_request_t)(<a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> request, globus_gass_transfer_requestattr_t *attr)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Protocol module implementation function type for new client requests. </p>
<p>A function pointer of this type is associated with the <a class="el" href="structglobus__gass__transfer__proto__descriptor__t.html" title="Protocol module descriptor structure. ">globus_gass_transfer_proto_descriptor_t</a> for a particular protocol module's implementation. It is called when the client has begun a file transfer request by calling one of the functions in the "@ref globus_gass_transfer_client" section of this manual.</p>
<p>When this function is called for a protocol module, the module should query the request handle to determine the URL which is being requested by the client, and the operation being done on that URL. The protocol module should initiate the request, and once it has determined that it has been authorized, denied, or referred, one of <a class="el" href="group__globus__gass__transfer__protocol.html#ga5606790bad7454992afd4d0ae4ce3d6d" title="Request ready. ">globus_gass_transfer_proto_request_ready()</a>, <a class="el" href="group__globus__gass__transfer__protocol.html#gaf79e71910ff1d18bb09e51bb1fde7aea" title="Request denied. ">globus_gass_transfer_proto_request_denied()</a>, or <a class="el" href="group__globus__gass__transfer__protocol.html#ga5fe775f62b3f425ace38383811b637f3" title="Request referred. ">globus_gass_transfer_proto_request_referred()</a> must be called.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">request</td><td>The request handle containing the information about the request. </td></tr>
<tr><td class="paramname">attr</td><td>A protocol-specific attribute set, created by calling the protocol module's <a class="el" href="structglobus__gass__transfer__proto__descriptor__t.html#acd75372874ae7c590ebe8562777241ed">new_requestattr function pointer</a>. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga67a9a9ff6620102111781ba49c3eeebf"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef int(* globus_gass_transfer_proto_create_listener_t)(globus_gass_transfer_listener_t listener, globus_gass_transfer_listenerattr_t *attr, char *scheme, char **base_url, <a class="el" href="group__globus__gass__transfer__protocol.html#ga893db9d9f79492c49f7ac8e147939b1a">globus_gass_transfer_listener_proto_t</a> **proto)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Protocol module implementation function type for new server listeners. </p>
<p>A function pointer of this type is associated with the <a class="el" href="structglobus__gass__transfer__proto__descriptor__t.html" title="Protocol module descriptor structure. ">globus_gass_transfer_proto_descriptor_t</a> for a particular protocol module's implementation. It is called when the server has called <a class="el" href="group__globus__gass__transfer__server.html#ga7a1f665a5bded635bbfc827fb19f8cfb" title="Create a new protocol-specific listener socket for a GASS server. ">globus_gass_transfer_create_listener()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">listener</td><td>The listener handle to assocate with the new <em>proto</em> created by the protocol module. </td></tr>
<tr><td class="paramname">attr</td><td>A protocol-specific attribute set, created by calling the protocol module's <a class="el" href="structglobus__gass__transfer__proto__descriptor__t.html#a5f5d98eb70200a3c03b0d079eea80648">new_listenerattr function pointer</a>. </td></tr>
<tr><td class="paramname">scheme</td><td>The URL scheme that the server has requested for the new listener. This will be one the scheme associated with a particular protocol module. </td></tr>
<tr><td class="paramname">base_url</td><td>A pointer to be set the value of the base url of this listener. For most protocols, this will contain the scheme, hostname, and port number of the listener. This string must be allocated using one of the memory allocators defined in the globus_common library. It will be freed by the GASS Transfer library when the listener is closed. </td></tr>
<tr><td class="paramname">proto</td><td>A pointer to be set to a new globus_gass_transfer_listener_proto_t which will be associated with this listener. This must be allocated by the protocol module using one of the memory allocators defined in the globus_common library. It will be freed by the GASS Transfer library when the listener is closed.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A GASS error value, or GLOBUS_SUCCESS. </dd></dl>
</div>
</div>
<a class="anchor" id="gadf55877c01a71ad4215787c566b19d08"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void(* globus_gass_transfer_proto_listener_t)(<a class="el" href="group__globus__gass__transfer__protocol.html#ga893db9d9f79492c49f7ac8e147939b1a">globus_gass_transfer_listener_proto_t</a> *proto, globus_gass_transfer_listener_t listener)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Protocol module implementation function type for server operations. </p>
<p>Function pointers of this type are associated with the <a class="el" href="group__globus__gass__transfer__protocol.html#ga893db9d9f79492c49f7ac8e147939b1a" title="Protocol module listener handling structure. ">globus_gass_transfer_listener_proto_t</a> associated with a particular listener handle. They are called when a server implementation wants to close the listener, listen for new connections, or destroy the listener.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">proto</td><td>The protocol-specific implementation of the <a class="el" href="group__globus__gass__transfer__protocol.html#ga893db9d9f79492c49f7ac8e147939b1a" title="Protocol module listener handling structure. ">globus_gass_transfer_listener_proto_t</a> for a particular listener. </td></tr>
<tr><td class="paramname">listener</td><td>The listener handle associated with the <em>proto</em>. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="group__globus__gass__transfer__protocol.html#ga67a9a9ff6620102111781ba49c3eeebf" title="Protocol module implementation function type for new server listeners. ">globus_gass_transfer_proto_create_listener_t</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga08596e3286a90eebef68530519a40431"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef globus_object_t*(* globus_gass_transfer_proto_new_attr_t)(char *url_scheme)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Protocol module implementation function type for attribute creation. </p>
<p>A function pointer of this type is associated with the <a class="el" href="structglobus__gass__transfer__proto__descriptor__t.html" title="Protocol module descriptor structure. ">globus_gass_transfer_proto_descriptor_t</a> defining a protocol module. It is called when a client requests a new request attribute set be created for a URL scheme handled by a protocol module. The function implementation must create a new request attribute usuable by the protocol.</p>
<p>The returned attribute must be a globus object which inherits from one of the base attributes defined in the GASS Transfer API. A client or server operation will use a request attribute generated by this function when creating a new <a class="el" href="group__globus__gass__transfer__protocol.html#gaaa1078847d85de85d5b9e4d83cf4a575" title="Protocol module request handling structure. ">globus_gass_transfer_request_proto_t</a> to handle a request.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">url_scheme</td><td>The URL scheme that the request attribute should be compatible with.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A globus_object_t-based request attribute.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="group__globus__gass__transfer__protocol.html#gaa49ac171608bf5379858c8c1106c6d93" title="Protocol module implementation function type for new client requests. ">globus_gass_transfer_proto_new_request_t</a>, <a class="el" href="group__globus__gass__transfer__protocol.html#gad62e21f36ecf72d5ce87967e3c6d2cdb" title="Protocol module implementation function type for server request parsing. ">globus_gass_transfer_proto_accept_t</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gad62e21f36ecf72d5ce87967e3c6d2cdb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void(* globus_gass_transfer_proto_accept_t)(<a class="el" href="group__globus__gass__transfer__protocol.html#ga893db9d9f79492c49f7ac8e147939b1a">globus_gass_transfer_listener_proto_t</a> *proto, globus_gass_transfer_listener_t listener, <a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> request, globus_gass_transfer_requestattr_t *attr)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Protocol module implementation function type for server request parsing. </p>
<p>Function pointers of this type are associated with the <a class="el" href="group__globus__gass__transfer__protocol.html#ga893db9d9f79492c49f7ac8e147939b1a" title="Protocol module listener handling structure. ">globus_gass_transfer_listener_proto_t</a> associated with a particular listener handle. They are called when a server implementation wants to accept a new connection from the listener. A new request is generated based on the protocol-specific request done on the new connection.</p>
<p>The new request will be created with the attributes specified in the <em>attr</em> parameter. Once the protocol module has parsed the request, it must call <a class="el" href="group__globus__gass__transfer__protocol.html#ga517e838bdece326043d00b9b1c48e361" title="New listener request. ">globus_gass_transfer_proto_new_listener_request()</a> to let the server implementation decide how to process this request.</p>
<p>The protocol module should update the <em>request</em> to indicate the type of operation being requested, the size of the file (if applicable), and the identity of the client (if applicable).</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">proto</td><td>The protocol specific listener data structure associated with the listener handle. </td></tr>
<tr><td class="paramname">listener</td><td>The listener handle which the user requested the listen on. </td></tr>
<tr><td class="paramname">request</td><td>The new request handle. </td></tr>
<tr><td class="paramname">attr</td><td>The request attribute set to be used when processing this request. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga504ed11be998da980c66aa54beaf5872"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void globus_gass_transfer_proto_send_complete </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> </td>
<td class="paramname"><em>request</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">globus_byte_t * </td>
<td class="paramname"><em>bytes</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">globus_size_t </td>
<td class="paramname"><em>nbytes</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">globus_bool_t </td>
<td class="paramname"><em>failed</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">globus_bool_t </td>
<td class="paramname"><em>last_data</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Data send complete. </p>
<p>A protocol module must call this function once a byte range registered for sending via the protocol module's send_buffer method has been completely processed. This function is called for protocol modules implementing either server or client functionality.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">request</td><td>The request handle associated with this byte array. </td></tr>
<tr><td class="paramname">bytes</td><td>The byte array which was sent. This should be the same as the pointer passed in the send_buffer method. </td></tr>
<tr><td class="paramname">nbytes</td><td>The number of bytes which were sent from this byte array. This may be different than length passed to the send_buffer method if an error occurred. </td></tr>
<tr><td class="paramname">failed</td><td>A boolean indicating whether this byte range was successfully sent or not. This should be set to <em>GLOBUS_TRUE</em> if either a protocol error or a user-generated abort has occurred while processing the byte range. If this is set to <em>GLOBUS_TRUE</em>, then the <em>last_data</em> parameter must also be set to <em>GLOBUS_TRUE</em>. </td></tr>
<tr><td class="paramname">last_data</td><td>A boolean indicating whether this byte range was the final one which can be processed for this request. This should be set to <em>GLOBUS_TRUE</em> if an error occurred while processing this byte range, and user-generated abort occurred, or this is the final byte range in the data transfer.</td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="group__globus__gass__transfer__data.html#gaf9fafa443774f59abd5a6584bdeee646" title="Send a byte array associated with a request handle. ">globus_gass_transfer_send_bytes()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga5ddbe8ac72bc8d742e5edcdd7bcb1812"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void globus_gass_transfer_proto_receive_complete </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> </td>
<td class="paramname"><em>request</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">globus_byte_t * </td>
<td class="paramname"><em>bytes</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">globus_size_t </td>
<td class="paramname"><em>nbytes</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">globus_bool_t </td>
<td class="paramname"><em>failed</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">globus_bool_t </td>
<td class="paramname"><em>last_data</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Data receive complete. </p>
<p>A protocol module must call this function once a byte range registered for receive via the protocol module's recv_buffer method has been completely processed. This function is called for protocol modules implementing either server or client functionality.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">request</td><td>The request handle associated with this byte array. </td></tr>
<tr><td class="paramname">bytes</td><td>The byte array which was received into. This should be the same as the pointer passed in the send_buffer method. </td></tr>
<tr><td class="paramname">nbytes</td><td>The number of bytes which were sent from this byte array. This may be different than length passed to the send_buffer method if an error occurred or EOF was reached while receiving the data. </td></tr>
<tr><td class="paramname">failed</td><td>A boolean indicating whether this byte range was successfully received or not. This should be set to <em>GLOBUS_TRUE</em> if either a protocol error or a user-generated abort has occurred while processing the byte range. If this is set to <em>GLOBUS_TRUE</em>, then the <em>last_data</em> parameter must also be set to <em>GLOBUS_TRUE</em>. </td></tr>
<tr><td class="paramname">last_data</td><td>A boolean indicating whether this byte range was the final one which can be processed for this request. This should be set to <em>GLOBUS_TRUE</em> if an error occurred while processing this byte range, and user-generated abort occurred, or this is the final byte range in the data transfer.</td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="group__globus__gass__transfer__data.html#gaf9fafa443774f59abd5a6584bdeee646" title="Send a byte array associated with a request handle. ">globus_gass_transfer_send_bytes()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga4c7f2424daf72260b0629ad6c8b8b1e5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void globus_gass_transfer_proto_listener_ready </td>
<td>(</td>
<td class="paramtype">globus_gass_transfer_listener_t </td>
<td class="paramname"><em>listener</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Server listener ready. </p>
<p>This function notifies the GASS Transfer Library that the protocol module has decided that a new request can be accepted on this particular listener. It must only be called after the GASS Transfer Library has called the <a class="el" href="structglobus__gass__transfer__listener__proto__s.html#adaeeaaa668decf8bdb8d2346d174229d">listen function</a> in a <a class="el" href="group__globus__gass__transfer__protocol.html#ga893db9d9f79492c49f7ac8e147939b1a" title="Protocol module listener handling structure. ">globus_gass_transfer_listener_proto_t</a> protocol module-specific listener structure.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">listener</td><td>The listener handle which is now ready for accepting a new connection. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga0458b3b620922d0ad0c50a950a14c40d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int globus_gass_transfer_proto_register_protocol </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structglobus__gass__transfer__proto__descriptor__t.html">globus_gass_transfer_proto_descriptor_t</a> * </td>
<td class="paramname"><em>proto_desc</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Register protocol. </p>
<p>This function registers a protocol module handler with the GASS Transfer library. If this succeeds, then users of the library may use the URLs with the protocol scheme implemented by this module descriptor in GASS Transfer operations.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">proto_desc</td><td>The protocol module descriptor. See the "@ref
globus_gass_transfer_protocol" section of the manual for information on this structure.</td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">GLOBUS_SUCCESS</td><td>The protocol module was successfully registered with GASS. </td></tr>
<tr><td class="paramname">GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER</td><td>The <em>proto_desc</em> parameter was <em>GLOBUS_NULL</em>. </td></tr>
<tr><td class="paramname">GLOBUS_GASS_TRANSFER_ERROR_ALREADY_REGISTERED</td><td>A protocol module has already been registered with GASS to handle this URL scheme. </td></tr>
</table>
</dd>
</dl>
<p>References <a class="el" href="structglobus__gass__transfer__proto__descriptor__t.html#a75e1a7af4cfbc63c983bfdad79a30d50">globus_gass_transfer_proto_descriptor_t::url_scheme</a>.</p>
</div>
</div>
<a class="anchor" id="ga36927fbdf3d9374e5a0a6d72c00c4de3"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int globus_gass_transfer_proto_unregister_protocol </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structglobus__gass__transfer__proto__descriptor__t.html">globus_gass_transfer_proto_descriptor_t</a> * </td>
<td class="paramname"><em>proto_desc</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Unregister protocol. </p>
<p>This function unregisters a protocol module handler from the GASS Transfer library. If this succeeds, then users of the library may no longer user URLs with the protocol scheme implemented by this module descriptor in GASS Transfer operations.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">proto_desc</td><td>The protocol module descriptor. See the "@ref
globus_gass_transfer_protocol" section of the manual for information on this structure.</td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">GLOBUS_SUCCESS</td><td>The protocol module was successfully registered with GASS. </td></tr>
<tr><td class="paramname">GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER</td><td>The <em>proto_desc</em> parameter was <em>GLOBUS_NULL</em>. </td></tr>
<tr><td class="paramname">GLOBUS_GASS_TRANSFER_ERROR_INVALID_USE</td><td>A protocol module has not been registered with GASS to handle this URL scheme. </td></tr>
</table>
</dd>
</dl>
<p>References <a class="el" href="structglobus__gass__transfer__proto__descriptor__t.html#a75e1a7af4cfbc63c983bfdad79a30d50">globus_gass_transfer_proto_descriptor_t::url_scheme</a>.</p>
</div>
</div>
<a class="anchor" id="ga5606790bad7454992afd4d0ae4ce3d6d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void globus_gass_transfer_proto_request_ready </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> </td>
<td class="paramname"><em>request</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__globus__gass__transfer__protocol.html#gaaa1078847d85de85d5b9e4d83cf4a575">globus_gass_transfer_request_proto_t</a> * </td>
<td class="paramname"><em>proto</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Request ready. </p>
<p>This function notifies the GASS Transfer Library that new request generated by a client has begun processing in a protocol module, and that protocol module is now ready to send or receive data to handle this request.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">request</td><td>The request handle used for this request. This was created by the user calling one of the functions in the "@ref
globus_gass_transfer_client" section of this manual. </td></tr>
<tr><td class="paramname">proto</td><td>The protocol-module specific request structure. This structure contains a set of function pointers to allow GASS to continue to process this request.</td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="group__globus__gass__transfer__protocol.html#ga5fe775f62b3f425ace38383811b637f3" title="Request referred. ">globus_gass_transfer_proto_request_referred()</a>, <a class="el" href="group__globus__gass__transfer__protocol.html#gaf79e71910ff1d18bb09e51bb1fde7aea" title="Request denied. ">globus_gass_transfer_proto_request_denied()</a> </dd></dl>
<p>References <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5a8051bd31d3f57ca3ef4d385bd6b9b9f3">GLOBUS_GASS_TRANSFER_REQUEST_DENIED</a>, <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5af2d7d1108388b66e5e8b9af0fb89ab6c">GLOBUS_GASS_TRANSFER_REQUEST_DONE</a>, <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5a36f2ab83f649fdda5ce2d7a52f0c8bf5">GLOBUS_GASS_TRANSFER_REQUEST_FAILED</a>, <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5ade06f705dc33c762108a6f9b8340878a">GLOBUS_GASS_TRANSFER_REQUEST_INVALID</a>, <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5af4da259b0651a2fd9dea08179c083da4">GLOBUS_GASS_TRANSFER_REQUEST_PENDING</a>, <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5a7c3742c6941000d4c5a60662ff9c02b2">GLOBUS_GASS_TRANSFER_REQUEST_REFERRED</a>, <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5a3036a3bafba31ef8a63a2d63b34bcd1b">GLOBUS_GASS_TRANSFER_REQUEST_STARTING</a>, <a class="el" href="group__globus__gass__transfer__request.html#gga5602a52b98af47f77e032fcdd913957fa97544dc3720e5c09efd1517b12a396ce">GLOBUS_GASS_TRANSFER_REQUEST_TYPE_APPEND</a>, and <a class="el" href="group__globus__gass__transfer__request.html#gga5602a52b98af47f77e032fcdd913957fac5675a8c4b950712e27dcec83192e628">GLOBUS_GASS_TRANSFER_REQUEST_TYPE_PUT</a>.</p>
</div>
</div>
<a class="anchor" id="ga517e838bdece326043d00b9b1c48e361"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void globus_gass_transfer_proto_new_listener_request </td>
<td>(</td>
<td class="paramtype">globus_gass_transfer_listener_t </td>
<td class="paramname"><em>listener</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> </td>
<td class="paramname"><em>request</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__globus__gass__transfer__protocol.html#gaaa1078847d85de85d5b9e4d83cf4a575">globus_gass_transfer_request_proto_t</a> * </td>
<td class="paramname"><em>proto</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>New listener request. </p>
<p>This function notifies the GASS Transfer Library that new request generated by a server calling the <a class="el" href="group__globus__gass__transfer__server.html#gab4e154bc89c309651d030399cf5b7ec3" title="Accept new client connections. ">globus_gass_transfer_register_accept()</a> function has begun processing in a protocol module, and that protocol module is now ready to send or receive data to handle this request.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">listener</td><td>The listener handle used to accept this request. </td></tr>
<tr><td class="paramname">request</td><td>The request handle used for this request. This was created by the user calling one of the functions in the "@ref
globus_gass_transfer_client" section of this manual. </td></tr>
<tr><td class="paramname">proto</td><td>The protocol-module specific request structure. This structure contains a set of function pointers to allow GASS to continue to process this request. </td></tr>
</table>
</dd>
</dl>
<p>References <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5a36f2ab83f649fdda5ce2d7a52f0c8bf5">GLOBUS_GASS_TRANSFER_REQUEST_FAILED</a>, and <a class="el" href="group__globus__gass__transfer__request.html#gga5602a52b98af47f77e032fcdd913957fa419bb60ecf5c1b77f568cbf75aae4849">GLOBUS_GASS_TRANSFER_REQUEST_TYPE_INVALID</a>.</p>
</div>
</div>
<a class="anchor" id="gaf79e71910ff1d18bb09e51bb1fde7aea"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void globus_gass_transfer_proto_request_denied </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> </td>
<td class="paramname"><em>request</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>reason</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>message</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Request denied. </p>
<p>This function notifies the GASS Transfer Library that new request generated by a client calling one of the functions in the "@ref globus_gass_transfer_client" section of the manual has been denied by the server, and so cannot be processed by the protocol module.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">request</td><td>The request handle used for this request. This was created by the user calling one of the functions in the "@ref
globus_gass_transfer_client" section of this manual. </td></tr>
<tr><td class="paramname">reason</td><td>A protocol-specific reason code. </td></tr>
<tr><td class="paramname">message</td><td>A string containing a message describing why the request was denied. The GASS Transfer library is responsible for freeing this message. It must be allocated using one of the memory allocators defined in the Globus Common Library.</td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="group__globus__gass__transfer__protocol.html#ga5606790bad7454992afd4d0ae4ce3d6d" title="Request ready. ">globus_gass_transfer_proto_request_ready()</a>, <a class="el" href="group__globus__gass__transfer__protocol.html#ga5fe775f62b3f425ace38383811b637f3" title="Request referred. ">globus_gass_transfer_proto_request_referred()</a> </dd></dl>
<p>References <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5a8051bd31d3f57ca3ef4d385bd6b9b9f3">GLOBUS_GASS_TRANSFER_REQUEST_DENIED</a>, <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5af2d7d1108388b66e5e8b9af0fb89ab6c">GLOBUS_GASS_TRANSFER_REQUEST_DONE</a>, <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5a36f2ab83f649fdda5ce2d7a52f0c8bf5">GLOBUS_GASS_TRANSFER_REQUEST_FAILED</a>, <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5ade06f705dc33c762108a6f9b8340878a">GLOBUS_GASS_TRANSFER_REQUEST_INVALID</a>, <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5af4da259b0651a2fd9dea08179c083da4">GLOBUS_GASS_TRANSFER_REQUEST_PENDING</a>, <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5a7c3742c6941000d4c5a60662ff9c02b2">GLOBUS_GASS_TRANSFER_REQUEST_REFERRED</a>, and <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5a3036a3bafba31ef8a63a2d63b34bcd1b">GLOBUS_GASS_TRANSFER_REQUEST_STARTING</a>.</p>
</div>
</div>
<a class="anchor" id="ga5fe775f62b3f425ace38383811b637f3"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void globus_gass_transfer_proto_request_referred </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structglobus__gass__transfer__request__t.html">globus_gass_transfer_request_t</a> </td>
<td class="paramname"><em>request</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char ** </td>
<td class="paramname"><em>url</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">globus_size_t </td>
<td class="paramname"><em>num_urls</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Request referred. </p>
<p>This function notifies the GASS Transfer Library that new request generated by a client calling one of the functions in the "@ref globus_gass_transfer_client" section of the manual has been referred to another URL by the server, and so processing has stopped.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">request</td><td>The request handle used for this request. This was created by the user calling one of the functions in the "@ref
globus_gass_transfer_client" section of this manual. </td></tr>
<tr><td class="paramname">url</td><td>An array of url strings containing alternate locations for this file. The GASS transfer library is responsible for freeing this array. It must be allocated using one of the memory allocators defined in the Globus Common Library. </td></tr>
<tr><td class="paramname">num_urls</td><td>The length of the <em>url</em> array.</td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="group__globus__gass__transfer__protocol.html#ga5606790bad7454992afd4d0ae4ce3d6d" title="Request ready. ">globus_gass_transfer_proto_request_ready()</a>, <a class="el" href="group__globus__gass__transfer__protocol.html#gaf79e71910ff1d18bb09e51bb1fde7aea" title="Request denied. ">globus_gass_transfer_proto_request_denied()</a>, <a class="el" href="group__globus__gass__transfer__protocol.html#ga5fe775f62b3f425ace38383811b637f3" title="Request referred. ">globus_gass_transfer_proto_request_referred()</a> </dd></dl>
<p>References <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5a8051bd31d3f57ca3ef4d385bd6b9b9f3">GLOBUS_GASS_TRANSFER_REQUEST_DENIED</a>, <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5af2d7d1108388b66e5e8b9af0fb89ab6c">GLOBUS_GASS_TRANSFER_REQUEST_DONE</a>, <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5a36f2ab83f649fdda5ce2d7a52f0c8bf5">GLOBUS_GASS_TRANSFER_REQUEST_FAILED</a>, <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5ade06f705dc33c762108a6f9b8340878a">GLOBUS_GASS_TRANSFER_REQUEST_INVALID</a>, <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5af4da259b0651a2fd9dea08179c083da4">GLOBUS_GASS_TRANSFER_REQUEST_PENDING</a>, <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5a7c3742c6941000d4c5a60662ff9c02b2">GLOBUS_GASS_TRANSFER_REQUEST_REFERRED</a>, and <a class="el" href="group__globus__gass__transfer__request.html#ggaaa671d5ef2fae5a7034e0624c3bbc1b5a3036a3bafba31ef8a63a2d63b34bcd1b">GLOBUS_GASS_TRANSFER_REQUEST_STARTING</a>.</p>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<hr>
<p align="center">
<a href="http://www.globus.org/toolkit/about.html" target="_top">about globus</a> |
<a href="http://www.globus.org/toolkit/" target="_top">globus toolkit</a> |
<a href="https://dev.globus.org/wiki/Welcome/" target="_top">dev.globus</a>
<br>
<br>
Comments? <a href="mailto:webmaster@globus.org">webmaster@globus.org</a>
</body>
</html>
|