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

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: Added dart2js patch file 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..831e1dddb6e8d1fb42b2d693d035728425710541 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,
+ static intptr_t CreateConnect(const RawAddr& addr,
const intptr_t port);
+ static intptr_t CreateBindConnect(const RawAddr& addr,
+ const intptr_t port,
+ const RawAddr& source_addr);
static intptr_t CreateBindDatagram(
RawAddr* addr, intptr_t port, bool reuseAddress);
static intptr_t GetPort(intptr_t fd);
« no previous file with comments | « runtime/bin/io_natives.cc ('k') | runtime/bin/socket.cc » ('j') | sdk/lib/io/socket.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698