## NAME

ACE_SOCK_CODgram - Defines the member functions for the ACE_SOCK connected datagram abstraction.

## SYNOPSIS

    #include <ace/SOCK_CODgram.h>

    class ACE_SOCK_CODgram : public ACE_SOCK_IO
    {
      public:
        ACE_SOCK_CODgram (void);
        ACE_SOCK_CODgram (
            const ACE_Addr &remote_sap,
            const ACE_Addr &local_sap = ACE_Addr::sap_any,
            int protocol_family = PF_INET,
            int protocol = 0,
            int reuse_addr = 0
            );
        ~ACE_SOCK_CODgram (void);
        int open (
            const ACE_Addr &remote_sap,
            const ACE_Addr &local_sap = ACE_Addr::sap_any,
            int protocol_family = PF_INET,
            int protocol = 0,
            int reuse_addr = 0
            );
        void dump (void) const;
        ACE_ALLOC_HOOK_DECLARE;
    };

## Initialization methods.

    ACE_SOCK_CODgram (void);

Default constructor.

    ACE_SOCK_CODgram (
        const ACE_Addr &remote_sap,
        const ACE_Addr &local_sap = ACE_Addr::sap_any,
        int protocol_family = PF_INET,
        int protocol = 0,
        int reuse_addr = 0
        );

    ~ACE_SOCK_CODgram (void);

Default dtor.

Initiate a connected dgram.

    int open (
        const ACE_Addr &remote_sap,
        const ACE_Addr &local_sap = ACE_Addr::sap_any,
        int protocol_family = PF_INET,
        int protocol = 0,
        int reuse_addr = 0
        );

Initiate a connected dgram.

    void dump (void) const;

Dump the state of an object.

    ACE_ALLOC_HOOK_DECLARE;

Declare the dynamic allocation hooks.

## AUTHOR

Doug Schmidt

## LIBRARY

ace