posix-api-0.7.2.0: posix bindings
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Documentation

flags :: Ptr AddressInfo -> IO AddressInfoFlags Source #

Get ai_flags.

family :: Ptr AddressInfo -> IO Family Source #

Get ai_family.

socketType :: Ptr AddressInfo -> IO Type Source #

Get ai_socktype.

protocol :: Ptr AddressInfo -> IO Protocol Source #

Get ai_protocol.

addressLength :: Ptr AddressInfo -> IO CInt Source #

Get ai_addrlen.