Skip to content

Commit

Permalink
mirror the GSClient cid assignment operator to GSUdpServer
Browse files Browse the repository at this point in the history
  • Loading branch information
quartzjer committed May 1, 2014
1 parent 15037d7 commit 28642de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/GSModule/GSUdpServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,10 @@ void GSUdpServer::stop()
gs.disconnect(this->cid);
}

GSUdpServer& GSUdpServer::operator =(GSCore::cid_t cid)
{
this->cid = cid;
return *this;
}

// vim: set sw=2 sts=2 expandtab:
1 change: 1 addition & 0 deletions src/GSModule/GSUdpServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class GSUdpServer : public UDP {
virtual int read(unsigned char *buf, size_t size);
virtual int peek();
virtual void flush();
GSUdpServer& operator =(GSCore::cid_t cid);

// Include other overloads of write
using Print::write;
Expand Down

0 comments on commit 28642de

Please sign in to comment.