diff options
author | btolsch <btolsch@chromium.org> | 2020-04-15 23:26:36 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-04-16 19:09:57 +0000 |
commit | c117a70b3913598e3dfe37b2668a64c0eb5634c7 (patch) | |
tree | 305b08de18d1c48743b478b04481a8e4464a4cf6 /cast/sender/channel/sender_socket_factory.cc | |
parent | f4308e08dc82019521f565bbd201233139c6c7f0 (diff) | |
download | openscreen-c117a70b3913598e3dfe37b2668a64c0eb5634c7.tar.gz |
Rename CastSocket::SendMessage to Send
This change renames both CastSocket::SendMessage and the wrapper
VirtualConnectionRouter::SendMessage to Send. On Windows, translation
units compiled with windows.h will accidentally rename this to
SendMessageA or SendMessageW due Microsoft's macro-ing. This means that
libcast code compiled without windows.h won't link with anything
compiled with windows.h.
Bug: 1050913
Change-Id: I24faa8895a921c4a17a7dafc442a0cbcc980de8e
Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/2152217
Reviewed-by: Ryan Keane <rwkeane@google.com>
Commit-Queue: Brandon Tolsch <btolsch@chromium.org>
Diffstat (limited to 'cast/sender/channel/sender_socket_factory.cc')
-rw-r--r-- | cast/sender/channel/sender_socket_factory.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cast/sender/channel/sender_socket_factory.cc b/cast/sender/channel/sender_socket_factory.cc index bf89de88..84826bdc 100644 --- a/cast/sender/channel/sender_socket_factory.cc +++ b/cast/sender/channel/sender_socket_factory.cc @@ -92,7 +92,7 @@ void SenderSocketFactory::OnConnected( PendingAuth& pending = *pending_auth_.back(); CastMessage auth_challenge = CreateAuthChallengeMessage(pending.auth_context); - Error error = pending.socket->SendMessage(auth_challenge); + Error error = pending.socket->Send(auth_challenge); if (!error.ok()) { pending_auth_.pop_back(); client_->OnError(this, endpoint, error); |