projects
/
swifty.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14bddef
)
Implement the copy constructor for the Address structure.
author
Adrian Bondrescu
<adi.bondrescu@gmail.com>
Thu, 31 May 2012 23:36:57 +0000
(
02:36
+0300)
committer
Adrian Bondrescu
<adi.bondrescu@gmail.com>
Thu, 31 May 2012 23:36:57 +0000
(
02:36
+0300)
src/libswift/swift.h
patch
|
blob
|
history
diff --git
a/src/libswift/swift.h
b/src/libswift/swift.h
index
d44b882
..
288238a
100644
(file)
--- a/
src/libswift/swift.h
+++ b/
src/libswift/swift.h
@@
-108,6
+108,11
@@
namespace swift {
Address() {
clear();
}
+ Address(const Address &b) {
+ clear();
+ addr->dests[0].addr = b.addr->dests[0].addr;
+ addr->dests[0].port = b.addr->dests[0].port;
+ }
Address(const char* ip, uint16_t port) {
clear();
set_ipv4(ip);