当前位置: 首页 > 文档资料 > Perl 入门教程 >

shutdown

优质
小牛编辑
114浏览
2023-12-01

描述 (Description)

此函数根据HOW的值禁用套接字连接。 HOW的有效值与同名的系统调用相同。 值为0表示您已停止从套接字读取信息。

值为1表示您已停止写入套接字。 值为2表示您已完全停止使用套接字。

语法 (Syntax)

以下是此函数的简单语法 -

shutdown SOCKET, HOW

返回值 (Return Value)

此函数在失败时返回0,在成功时返回1。

<!--

例子 (Example)

Following is the example code showing its basic usage −

When above code is executed, it produces the following result −

-->