diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-17 06:10:20 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-17 06:10:20 +0000 |
commit | fd0ca11848ed29a280ad45b967ad20397a613987 (patch) | |
tree | aa0e6980bb44858d02010cf34571412a54943395 /remoting/protocol/socket_util.h | |
parent | 3bccb2aea8bd0d95055f1b4122ed5977e7fc9b6c (diff) | |
download | chromium_src-fd0ca11848ed29a280ad45b967ad20397a613987.zip chromium_src-fd0ca11848ed29a280ad45b967ad20397a613987.tar.gz chromium_src-fd0ca11848ed29a280ad45b967ad20397a613987.tar.bz2 |
Remove remoting/jingle_glue
Moved all files from remoting/jingle_glue to remoting/signaling and
remoting/protocol.
The new remoting/signaling directory contains signaling layer implementation
for remoting that can be used independently of remoting/protocol.
TBR=rch@chromium.org
Review URL: https://codereview.chromium.org/390983003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283654 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/socket_util.h')
-rw-r--r-- | remoting/protocol/socket_util.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/remoting/protocol/socket_util.h b/remoting/protocol/socket_util.h new file mode 100644 index 0000000..1f9fff5 --- /dev/null +++ b/remoting/protocol/socket_util.h @@ -0,0 +1,23 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef REMOTING_PROTOCOL_SOCKET_UTIL_H_ +#define REMOTING_PROTOCOL_SOCKET_UTIL_H_ + +namespace remoting { + +// Enum for different actions that can be taken after sendto() returns an error. +enum SocketErrorAction { + SOCKET_ERROR_ACTION_FAIL, + SOCKET_ERROR_ACTION_IGNORE, + SOCKET_ERROR_ACTION_RETRY, +}; + +// Returns true if |error| must be ignored when returned from sendto(). |retry| +// is set set when sentto() should be called for the same packet again. +SocketErrorAction GetSocketErrorAction(int error); + +} // namespace remoting + +#endif // REMOTING_PROTOCOL_SOCKET_UTIL_H_ |