對於一對一樣式 Socket ,會忽略id欄位。 sctp_freepaddrs子常式會釋放sctp_getpaddrs子常式所配置的所有資源。 回覆值 成功時,sctp_getpaddrs子常式會傳回關聯中對等節點位址的數目。 如果此 Socket 上沒有關聯,則會傳回 0 ,且未定義* addrs欄位的值。 發生錯誤時,sctp_getpaddrs子常式會傳回 -1 ,且...
sctp_getpaddrs()函数将返回关联中的所有对等地址。 int sctp_getpaddrs(intsock, sctp_assoc_tid, void**addrs); 当sctp_getpaddrs()函数成功返回时,**addrs参数的值将指向每个地址相应类型的动态分配的压缩sockaddr结构数组。调用线程使用sctp_freepaddrs()函数释放内存。**addrs参数的值不能为NULL。如果sock...
sctp_freepaddrsサブルーチンは、sctp_getpaddrsサブルーチンによって割り当てられたすべてのリソースを解放します。 戻り値 成功時には、sctp_getpaddrsサブルーチンはアソシエーション内のピア・アドレスの数を返します。 このソケット上にアソシエーションが存在しない場合は、0 が返さ...
sctp_getpaddrs \- Returns all peer addresses in an association. .SH SYNOPSIS .nf .B #include <sys/types.h> .B #include <sys/socket.h> .B #include <netinet/sctp.h> .sp .BI "int sctp_getpaddrs(int " sd ", sctp_assoc_t " assoc_id , .BI " struct sockaddr **" addrs ); ...
Thesctp_freepaddrssubroutine frees all the resources allocated by thesctp_getpaddrssubroutine. Return value On success, thesctp_getpaddrssubroutine returns the number of peer addresses in the association. If there is no association on this socket, 0 is returned and the value of the*addrsfield ...