Skip to content

Commit

Permalink
added missing 'public' inheritance to SocketRpcChannel, added SocketR…
Browse files Browse the repository at this point in the history
…pcChannel::IsClosed
  • Loading branch information
Niall Ryan authored and Niall Ryan committed Aug 19, 2011
1 parent d96dabf commit b407669
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Cpp/Source/ProtoBufRemote/SocketRpcChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ void SocketRpcChannel::CloseAndJoin()
}
}

bool SocketRpcChannel::IsClosed()
{
return (m_socket == INVALID_SOCKET);
}

unsigned int SocketRpcChannel::GetAndClearBytesRead()
{
return _InterlockedExchange(reinterpret_cast<LONG*>(&m_bytesRead), 0);
Expand Down
4 changes: 3 additions & 1 deletion Cpp/Source/ProtoBufRemote/SocketRpcChannel.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace ProtoBufRemote {

class SocketRpcChannel : RpcChannel
class SocketRpcChannel : public RpcChannel
{
public:
SocketRpcChannel(RpcController* controller, SOCKET socket);
Expand All @@ -17,6 +17,8 @@ class SocketRpcChannel : RpcChannel

void CloseAndJoin();

bool IsClosed();

virtual void Send(const RpcMessage& message);

unsigned int GetAndClearBytesRead();
Expand Down

0 comments on commit b407669

Please sign in to comment.