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

getsockname

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

描述 (Description)

此函数返回网络套接字SOCKET本地端的打包地址。

语法 (Syntax)

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

getsockname SOCKET

返回值 (Return Value)

此函数在错误时返回undef,否则在标量上下文中返回本地套接字的打包地址。

<!--

例子 (Example)

Following is the example code showing its basic usage −

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

-->