/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSPort.html is in gnustep-base-doc 1.24.7-1build2.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>NSPort class reference</title>
</head>
<body>
<font face="serif">
<a href="Base.html">Up</a>
<br />
<h1><a name="title$NSPort">NSPort class reference</a></h1>
<h3>Authors</h3>
<dl>
<dt>Richard Frith-Macdonald (<a href="mailto:richard@brainstorm.co.uk"><code>richard@brainstorm.co.uk</code></a>)</dt>
<dd>
</dd>
<dt>Andrew Kachites McCallum (<a href="mailto:mccallum@gnu.ai.mit.edu"><code>mccallum@gnu.ai.mit.edu</code></a>)</dt>
<dd>
</dd>
</dl>
<p><b>Version:</b> 37003</p>
<p><b>Date:</b> 2013-08-22 16:44:54 +0100 (Thu, 22 Aug 2013)</p>
<p><b>Copyright:</b> (C) 1997,2002 Free Software Foundation, Inc.</p>
<div>
<hr width="50%" align="left" />
<h3>Contents -</h3>
<ol>
<li>
<a href="#001000000000">Software documentation for the NSMessagePort class</a>
</li>
<li>
<a href="#002000000000">Software documentation for the NSPort class</a>
</li>
<li>
<a href="#003000000000">Software documentation for the NSSocketPort class</a>
</li>
<li>
<a href="#004000000000">Software documentation for the
NSObject(NSPortDelegateMethods)
category</a>
</li>
</ol>
<hr width="50%" align="left" />
</div>
<h1><a name="001000000000">
Software documentation for the NSMessagePort class
</a></h1>
<h2><a name="class$NSMessagePort">NSMessagePort</a> : <a rel="gsdoc" href="#class$NSPort">NSPort</a></h2>
<blockquote class="declared">
<dl>
<dt><b>Declared in:</b></dt>
<dd>Foundation/NSPort.h</dd>
</dl>
</blockquote>
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
An
<a rel="gsdoc" href="#class$NSPort">NSPort</a>
implementation for network object
communications which can be used for
interthread/interprocess
communications on the same host, but not
between different hosts.
</div>
<hr width="50%" align="left" />
<a href="#_NSMessagePort_ivars">Instance Variables</a>
<br/><br/>
<a name="_NSMessagePort_ivars"/> <br/><hr width="50%" align="left" />
<h2>Instance Variables for NSMessagePort Class</h2>
<h3><a name="ivariable$NSMessagePort*_internal">_internal</a></h3>
@protected void* <b>_internal</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
<em>Warning</em> the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically <em>private</em>, it is
intended for internal use within the package, and
you should not use the variable in other code.
</div>
<hr width="25%" align="left" />
<br/><hr width="50%" align="left" /><br/>
<h1><a name="002000000000">
Software documentation for the NSPort class
</a></h1>
<h2><a name="class$NSPort">NSPort</a> : <a rel="gsdoc" href="NSObject.html#class$NSObject">NSObject</a></h2>
<blockquote class="declared">
<dl>
<dt><b>Declared in:</b></dt>
<dd>Foundation/NSPort.h</dd>
</dl>
</blockquote>
<blockquote>
<dl>
<dt><b>Conforms to:</b></dt>
<dd><a rel="gsdoc" href="NSObject.html#protocol$(NSCoding)">NSCoding</a></dd>
<dd><a rel="gsdoc" href="NSObject.html#protocol$(NSCopying)">NSCopying</a></dd>
</dl>
</blockquote>
<div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
<div class="desc">
</p>
<p>
<code>NSPort</code> is an abstract class defining
interfaces underlying communications in the
distributed objects framework. Each side of a
connection will have an <code>NSPort</code>
object, responsible for sending and receiving
<a rel="gsdoc" href="NSPortMessage.html#class$NSPortMessage">NSPortMessage</a>
s, which are then passed to delegates when received.
The <code>NSPort</code> must be added to the
<a rel="gsdoc" href="NSRunLoop.html#class$NSRunLoop">NSRunLoop</a>
as an input source.
</p>
<p>
</p>
<p>
This class also implements the functionality of
the <code><em>NSMachPort</em></code> class on OS X.
</p>
<p>
</div>
<hr width="50%" align="left" />
<a href="#_NSPort_ivars">Instance Variables</a>
<br/><br/>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="NSPort.html#method$NSPort+port">+port</a></li>
<li><a rel="gsdoc" href="NSPort.html#method$NSPort+portWithMachPort$">+portWithMachPort:</a></li>
<li><a rel="gsdoc" href="NSPort.html#method$NSPort-addConnection$toRunLoop$forMode$">-addConnection:toRunLoop:forMode:</a></li>
<li><a rel="gsdoc" href="NSPort.html#method$NSPort-delegate">-delegate</a></li>
<li><a rel="gsdoc" href="NSPort.html#method$NSPort-init">-init</a></li>
<li><a rel="gsdoc" href="NSPort.html#method$NSPort-initWithMachPort$">-initWithMachPort:</a></li>
<li><a rel="gsdoc" href="NSPort.html#method$NSPort-invalidate">-invalidate</a></li>
<li><a rel="gsdoc" href="NSPort.html#method$NSPort-isValid">-isValid</a></li>
<li><a rel="gsdoc" href="NSPort.html#method$NSPort-machPort">-machPort</a></li>
<li><a rel="gsdoc" href="NSPort.html#method$NSPort-removeConnection$fromRunLoop$forMode$">-removeConnection:fromRunLoop:forMode:</a></li>
<li><a rel="gsdoc" href="NSPort.html#method$NSPort-reservedSpaceLength">-reservedSpaceLength</a></li>
<li><a rel="gsdoc" href="NSPort.html#method$NSPort-sendBeforeDate$components$from$reserved$">-sendBeforeDate:components:from:reserved:</a></li>
<li><a rel="gsdoc" href="NSPort.html#method$NSPort-sendBeforeDate$msgid$components$from$reserved$">-sendBeforeDate:msgid:components:from:reserved:</a></li>
<li><a rel="gsdoc" href="NSPort.html#method$NSPort-setDelegate$">-setDelegate:</a></li>
</ul>
<hr width="50%" align="left" />
<div class="method">
<h3><a name="method$NSPort+port">port </a></h3>
+ (<a rel="gsdoc" href="#class$NSPort">NSPort</a>*) <b>port</b>;<br />
<div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
<div class="desc">
Basic constructor returns object capable of send and
receive. <br /> By default, the port returned is
an instance of
<a rel="gsdoc" href="#class$NSMessagePort">NSMessagePort</a>
capable only of host-local communication.
However, the <code>NSPortIsMessagePort</code>
user default may be set to <code>NO</code> to change
the behavior so that the returned value is an
instance of the
<a rel="gsdoc" href="#class$NSSocketPort">NSSocketPort</a>
class.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSPort+portWithMachPort$">portWithMachPort: </a></h3>
+ (<a rel="gsdoc" href="#class$NSPort">NSPort</a>*) <b>portWithMachPort:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSInteger">NSInteger</a>)machPort;<br />
<div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
<div class="desc">
NSMachPort compatibility method.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSPort-addConnection$toRunLoop$forMode$">addConnection: toRunLoop: forMode: </a></h3>
- (void) <b>addConnection:</b> (<a rel="gsdoc" href="NSConnection.html#class$NSConnection">NSConnection</a>*)aConnection<b> toRunLoop:</b> (<a rel="gsdoc" href="NSRunLoop.html#class$NSRunLoop">NSRunLoop</a>*)aLoop<b> forMode:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)aMode;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
Adds to run loop as input source to be notified for
input in given mode. This method is for use by
subclasses.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSPort-delegate">delegate </a></h3>
- (id) <b>delegate</b>;<br />
<div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
<div class="desc">
Returns the object that received messages will be
passed off to.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSPort-init">init </a></h3>
- (id) <b>init</b>;<br />
<div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
<div class="desc">
Basic initializer sets up object capable of send and
receive. See
<a rel="gsdoc" href="#method$NSPort+port">
+port
</a>
for more details.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSPort-initWithMachPort$">initWithMachPort: </a></h3>
- (id) <b>initWithMachPort:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSInteger">NSInteger</a>)machPort;<br />
<div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
<div class="desc">
NSMachPort compatibility method.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSPort-invalidate">invalidate </a></h3>
- (void) <b>invalidate</b>;<br />
<div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
<div class="desc">
Mark port as invalid, deregister with listeners and
cease further network operations. Subclasses should
override and call super.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSPort-isValid">isValid </a></h3>
- (BOOL) <b>isValid</b>;<br />
<div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
<div class="desc">
Returns whether port has been marked invalid.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSPort-machPort">machPort </a></h3>
- (<a rel="gsdoc" href="TypesAndConstants.html#type$NSInteger">NSInteger</a>) <b>machPort</b>;<br />
<div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
<div class="desc">
NSMachPort compatibility.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSPort-removeConnection$fromRunLoop$forMode$">removeConnection: fromRunLoop: forMode: </a></h3>
- (void) <b>removeConnection:</b> (<a rel="gsdoc" href="NSConnection.html#class$NSConnection">NSConnection</a>*)aConnection<b> fromRunLoop:</b> (<a rel="gsdoc" href="NSRunLoop.html#class$NSRunLoop">NSRunLoop</a>*)aLoop<b> forMode:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)aMode;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
Removes from run loop as input source to be
notified for input in given mode. This method is
for use by subclasses.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSPort-reservedSpaceLength">reservedSpaceLength </a></h3>
- (<a rel="gsdoc" href="TypesAndConstants.html#type$NSUInteger">NSUInteger</a>) <b>reservedSpaceLength</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
Returns amount of space used for header info at
beginning of messages. Subclasses should override
(this implementation returns 0).
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSPort-sendBeforeDate$components$from$reserved$">sendBeforeDate: components: from: reserved: </a></h3>
- (BOOL) <b>sendBeforeDate:</b> (<a rel="gsdoc" href="NSDate.html#class$NSDate">NSDate</a>*)when<b> components:</b> (<a rel="gsdoc" href="NSArray.html#class$NSMutableArray">NSMutableArray</a>*)components<b> from:</b> (<a rel="gsdoc" href="#class$NSPort">NSPort</a>*)receivingPort<b> reserved:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSUInteger">NSUInteger</a>)length;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
Internal method for sending message, for use by
subclasses.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSPort-sendBeforeDate$msgid$components$from$reserved$">sendBeforeDate: msgid: components: from: reserved: </a></h3>
- (BOOL) <b>sendBeforeDate:</b> (<a rel="gsdoc" href="NSDate.html#class$NSDate">NSDate</a>*)when<b> msgid:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSInteger">NSInteger</a>)msgid<b> components:</b> (<a rel="gsdoc" href="NSArray.html#class$NSMutableArray">NSMutableArray</a>*)components<b> from:</b> (<a rel="gsdoc" href="#class$NSPort">NSPort</a>*)receivingPort<b> reserved:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSUInteger">NSUInteger</a>)length;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
Internal method for sending message, for use by
subclasses.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSPort-setDelegate$">setDelegate: </a></h3>
- (void) <b>setDelegate:</b> (id)anObject;<br />
<div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
<div class="desc">
Sets the object that received messages will be passed
off to.
</div>
<hr width="25%" align="left" />
</div>
<a name="_NSPort_ivars"/> <br/><hr width="50%" align="left" />
<h2>Instance Variables for NSPort Class</h2>
<h3><a name="ivariable$NSPort*_delegate">_delegate</a></h3>
@protected id <b>_delegate</b>;<br />
<div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
<div class="desc">
<em>Warning</em> the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically <em>private</em>, it is
intended for internal use within the package, and
you should not use the variable in other code.
</div>
<hr width="25%" align="left" />
<h3><a name="ivariable$NSPort*_is_valid">_is_valid</a></h3>
@protected BOOL <b>_is_valid</b>;<br />
<div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
<div class="desc">
<em>Warning</em> the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically <em>private</em>, it is
intended for internal use within the package, and
you should not use the variable in other code.
</div>
<hr width="25%" align="left" />
<br/><hr width="50%" align="left" /><br/>
<h1><a name="003000000000">
Software documentation for the NSSocketPort class
</a></h1>
<h2><a name="class$NSSocketPort">NSSocketPort</a> : <a rel="gsdoc" href="#class$NSPort">NSPort</a></h2>
<blockquote class="declared">
<dl>
<dt><b>Declared in:</b></dt>
<dd>Foundation/NSPort.h</dd>
</dl>
</blockquote>
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
</p>
<p>
An
<a rel="gsdoc" href="#class$NSPort">NSPort</a>
implementation for network object
communications based on BSD sockets. Can
be used for interthread/interprocess communications
between same or different hosts (though on same
host
<a rel="gsdoc" href="#class$NSMessagePort">NSMessagePort</a>
will be more efficient).
</p>
<p>
</p>
<p>
Note that this class is incompatible with the
latest OS X version.
</p>
<p>
</div>
<hr width="50%" align="left" />
<a href="#_NSSocketPort_ivars">Instance Variables</a>
<br/><br/>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="NSPort.html#method$NSSocketPort+existingPortWithNumber$onHost$">+existingPortWithNumber:onHost:</a></li>
<li><a rel="gsdoc" href="NSPort.html#method$NSSocketPort+portWithNumber$onHost$forceAddress$listener$">+portWithNumber:onHost:forceAddress:listener:</a></li>
<li><a rel="gsdoc" href="NSPort.html#method$NSSocketPort-address">-address</a></li>
<li><a rel="gsdoc" href="NSPort.html#method$NSSocketPort-getFds$count$">-getFds:count:</a></li>
<li><a rel="gsdoc" href="NSPort.html#method$NSSocketPort-handlePortMessage$">-handlePortMessage:</a></li>
<li><a rel="gsdoc" href="NSPort.html#method$NSSocketPort-host">-host</a></li>
<li><a rel="gsdoc" href="NSPort.html#method$NSSocketPort-portNumber">-portNumber</a></li>
</ul>
<hr width="50%" align="left" />
<div class="method">
<h3><a name="method$NSSocketPort+existingPortWithNumber$onHost$">existingPortWithNumber: onHost: </a></h3>
+ (<a rel="gsdoc" href="#class$NSSocketPort">NSSocketPort</a>*) <b>existingPortWithNumber:</b> (uint16_t)number<b> onHost:</b> (<a rel="gsdoc" href="NSHost.html#class$NSHost">NSHost</a>*)aHost;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
Look up and return an existing
<code>NSSocketPort</code> given a host and
<var>number</var>, or return <code>nil</code> if one
has not been created.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSSocketPort+portWithNumber$onHost$forceAddress$listener$">portWithNumber: onHost: forceAddress: listener: </a></h3>
+ (<a rel="gsdoc" href="#class$NSSocketPort">NSSocketPort</a>*) <b>portWithNumber:</b> (uint16_t)number<b> onHost:</b> (<a rel="gsdoc" href="NSHost.html#class$NSHost">NSHost</a>*)aHost<b> forceAddress:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)addr<b> listener:</b> (BOOL)shouldListen;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
This is the preferred initialisation method for
<code>NSSocketPort</code>. <br /> <var>number</var>
should be a TCP/IP port <var>number</var> or may be
zero for a port on the local host. <br />
<var>aHost</var> should be the host for the port or
may be <code>nil</code> for the local host. <br />
<var>addr</var> is the IP address that MUST be used
for this port - if it is <code>nil</code> then, for the
local host, the port uses ALL IP addresses, and for a
remote host, the port will use the first address
that works. <br /> <var>shouldListen</var> specifies
whether to listen on the port initially.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSSocketPort-address">address </a></h3>
- (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*) <b>address</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
Returns IP address of underlying socket.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSSocketPort-getFds$count$">getFds: count: </a></h3>
- (void) <b>getFds:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSInteger">NSInteger</a>*)fds<b> count:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSInteger">NSInteger</a>*)count;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
This is a callback method used by the NSRunLoop class
to determine which descriptors to watch for the port.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSSocketPort-handlePortMessage$">handlePortMessage: </a></h3>
- (void) <b>handlePortMessage:</b> (<a rel="gsdoc" href="NSPortMessage.html#class$NSPortMessage">NSPortMessage</a>*)m;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
Delegates processing of a message.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSSocketPort-host">host </a></h3>
- (<a rel="gsdoc" href="NSHost.html#class$NSHost">NSHost</a>*) <b>host</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
Returns host that the underlying socket is
connected to.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$NSSocketPort-portNumber">portNumber </a></h3>
- (uint16_t) <b>portNumber</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
Returns port number of underlying socket.
</div>
<hr width="25%" align="left" />
</div>
<a name="_NSSocketPort_ivars"/> <br/><hr width="50%" align="left" />
<h2>Instance Variables for NSSocketPort Class</h2>
<h3><a name="ivariable$NSSocketPort*address">address</a></h3>
@protected NSString* <b>address</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
<h3><a name="ivariable$NSSocketPort*eventListener">eventListener</a></h3>
@protected WSAEVENT <b>eventListener</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
<h3><a name="ivariable$NSSocketPort*events">events</a></h3>
@protected NSMapTable* <b>events</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
<h3><a name="ivariable$NSSocketPort*handles">handles</a></h3>
@protected NSMapTable* <b>handles</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
<h3><a name="ivariable$NSSocketPort*host">host</a></h3>
@protected NSHost* <b>host</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
<h3><a name="ivariable$NSSocketPort*listener">listener</a></h3>
@protected SOCKET <b>listener</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
<h3><a name="ivariable$NSSocketPort*myLock">myLock</a></h3>
@protected NSRecursiveLock* <b>myLock</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
<h3><a name="ivariable$NSSocketPort*portNum">portNum</a></h3>
@protected uint16_t <b>portNum</b>;<br />
<div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
<br/><hr width="50%" align="left" /><br/>
<h1><a name="004000000000">
Software documentation for the
NSObject(NSPortDelegateMethods)
category
</a></h1>
<h2><a rel="gsdoc" href="NSObject.html#class$NSObject">NSObject</a>(<a name="category$NSObject(NSPortDelegateMethods)">NSPortDelegateMethods</a>)</h2>
<blockquote class="declared">
<dl>
<dt><b>Declared in:</b></dt>
<dd>Foundation/NSPort.h</dd>
</dl>
</blockquote>
<div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="NSPort.html#method$NSObject(NSPortDelegateMethods)-handlePortMessage$">-handlePortMessage:</a></li>
</ul>
<hr width="50%" align="left" />
<div class="method">
<h3><a name="method$NSObject(NSPortDelegateMethods)-handlePortMessage$">handlePortMessage: </a></h3>
- (void) <b>handlePortMessage:</b> (<a rel="gsdoc" href="NSPortMessage.html#class$NSPortMessage">NSPortMessage</a>*)aMessage;<br />
<div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
An empty method provided for subclasses to override.<br />
<div class="desc">
Subclasses of NSPort send this message to their
delegate on receipt of a port message.
</div>
<hr width="25%" align="left" />
</div>
<br />
<a href="Base.html">Up</a>
</font>
</body>
</html>
|