ipsec portof - get port field of an ip_address
ipsec setportof - set port field of an ip_address
ipsec sockaddrof - get pointer to internal sockaddr of an ip_address
ipsec sockaddrlenof - get length of internal sockaddr of an ip_address
int portof(const ip_address *src);
void setportof(int port, ip_address *dst);
struct sockaddr *sockaddrof(ip_address *src);
size_t sockaddrlenof(const ip_address *src);
Portof and setportof respectively read and write the port-number field of the internal sockaddr. The values are in network byte order.
Sockaddrof returns a pointer to the internal sockaddr, for passing to other functions.
Sockaddrlenof reports the size of the internal sockaddr, for use in storage allocation.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |