SCDoc: Use proper static string constants instead of comparing string literals.
[supercollider.git] / common / SC_Reply.cpp
blob25174180c0ab73fd4ed1d40595b82002b9a4b280
1 /*
2 SuperCollider real time audio synthesis system
3 Copyright (c) 2002 James McCartney. All rights reserved.
4 Copyright (c) 2012 Tim Blechmann
5 http://www.audiosynth.com
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 #include "SC_Reply.h"
24 void null_reply_func(struct ReplyAddress *addr, char* msg, int size)
27 bool operator==(const ReplyAddress& a, const ReplyAddress& b)
29 return a.mSockAddr.sin_addr.s_addr == b.mSockAddr.sin_addr.s_addr
30 && a.mSockAddr.sin_family == b.mSockAddr.sin_family
31 && a.mSockAddr.sin_port == b.mSockAddr.sin_port
32 #ifdef __APPLE__
33 && a.mSockAddr.sin_len == b.mSockAddr.sin_len
34 #endif
35 && a.mSocket == b.mSocket;