diff options
Diffstat (limited to 'net/udp/udp_socket_posix.h')
-rw-r--r-- | net/udp/udp_socket_posix.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/udp/udp_socket_posix.h b/net/udp/udp_socket_posix.h index e27c2f4..eb18daa 100644 --- a/net/udp/udp_socket_posix.h +++ b/net/udp/udp_socket_posix.h @@ -34,6 +34,13 @@ class NET_EXPORT UDPSocketPosix : public base::NonThreadSafe { // Returns a net error code. int Open(AddressFamily address_family); + // Binds this socket to |network|. All data traffic on the socket will be sent + // and received via |network|. Must be called before Connect(). This call will + // fail if |network| has disconnected. Communication using this socket will + // fail if |network| disconnects. + // Returns a net error code. + int BindToNetwork(NetworkChangeNotifier::NetworkHandle network); + // Connects the socket to connect with a certain |address|. // Should be called after Open(). // Returns a net error code. |