subtly
eb2a4e375a
update for cr. update whisper test.
10 years ago
subtly
e9538b23c8
updates for code-review
10 years ago
subtly
92f9ec8c42
import/export peers and nodes
10 years ago
subtly
5566f335e8
Comments for socket in acceptor. Remove start arg from Host constructor; it is not used and conflicts with restoreNodes being used to set node credentials.
10 years ago
subtly
6381706c66
fix ping-timeouts
10 years ago
subtly
98a2d193c2
updates and fixes for code review
10 years ago
subtly
a73f1fa7c5
add packet-type. prep for node-discovery interop.
10 years ago
subtly
d7e3065f97
Remove unused code paths with confidence. Rename key/identity to alias. Inherit Peer from Node and update Host/Session to use Node::endpoint instead of previous Peer::address.
10 years ago
subtly
c01b6da434
cleanup
10 years ago
subtly
f63e53f735
cleanup, sanity checks, and last pass of noting todos.
10 years ago
subtly
d13f69da59
fix merge conflict
10 years ago
subtly
7ac5c12978
peerinfo created closer to authentication (when it's known). fixes missing m_peer on connect.
10 years ago
subtly
75f231419a
Connectivity and nodetable callbacks. Disable stale code.
10 years ago
subtly
94c09508fd
Merging in new data structure for nodes from node-table. End result will be consolidation into NodeId, Node (id and endpoints), NodeEntry (as in table), and Peer (connected node as in host). Rename PeerInfo to PeerSessionInfo. Rename NodeInfo to PeerInfo. PeerSessionInfo which is information about the Peer connection and will be split/merged into Node and PeerInfo. Add node-table callbacks for Host to perform connect node if there are not enough nodes.
10 years ago
subtly
40e07b312a
Consolidate use of pingAll into keepAlivePeers. Add bool operators for Node and NodeIPEndpoint population. NodeTable returns Node instead of NodeEntry (subject to change). Begin transition from NodeInfo to NodeTable Node.
10 years ago
subtly
fa11fc0149
Persist host identifier to disk. Replace noteNode with addNode. Add udp node port to connect. Add addNode to node table which pings node, potentially adding node to table if node respons. Rename NodeEndpoint to NodeIPEndpoint.
10 years ago
subtly
da9668c0f5
Pass 2 integrating node table. Pruning and merging old node lifecycle logic with new.
Begin moving node identification and authentication into Host so session can be directly-constructed with NodeInfo and is not created until after authentication.
Require session to be passed a valid node.
10 years ago
subtly
5436f90f04
Pass 1 integrating node table. TBD: whether to store/relay cap info.
10 years ago
subtly
71bf6e7ede
udp != tcp. history-commit.
10 years ago
subtly
ce92f4dc72
cleanup
10 years ago
subtly
a23251e9ac
network: move static system-network functions into Network class. Further simplifaction of network lifecycle.
10 years ago
subtly
b10eddc85e
static to member in Host::run()
10 years ago
subtly
8005012f6c
fix naming
10 years ago
subtly
43bf0f01c7
require ioservice to use multiple threads. thread-safe connecting to nodes.
10 years ago
subtly
1bdf76922e
remove spontaneous whitespace
10 years ago
subtly
24bbbefd5d
pr fixes. refactor of network code. moved network-start methods into static methods, as they can only be called during certain stages or do not need Host class. Mutex start/stop. Added m_ifAddresses and removed m_addresses. Rewrite determinePublic. IP address preference is now: user-supplied public > user-supplied private (if localnetwork enabled) > first public4 interface > upnp4 > first private4 interface (if localnetwork enabled) > unspecified. IPv6 addresses are currently ignored (unless manually entered by user) until link-local addresses can be properly detected.
10 years ago
subtly
c479f23561
remove unused method. skip upnp for ipv6.
10 years ago
subtly
de099b2d8b
remove network pause.
fix client repeat-disconnect loop.
removed resolver from getifaddr dance (not reqd) and updated getifaddr code (needs windowz/linux testing).
don't accept new connections if listenport bind fails (possible due to OS firewall settings).
only use upnp w/ipv4 addresses.
re: disconnect loop. Looks like ethhost session isn't deallocating once stopped. Thinking UI might have shared_ptr. For now, letting dealloc/quit continue as long as isOpen returns false -- maybe okay since network will be halted. Also, it maybe possible the issue is due to network thread not running after disconnect so packets aren't tx/rx to kill peer -- either way, it's possible remote end doesn't ack disconnect and timeout/force-close-dealloc is required, so will need more attention later.
10 years ago
arkpar
e166a5a881
fixed crashes on shutdown
10 years ago
Gav Wood
bfd797c3a1
Whisperer in AZ.
More Whisper fixups.
10 years ago
Gav Wood
8f769eae05
Avoid effective disconnect when ignoring data.
10 years ago
Gav Wood
6706c26471
Move misc to dev.* JS API.
Potential crash fix.
UPnP in thread.
10 years ago
Gav Wood
b0cf1e60f6
Fix #394 . Still quite dirty, but correct at least.
10 years ago
Gav Wood
e27922258d
Avoid noting nodes with obviously bad listen ports.
10 years ago
Gav Wood
33ec3ca35d
Pinging, stake disconnecting and better UI.
10 years ago
Gav Wood
2e972be640
Efforts to make reconnect timing strategy more expansive and consistent.
10 years ago
Gav Wood
5d2238d179
Manage dead nodes.
10 years ago
Gav Wood
01eecf58b6
More network fixes.
10 years ago
Gav Wood
7c0ca05bb8
Grow peers uses latest mechanisms.
10 years ago
Gav Wood
07c804a885
Vast P2P networking improvements, mainly for peer discovery, management
and handling.
10 years ago
Gav Wood
20ad46c481
PoC-7: versioned subprotocols.
10 years ago
Gav Wood
b883f0c135
User DNS & poc-5.ethdev.com for peerserver.
10 years ago
Gav Wood
066fc18116
Move out worker thread stuff into other class.
p2p::Host is worker rather than WebThree.
Client is single worker.
EthereumHost works.
10 years ago
Tim Hughes
65401e5b37
Fixed all the VS2013 build issues.
- Updated projects after all the re-potting.
- For simplicity, there's just one VS project for all the libethereum projects, however VS doesn't like duplicate source file names within the same project. To get around this I've created some "single compilation units" for some folders, these probably also compile faster than multiple files.
- Some 32bit only compile errors in RLP (cryptic template ambiguity) were resolved by explicitly invoking operator T() rather than doing a cast to T.
- Moved multiple implementations of toString(h256s const& _bs) into FixedHash.h
- Release shutdown deadlock problem is outstanding.
10 years ago
Gav Wood
484279c548
Beginning of merge into AZ.
10 years ago
Gav Wood
6d209e7885
Add framework for WebThree clients.
10 years ago
Gav Wood
515a1c22a9
Split ethcore off into devcrypto ready for Whisper's crypto and repot namespace.
Rename ethential to devcore.
10 years ago
Gav Wood
4cb7993655
Project-wide reorganisation of namespaces.
10 years ago
Gav Wood
a3740efebb
Repot.
No memsize increase on 0.
10 years ago
Gav Wood
fa1b3853b3
Reorganisation.
10 years ago