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 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Class: Fam::Connection</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
<script type="text/javascript">
// <![CDATA[
function popupCode( url ) {
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
}
function toggleCode( id ) {
if ( document.getElementById )
elem = document.getElementById( id );
else if ( document.all )
elem = eval( "document.all." + id );
else
return false;
elemStyle = elem.style;
if ( elemStyle.display != "block" ) {
elemStyle.display = "block"
} else {
elemStyle.display = "none"
}
return true;
}
// Make codeblocks hidden by default
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
// ]]>
</script>
</head>
<body>
<div id="classHeader">
<table class="header-table">
<tr class="top-aligned-row">
<td><strong>Class</strong></td>
<td class="class-name-in-header">Fam::Connection</td>
</tr>
<tr class="top-aligned-row">
<td><strong>In:</strong></td>
<td>
<a href="../../files/fam_c.html">
fam.c
</a>
(<a href="http://cvs.pablotron.org/cgi-bin/viewcvs.cgi/fam-ruby/fam.c">CVS</a>)
<br />
</td>
</tr>
<tr class="top-aligned-row">
<td><strong>Parent:</strong></td>
<td>
Data
</td>
</tr>
</table>
</div>
<!-- banner header -->
<div id="bodyContent">
<div id="contextContent">
</div>
<div id="method-list">
<h3 class="section-bar">Methods</h3>
<div class="name-list">
<a href="#M000047">cancel</a>
<a href="#M000032">cancel_monitor</a>
<a href="#M000026">close</a>
<a href="#M000044">col</a>
<a href="#M000043">collection</a>
<a href="#M000051">debug=</a>
<a href="#M000035">debug_level=</a>
<a href="#M000053">descriptor</a>
<a href="#M000040">dir</a>
<a href="#M000039">directory</a>
<a href="#M000049">ev</a>
<a href="#M000036">fd</a>
<a href="#M000041">file</a>
<a href="#M000052">get_descriptor</a>
<a href="#M000054">get_fd</a>
<a href="#M000042">monitor_col</a>
<a href="#M000029">monitor_collection</a>
<a href="#M000038">monitor_dir</a>
<a href="#M000027">monitor_directory</a>
<a href="#M000028">monitor_file</a>
<a href="#M000025">new</a>
<a href="#M000022">new</a>
<a href="#M000048">next_ev</a>
<a href="#M000033">next_event</a>
<a href="#M000037">no_exists</a>
<a href="#M000023">open</a>
<a href="#M000024">open2</a>
<a href="#M000050">pending</a>
<a href="#M000034">pending?</a>
<a href="#M000046">resume</a>
<a href="#M000031">resume_monitor</a>
<a href="#M000045">suspend</a>
<a href="#M000030">suspend_monitor</a>
</div>
</div>
</div>
<!-- if includes -->
<div id="section">
<!-- if method_list -->
<div id="methods">
<h3 class="section-bar">Public Class methods</h3>
<div id="method-M000025" class="method-detail">
<a name="M000025"></a>
<div class="method-heading">
<a href="Connection.src/M000025.html" target="Code" class="method-signature"
onclick="popupCode('Connection.src/M000025.html');return false;">
<span class="method-name">new</span><span class="method-args">(...)</span>
</a>
</div>
<div class="method-description">
<p>
Create a new connection to the FAM daemon.
</p>
<p>
Raises an ArgumentError exception if the number of arguments is not 0 or 1,
or a <a href="Error.html">Fam::Error</a> exception if a connection to FAM
could not be established.
</p>
<p>
Examples:
</p>
<pre>
# connect and tell FAM the application is named 'foo'
fam = Fam::Connection.new 'foo'
# just connect
fam = Fam::Connection.new
</pre>
</div>
</div>
<div id="method-M000022" class="method-detail">
<a name="M000022"></a>
<div class="method-heading">
<a href="Connection.src/M000022.html" target="Code" class="method-signature"
onclick="popupCode('Connection.src/M000022.html');return false;">
<span class="method-name">new</span><span class="method-args">(...)</span>
</a>
</div>
<div class="method-description">
<p>
Create a new connection to the FAM daemon.
</p>
<p>
Examples:
</p>
<pre>
# connect and tell FAM the application is named 'foo'
fam = Fam::Connection.new 'foo'
# just connect
fam = Fam::Connection.new
</pre>
</div>
</div>
<div id="method-M000023" class="method-detail">
<a name="M000023"></a>
<div class="method-heading">
<a href="Connection.src/M000023.html" target="Code" class="method-signature"
onclick="popupCode('Connection.src/M000023.html');return false;">
<span class="method-name">open</span><span class="method-args">(...)</span>
</a>
</div>
<div class="method-description">
<p>
Create a new connection to the FAM daemon.
</p>
<p>
Aliases:
</p>
<pre>
Fam::Connection.open2
</pre>
<p>
Examples:
</p>
<pre>
# connect and tell FAM the application is named 'foo'
fam = Fam::Connection.open 'foo'
# just connect
fam = Fam::Connection.open
# connect and close automatically
Fam::Connection.open('foo') {|fam| ... }
</pre>
</div>
</div>
<div id="method-M000024" class="method-detail">
<a name="M000024"></a>
<div class="method-heading">
<a href="Connection.src/M000024.html" target="Code" class="method-signature"
onclick="popupCode('Connection.src/M000024.html');return false;">
<span class="method-name">open2</span><span class="method-args">(...)</span>
</a>
</div>
<div class="method-description">
<p>
Create a new connection to the FAM daemon.
</p>
<p>
Aliases:
</p>
<pre>
Fam::Connection.open2
</pre>
<p>
Examples:
</p>
<pre>
# connect and tell FAM the application is named 'foo'
fam = Fam::Connection.open 'foo'
# just connect
fam = Fam::Connection.open
# connect and close automatically
Fam::Connection.open('foo') {|fam| ... }
</pre>
</div>
</div>
<h3 class="section-bar">Public Instance methods</h3>
<div id="method-M000047" class="method-detail">
<a name="M000047"></a>
<div class="method-heading">
<span class="method-name">cancel</span><span class="method-args">(p1)</span>
</div>
<div class="method-description">
<p>
Alias for <a href="Connection.html#M000032">cancel_monitor</a>
</p>
</div>
</div>
<div id="method-M000032" class="method-detail">
<a name="M000032"></a>
<div class="method-heading">
<a href="Connection.src/M000032.html" target="Code" class="method-signature"
onclick="popupCode('Connection.src/M000032.html');return false;">
<span class="method-name">cancel_monitor</span><span class="method-args">(p1)</span>
</a>
</div>
<div class="method-description">
<p>
Cancel a monitor request.
</p>
<p>
Raises a <a href="Error.html">Fam::Error</a> exception if the monitor
request could not be cancelled.
</p>
<p>
Note: this method invalidates the specified monitor request.
</p>
<p>
Aliases:
</p>
<pre>
Fam::Connection#cancel
</pre>
<p>
Examples:
</p>
<pre>
fam.cancel_monitor req
fam.cancel req
</pre>
</div>
</div>
<div id="method-M000026" class="method-detail">
<a name="M000026"></a>
<div class="method-heading">
<a href="Connection.src/M000026.html" target="Code" class="method-signature"
onclick="popupCode('Connection.src/M000026.html');return false;">
<span class="method-name">close</span><span class="method-args">()</span>
</a>
</div>
<div class="method-description">
<p>
this causes a segfault, since ruby attempts to close the connection when it
goes out of scope. We‘ll let ruby take care of it. :)
</p>
</div>
</div>
<div id="method-M000044" class="method-detail">
<a name="M000044"></a>
<div class="method-heading">
<span class="method-name">col</span><span class="method-args">(p1, p2)</span>
</div>
<div class="method-description">
<p>
Alias for <a href="Connection.html#M000029">monitor_collection</a>
</p>
</div>
</div>
<div id="method-M000043" class="method-detail">
<a name="M000043"></a>
<div class="method-heading">
<span class="method-name">collection</span><span class="method-args">(p1, p2)</span>
</div>
<div class="method-description">
<p>
Alias for <a href="Connection.html#M000029">monitor_collection</a>
</p>
</div>
</div>
<div id="method-M000051" class="method-detail">
<a name="M000051"></a>
<div class="method-heading">
<span class="method-name">debug=</span><span class="method-args">(p1)</span>
</div>
<div class="method-description">
<p>
Alias for <a href="Connection.html#M000035">debug_level=</a>
</p>
</div>
</div>
<div id="method-M000035" class="method-detail">
<a name="M000035"></a>
<div class="method-heading">
<a href="Connection.src/M000035.html" target="Code" class="method-signature"
onclick="popupCode('Connection.src/M000035.html');return false;">
<span class="method-name">debug_level=</span><span class="method-args">(p1)</span>
</a>
</div>
<div class="method-description">
<p>
Set the debug level of a <a href="Connection.html">Fam::Connection</a>
object.
</p>
<p>
Raises a <a href="Error.html">Fam::Error</a> exception on failure. Note
that this method does not exist under Gamin.
</p>
<p>
Aliases:
</p>
<pre>
Fam::Connection#debug
</pre>
<p>
Examples:
</p>
<pre>
fam.debug = Fam::Debug::VERBOSE
</pre>
</div>
</div>
<div id="method-M000053" class="method-detail">
<a name="M000053"></a>
<div class="method-heading">
<span class="method-name">descriptor</span><span class="method-args">()</span>
</div>
<div class="method-description">
<p>
Alias for <a href="Connection.html#M000036">fd</a>
</p>
</div>
</div>
<div id="method-M000040" class="method-detail">
<a name="M000040"></a>
<div class="method-heading">
<span class="method-name">dir</span><span class="method-args">(p1)</span>
</div>
<div class="method-description">
<p>
Alias for <a href="Connection.html#M000027">monitor_directory</a>
</p>
</div>
</div>
<div id="method-M000039" class="method-detail">
<a name="M000039"></a>
<div class="method-heading">
<span class="method-name">directory</span><span class="method-args">(p1)</span>
</div>
<div class="method-description">
<p>
Alias for <a href="Connection.html#M000027">monitor_directory</a>
</p>
</div>
</div>
<div id="method-M000049" class="method-detail">
<a name="M000049"></a>
<div class="method-heading">
<span class="method-name">ev</span><span class="method-args">()</span>
</div>
<div class="method-description">
<p>
Alias for <a href="Connection.html#M000033">next_event</a>
</p>
</div>
</div>
<div id="method-M000036" class="method-detail">
<a name="M000036"></a>
<div class="method-heading">
<a href="Connection.src/M000036.html" target="Code" class="method-signature"
onclick="popupCode('Connection.src/M000036.html');return false;">
<span class="method-name">fd</span><span class="method-args">()</span>
</a>
</div>
<div class="method-description">
<p>
Get the file descriptor of a <a href="Connection.html">Fam::Connection</a>
object.
</p>
<p>
Note: This method allows you to wait for FAM events using select() instead
of polling via <a
href="Connection.html#M000050">Fam::Connection#pending</a> and <a
href="Connection.html#M000033">Fam::Connection#next_event</a>; see the
second example below for more information.
</p>
<p>
Aliases:
</p>
<pre>
Fam::Connection#get_descriptor
Fam::Connection#descriptor
Fam::Connection#get_fd
</pre>
<p>
Examples:
</p>
<pre>
# simple use
fd = fam.fd
# wrap the FAM connection descriptor in an IO object for use in a
# select() call
io = IO.new fam.fd, 'r'
select [io], , , 10
</pre>
</div>
</div>
<div id="method-M000041" class="method-detail">
<a name="M000041"></a>
<div class="method-heading">
<span class="method-name">file</span><span class="method-args">(p1)</span>
</div>
<div class="method-description">
<p>
Alias for <a href="Connection.html#M000028">monitor_file</a>
</p>
</div>
</div>
<div id="method-M000052" class="method-detail">
<a name="M000052"></a>
<div class="method-heading">
<span class="method-name">get_descriptor</span><span class="method-args">()</span>
</div>
<div class="method-description">
<p>
Alias for <a href="Connection.html#M000036">fd</a>
</p>
</div>
</div>
<div id="method-M000054" class="method-detail">
<a name="M000054"></a>
<div class="method-heading">
<span class="method-name">get_fd</span><span class="method-args">()</span>
</div>
<div class="method-description">
<p>
Alias for <a href="Connection.html#M000036">fd</a>
</p>
</div>
</div>
<div id="method-M000042" class="method-detail">
<a name="M000042"></a>
<div class="method-heading">
<span class="method-name">monitor_col</span><span class="method-args">(p1, p2)</span>
</div>
<div class="method-description">
<p>
Alias for <a href="Connection.html#M000029">monitor_collection</a>
</p>
</div>
</div>
<div id="method-M000029" class="method-detail">
<a name="M000029"></a>
<div class="method-heading">
<a href="Connection.src/M000029.html" target="Code" class="method-signature"
onclick="popupCode('Connection.src/M000029.html');return false;">
<span class="method-name">monitor_collection</span><span class="method-args">(p1, p2)</span>
</a>
</div>
<div class="method-description">
<p>
Monitor a collection.
</p>
<p>
Raises a <a href="Error.html">Fam::Error</a> exception if the collection
could not be monitored. Note that this method exists under Gamin, but does
not actually do anything.
</p>
<p>
Aliases:
</p>
<pre>
Fam::Collection#monitor_col
Fam::Collection#col
</pre>
<p>
Examples:
</p>
<pre>
req = fam.monitor_col 'download/images', 1, '*.jpg'
</pre>
</div>
</div>
<div id="method-M000038" class="method-detail">
<a name="M000038"></a>
<div class="method-heading">
<span class="method-name">monitor_dir</span><span class="method-args">(p1)</span>
</div>
<div class="method-description">
<p>
Alias for <a href="Connection.html#M000027">monitor_directory</a>
</p>
</div>
</div>
<div id="method-M000027" class="method-detail">
<a name="M000027"></a>
<div class="method-heading">
<a href="Connection.src/M000027.html" target="Code" class="method-signature"
onclick="popupCode('Connection.src/M000027.html');return false;">
<span class="method-name">monitor_directory</span><span class="method-args">(p1)</span>
</a>
</div>
<div class="method-description">
<p>
Monitor a directory.
</p>
<p>
Returns a <a href="Request.html">Fam::Request</a> object, which is used to
identify the monitor associated with events.
</p>
<p>
Raises a <a href="Error.html">Fam::Error</a> exception if the directory
could not be monitored.
</p>
<p>
Aliases:
</p>
<pre>
Fam::Connection#monitor_dir
Fam::Connection#directory
Fam::Connection#dir
</pre>
<p>
Examples:
</p>
<pre>
req = fam.monitor_directory '/tmp'
</pre>
</div>
</div>
<div id="method-M000028" class="method-detail">
<a name="M000028"></a>
<div class="method-heading">
<a href="Connection.src/M000028.html" target="Code" class="method-signature"
onclick="popupCode('Connection.src/M000028.html');return false;">
<span class="method-name">monitor_file</span><span class="method-args">(p1)</span>
</a>
</div>
<div class="method-description">
<p>
Monitor a file.
</p>
<p>
Returns a <a href="Request.html">Fam::Request</a> object, which is used to
identify the monitor associated with events.
</p>
<p>
Raises a <a href="Error.html">Fam::Error</a> exception if the file could
not be monitored.
</p>
<p>
Aliases:
</p>
<pre>
Fam::Connection#file
</pre>
<p>
Examples:
</p>
<pre>
req = fam.monitor_file '/var/log/messages'
</pre>
</div>
</div>
<div id="method-M000048" class="method-detail">
<a name="M000048"></a>
<div class="method-heading">
<span class="method-name">next_ev</span><span class="method-args">()</span>
</div>
<div class="method-description">
<p>
Alias for <a href="Connection.html#M000033">next_event</a>
</p>
</div>
</div>
<div id="method-M000033" class="method-detail">
<a name="M000033"></a>
<div class="method-heading">
<a href="Connection.src/M000033.html" target="Code" class="method-signature"
onclick="popupCode('Connection.src/M000033.html');return false;">
<span class="method-name">next_event</span><span class="method-args">()</span>
</a>
</div>
<div class="method-description">
<p>
Get the next event from the event queue, or block until an event is
available.
</p>
<p>
Raises a <a href="Error.html">Fam::Error</a> exception if FAM
couldn’t check for pending events, or if FAM-Ruby couldn’t get
the next FAM event.
</p>
<p>
Aliases:
</p>
<pre>
Fam::Connection#next_ev
Fam::Connection#ev
</pre>
<p>
Examples:
</p>
<pre>
ev = fam.next_event
</pre>
</div>
</div>
<div id="method-M000037" class="method-detail">
<a name="M000037"></a>
<div class="method-heading">
<a href="Connection.src/M000037.html" target="Code" class="method-signature"
onclick="popupCode('Connection.src/M000037.html');return false;">
<span class="method-name">no_exists</span><span class="method-args">()</span>
</a>
</div>
<div class="method-description">
<p>
Gamin-specific extension for FAM to not propagate Exists events on
directory monitoring startup. This speeds up watching large directories but
can introduce a mismatch between the FAM view of the directory and the
program own view.
</p>
<p>
Has no effect if FAMNoExists is not available.
</p>
<p>
Raises a <a href="Error.html">Fam::Error</a> exception if an error is
encountered.
</p>
<p>
Examples:
</p>
<pre>
fam.no_exists
</pre>
</div>
</div>
<div id="method-M000050" class="method-detail">
<a name="M000050"></a>
<div class="method-heading">
<span class="method-name">pending</span><span class="method-args">()</span>
</div>
<div class="method-description">
<p>
Alias for <a href="Connection.html#M000034">pending?</a>
</p>
</div>
</div>
<div id="method-M000034" class="method-detail">
<a name="M000034"></a>
<div class="method-heading">
<a href="Connection.src/M000034.html" target="Code" class="method-signature"
onclick="popupCode('Connection.src/M000034.html');return false;">
<span class="method-name">pending?</span><span class="method-args">()</span>
</a>
</div>
<div class="method-description">
<p>
Are there any events in the queue?
</p>
<p>
Raises a <a href="Error.html">Fam::Error</a> exception if FAM
couldn’t check for pending events.
</p>
<p>
Aliases:
</p>
<pre>
Fam::Connection#pending
</pre>
<p>
Examples:
</p>
<pre>
puts 'no events pending' unless fam.pending?
</pre>
</div>
</div>
<div id="method-M000046" class="method-detail">
<a name="M000046"></a>
<div class="method-heading">
<span class="method-name">resume</span><span class="method-args">(p1)</span>
</div>
<div class="method-description">
<p>
Alias for <a href="Connection.html#M000031">resume_monitor</a>
</p>
</div>
</div>
<div id="method-M000031" class="method-detail">
<a name="M000031"></a>
<div class="method-heading">
<a href="Connection.src/M000031.html" target="Code" class="method-signature"
onclick="popupCode('Connection.src/M000031.html');return false;">
<span class="method-name">resume_monitor</span><span class="method-args">(p1)</span>
</a>
</div>
<div class="method-description">
<p>
Resume (start monitoring) a monitor request.
</p>
<p>
Raises a <a href="Error.html">Fam::Error</a> exception if the monitor
request could not be resumed. Note that this method exists under Gamin, but
does not actually do anything.
</p>
<p>
Aliases:
</p>
<pre>
Fam::Connection#resume
</pre>
<p>
Examples:
</p>
<pre>
fam.resume_monitor req
fam.resume req
</pre>
</div>
</div>
<div id="method-M000045" class="method-detail">
<a name="M000045"></a>
<div class="method-heading">
<span class="method-name">suspend</span><span class="method-args">(p1)</span>
</div>
<div class="method-description">
<p>
Alias for <a href="Connection.html#M000030">suspend_monitor</a>
</p>
</div>
</div>
<div id="method-M000030" class="method-detail">
<a name="M000030"></a>
<div class="method-heading">
<a href="Connection.src/M000030.html" target="Code" class="method-signature"
onclick="popupCode('Connection.src/M000030.html');return false;">
<span class="method-name">suspend_monitor</span><span class="method-args">(p1)</span>
</a>
</div>
<div class="method-description">
<p>
Suspend (stop monitoring) a monitor request.
</p>
<p>
Raises a <a href="Error.html">Fam::Error</a> exception if the monitor
request could not be suspended. Note that this method exists under Gamin,
but does not actually do anything.
</p>
<p>
Aliases:
</p>
<pre>
Fam::Connection#suspend
</pre>
<p>
Examples:
</p>
<pre>
fam.suspend_monitor req
fam.suspend req
</pre>
</div>
</div>
</div>
</div>
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>
</body>
</html>
|