ЭЛЕКТРОННАЯ БИБЛИОТЕКА КОАПП |
Сборники Художественной, Технической, Справочной, Английской, Нормативной, Исторической, и др. литературы. |
3.2.20 connectconnect This function does the same thing as the
connect
system call - see
connect(2).
The function initiates a connection with another process
that is waiting at an
accept(2).
The function returns true if it succeeded, false otherwise (and puts
the error code into
$!).
connect S, $destadd or die "Can't connect to $hostname: $!\n"; To disconnect a socket, either close or shutdown. See also the example in the section "Sockets" in Chapter 6. |