| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Posix.Struct.AddressInfo.Peek
Description
Accessors for reading from struct addrinfo:
struct addrinfo {
int ai_flags;
int ai_family;
int ai_socktype;
int ai_protocol;
socklen_t ai_addrlen;
struct sockaddr *ai_addr;
char *ai_canonname;
struct addrinfo *ai_next;
};Synopsis
- flags :: Ptr AddressInfo -> IO AddressInfoFlags
- family :: Ptr AddressInfo -> IO Family
- socketType :: Ptr AddressInfo -> IO Type
- protocol :: Ptr AddressInfo -> IO Protocol
- addressLength :: Ptr AddressInfo -> IO CInt
- address :: Ptr AddressInfo -> IO (Ptr SocketAddress)
- next :: Ptr AddressInfo -> IO (Ptr AddressInfo)
Documentation
socketType :: Ptr AddressInfo -> IO Type Source #
Get ai_socktype.
addressLength :: Ptr AddressInfo -> IO CInt Source #
Get ai_addrlen.
address :: Ptr AddressInfo -> IO (Ptr SocketAddress) Source #
Get ai_addr.
next :: Ptr AddressInfo -> IO (Ptr AddressInfo) Source #
Get ai_next.