diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-03-22 19:12:24 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-03-22 19:12:24 +0000 |
commit | e1d06a00ee72c425d7f6338bf284be0e8c9810ef (patch) | |
tree | 8223fe34197cbcaf6cc056367109d59b91802b68 /ace/SOCK_Dgram.h | |
parent | 493a89b911ce1eec44ea7d2f344fc6da5ff721a2 (diff) | |
download | ATCD-e1d06a00ee72c425d7f6338bf284be0e8c9810ef.tar.gz |
es
Diffstat (limited to 'ace/SOCK_Dgram.h')
-rw-r--r-- | ace/SOCK_Dgram.h | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/ace/SOCK_Dgram.h b/ace/SOCK_Dgram.h index 9a2f8aefce0..f754d8cb64c 100644 --- a/ace/SOCK_Dgram.h +++ b/ace/SOCK_Dgram.h @@ -31,28 +31,28 @@ public: // Default constructor. ACE_SOCK_Dgram (const ACE_Addr &local, - int protocol_family = PF_INET, - int protocol = 0, - int reuse_addr = 0); + int protocol_family = PF_INET, + int protocol = 0, + int reuse_addr = 0); // Initiate a socket dgram. int open (const ACE_Addr &local, - int protocol_family = PF_INET, - int protocol = 0, - int reuse_addr = 0); + int protocol_family = PF_INET, + int protocol = 0, + int reuse_addr = 0); // Initiate a socket dgram. // = Data transfer routines. ssize_t send (const void *buf, - size_t n, - const ACE_Addr &addr, - int flags = 0) const; + size_t n, + const ACE_Addr &addr, + int flags = 0) const; // Send an <n> byte <buf> to the datagram socket (uses sendto(3)). ssize_t recv (void *buf, - size_t n, - ACE_Addr &addr, - int flags = 0) const; + size_t n, + ACE_Addr &addr, + int flags = 0) const; // Receive an <n> byte <buf> from the datagram socket (uses // recvfrom(3)). @@ -63,21 +63,19 @@ public: // returns the number of bytes read. The caller is responsible for // deleting the member in the <iov_base> field of <io_vec>. -#if defined (ACE_HAS_MSG) ssize_t send (const iovec iov[], - size_t n, - const ACE_Addr &addr, - int flags = 0) const; + size_t n, + const ACE_Addr &addr, + int flags = 0) const; // Send an <iovec> of size <n> to the datagram socket (uses // sendmsg(3)). ssize_t recv (iovec iov[], - size_t n, - ACE_Addr &addr, - int flags = 0) const; + size_t n, + ACE_Addr &addr, + int flags = 0) const; // Recv an <iovec> of size <n> to the datagram socket (uses // recvmsg(3)). -#endif /* ACE_HAS_MSG */ void dump (void) const; // Dump the state of an object. @@ -87,7 +85,7 @@ public: protected: int shared_open (const ACE_Addr &local, - int protocol_family); + int protocol_family); // Open is shared by this and by <LSOCK_Dgram>. private: |