diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2009-03-04 04:22:50 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2009-03-04 04:22:50 +0000 |
| commit | 226868507b7d81df9e779f8472b38dbf4c44d14f (patch) | |
| tree | fa264d419eac9d0880c45e67305eee47b79ff502 /cpp/src/qpid/sys/posix | |
| parent | 23b5cf86fe6ee3fe38281435b60db15c26d200fb (diff) | |
| download | qpid-python-226868507b7d81df9e779f8472b38dbf4c44d14f.tar.gz | |
QPID-1710 Removed unnecessary nonportable internal API
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749894 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/posix')
| -rw-r--r-- | cpp/src/qpid/sys/posix/AsynchIO.cpp | 2 | ||||
| -rw-r--r-- | cpp/src/qpid/sys/posix/Socket.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/qpid/sys/posix/AsynchIO.cpp b/cpp/src/qpid/sys/posix/AsynchIO.cpp index 9e2772e18a..a914dc817a 100644 --- a/cpp/src/qpid/sys/posix/AsynchIO.cpp +++ b/cpp/src/qpid/sys/posix/AsynchIO.cpp @@ -123,7 +123,7 @@ void AsynchAcceptorPrivate::readable(DispatchHandle& h) { // TODO: Currently we ignore the peers address, perhaps we should // log it or use it for connection acceptance. try { - s = socket.accept(0, 0); + s = socket.accept(); if (s) { acceptedCallback(*s); } else { diff --git a/cpp/src/qpid/sys/posix/Socket.cpp b/cpp/src/qpid/sys/posix/Socket.cpp index 415d5293ef..8e086c9a27 100644 --- a/cpp/src/qpid/sys/posix/Socket.cpp +++ b/cpp/src/qpid/sys/posix/Socket.cpp @@ -189,9 +189,9 @@ int Socket::listen(uint16_t port, int backlog) const return ntohs(name.sin_port); } -Socket* Socket::accept(struct sockaddr *addr, socklen_t *addrlen) const +Socket* Socket::accept() const { - int afd = ::accept(impl->fd, addr, addrlen); + int afd = ::accept(impl->fd, 0, 0); if ( afd >= 0) return new Socket(new IOHandlePrivate(afd)); else if (errno == EAGAIN) |
