Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1700)

Unified Diff: runtime/bin/socket.h

Issue 908873002: Add support to specify the source address for socket connect (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Windows fix Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/bin/socket.h
diff --git a/runtime/bin/socket.h b/runtime/bin/socket.h
index ae59c5aa1d24390da12d77d3dedcbb0c223a660b..bd0c3c979d28a4964d9d9459c9a0af2c2531f885 100644
--- a/runtime/bin/socket.h
+++ b/runtime/bin/socket.h
@@ -227,10 +227,11 @@ class Socket {
intptr_t fd, const void* buffer, intptr_t num_bytes, RawAddr addr);
static intptr_t RecvFrom(
intptr_t fd, void* buffer, intptr_t num_bytes, RawAddr* addr);
- static intptr_t Create(RawAddr addr);
- static intptr_t Connect(intptr_t fd, RawAddr addr, const intptr_t port);
static intptr_t CreateConnect(RawAddr addr,
const intptr_t port);
+ static intptr_t CreateBindConnect(RawAddr addr,
+ const intptr_t port,
+ RawAddr source_addr);
kustermann 2015/02/10 10:06:54 You could pass these RawAddr's as const Reference
Søren Gjesse 2015/02/10 11:13:33 Done. I will do another change to change this in m
static intptr_t CreateBindDatagram(
RawAddr* addr, intptr_t port, bool reuseAddress);
static intptr_t GetPort(intptr_t fd);

Powered by Google App Engine
This is Rietveld 408576698