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

Posix.Struct.AddressInfo.Poke

Description

Setters for assigning fields of 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 -> AddressInfoFlags -> IO () Source #

Get ai_flags.

family :: Ptr AddressInfo -> Family -> IO () Source #

Get ai_family.

socketType :: Ptr AddressInfo -> Type -> IO () Source #

Get ai_socktype.

protocol :: Ptr AddressInfo -> Protocol -> IO () Source #

Get ai_protocol.

addressLength :: Ptr AddressInfo -> CInt -> IO () Source #

Get ai_addrlen.

address :: Ptr AddressInfo -> Ptr SocketAddress -> IO () Source #

Get ai_addr.

next :: Ptr AddressInfo -> Ptr AddressInfo -> IO () Source #

Get ai_next.