![]() |
![]()
| ![]() |
![]()
NAMENet::TCP - TCP sockets interface module SYNOPSISuse Net::Gen; # optional use Net::Inet; # optional use Net::TCP; DESCRIPTIONThe "Net::TCP" module provides services for TCP communications over sockets. It is layered atop the "Net::Inet" and "Net::Gen" modules, which are part of the same distribution. Public MethodsThe following methods are provided by the "Net::TCP" module itself, rather than just being inherited from "Net::Inet" or "Net::Gen".
Protected Methodsnone. Known Socket OptionsThese are the socket options known to the "Net::TCP" module itself:
Known Object ParametersThere are no object parameters registered by the "Net::TCP" module itself. TIESCALARTieing of scalars to a TCP handle is supported by inheritance from the "TIESCALAR" method of "Net::Gen". That method only succeeds if a call to a "new" method results in an object for which the "isconnected" method returns true, which is why it is mentioned in connection with this module. Example: tie $x,Net::TCP,0,'finger' or die; $x = "-s\015\012"; print $y while defined($y = $x); untie $x; This is an expensive re-implementation of finger -s on many machines. Each assignment to the tied scalar is really a call to the "put" method (via the "STORE" method), and each read from the tied scalar is really a call to the "getline" method (via the "FETCH" method). Exports
THREADING STATUSThis module has been tested with threaded perls, and should be as thread-safe as perl itself. (As of 5.005_03 and 5.005_57, that's not all that safe just yet.) It also works with interpreter-based threads ('ithreads') in more recent perl releases. SEE ALSONet::Inet(3), Net::Gen(3), Net::TCP::Server(3) AUTHORSpider Boardman <spidb@cpan.org>
|