[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Detecting Socket Disconnect?



If I write standard socket code (i.e. TCP client/server from perlipc man
page) on Unix Perl will it run on MacPerl (assuming I'm not trying to write
a forking server or something)?

And what's the *right* way to detect that a socket I'm using is no longer
connected to anyone ... i.e. the other end went away?  Would this be
different in Mac/Unix Perl?

Thanks much,

%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
|  Ray Zimmerman (rz10@cornell.edu)   |  "The number you have       |
|  428-B Phillips Hall                |    dialed is imaginary.     |
|  Cornell Univ., Ithaca, NY  14853   |   Rotate phone 90 degrees   |
|  607-255-9645  Fax: 607-254-4565    |    and try again."          |
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%