Commit Graph

304 Commits (51e52401fececa2c760bcd23b12141f4b3e3af13)

Author SHA1 Message Date
Peter Šurda 51e52401fe
Windows plaform check pythonic
- moved to .startswith instead of 'in'
- thanks @Lvl4sword
7 years ago
Peter Šurda d635e515b9
Big Asyncore update
- most of the stuff is done so it partially works
- disabled pollers other than select (debugging necessary)
- can switch in the settings, section network, option asyncore (defaults
to False)
7 years ago
Dmitri Bogomolov 34084bbc80
Total cleanup and simple script installation 7 years ago
Peter Šurda 6062277d60
Rename to
- it was causing problems with py2app because the source of python's own
  CongigParser is also
7 years ago
Peter Šurda e664746f04
More knownNodes init
- also init children if they are missing
7 years ago
Peter Šurda 35a712d11d
KnownNodes missing init
- init knownnodes when connecting to a stream
7 years ago
Peter Šurda 157881bc63
Cyclic import fix
- networkDefaultProofOfWorkNonceTrialsPerByte and
  networkDefaultPayloadLengthExtraBytes cyclic import fix
- PyBitmessage should launch now when there's no keys.dat
7 years ago
Peter Šurda 59f3a2fbe7
Reduce cyclic dependencies
- rearranged code to reduce cyclic dependencies
- doCleanShutdown is separated in
- shared queues are separated in
- some default values were moved to
- knownnodes partially moved to
7 years ago
Peter Šurda f6bdad18a3
Improved stream handling
- version command sends list of all participating streams
- biginv sends lists of hosts for all streams the peer wants (plus
  immediate children)
- objects will spread to all peers that advertise the associated stream
- please note these are just network subsystem adjustments, streams
  aren't actually usable yet
7 years ago
Peter Šurda 4f70eaa01f
Fix curses mode 7 years ago
Peter Šurda fa0a3135e7
Fixes pointed out by
- missing/wrong/obsolete imports
- logger formatting
7 years ago
Peter Šurda ac348e4e6b
Fixes and refactoring
- fixes errors introduced in the earlier refactoring
- more variables moved to
- path finding functions moved to
- remembers IPv6 network unreachable (in the future can be used to skip
  IPv6 for a while)
7 years ago
Peter Šurda 8bcfe80ad0
Refactoring of config parser and
- got rid of shared config parser and made it into a singleton
- refactored safeConfigGetBoolean as a method of the config singleton
- refactored safeConfigGet as a method of the config singleton
- moved softwareVersion from into
- moved some global variables from into
- moved some protocol-specific functions from into
7 years ago
Peter Šurda e84b19613e
Inventory refactoring
- minor refactoring, made it into singleton instead of a shared global
  variable. This makes it a little bit cleaner and moves the class into
a separate file
- removed duplicate inventory locking
- renamed to (this is the code that
  ensures only one instance of PyBitmessage runs at the same time)
7 years ago
Peter Šurda 60c447f56b
Merge commit 'd3a0404274e5105b9d6279901246af8f7009eb6d' into v0.6
- "env python2.7.x" was causing problems
7 years ago
Peter Šurda 36a04fd7d9
Add SMTP server
- you can now use SMTP to send messages
- uses bmaddr.lan domain
- runs on if you set "smtpd" to True
- mandatory authentication with smtpdusername and smtpdpassword
7 years ago
ng0 d3a0404274 Fix python shebangs from `#!/usr/bin/env python2.7*' to `#!/usr/bin/python2.7'.
* src/ fix it.
* src/ same.

This fixes #887.
7 years ago
Peter Šurda 685ff6cecd
Startup fixes
- correctly test for "smtpdeliver" variable without crashing
- new method for safely getting values from config even if the option
  may be missing
8 years ago
Peter Šurda d3e8771aed
Lock file fixes
- daemon mode lock file didn't work correctly in the last commit
8 years ago
Peter Šurda 4865659d72
Main process fixes
- handles old dialog versions better if using curses
- can spawn SMTP delivery thread if configured (only when in daemon
- daemonized mode now works more like it's properly supposed to on unix
  (double fork etc). You may have to adjust your init scripts, when
  when using upstart for example you should now use "expect daemon"
- daemon mode now cleanly shuts down when TERM/INT signal is received
8 years ago
mailchuck b724d3ee4f Copyright year updates 8 years ago
mirrorwish 554627dd92 Refactor Inventory 8 years ago
mailchuck 0ab0e6757a Restrict pending parallel requests on proxy
This saves some network resources if using Tor, for example.
8 years ago
mailchuck bcae62938a Unused variable 8 years ago
mailchuck 24a2deed8f Cleanup lockfile on exit design was broken.
Fixed Bitmessage#775
8 years ago
mailchuck 6a965cd31a Don't test for Qt in daemon mode
Initialisation of the daemon variable was missing at launch.

Fixes #161
8 years ago
mailchuck 549d91dc68 Re-disable windows SMP frozen support
The recommended workaround didn't work.
8 years ago
mailchuck d0b73eb211 SMP fix for frozen Windows 8 years ago
mailchuck d69c2e097f Cleaner shutdown
Addresses Bitmessage#549
8 years ago
mailchuck c03c563a74 Make UPnP into a thread
- UPnP is now a separate thread that will continue to setup UPnP
- shutdown waits for threads that shutdown correctly (Addresses
8 years ago
Denilson M. Amorim 28f46cb8b3 Dont run twice if daemon too 8 years ago
Denilson M. Amorim cf610080b9 Squash: Single instance and pop up old instance 8 years ago
lightrabbit f0f9f679e6 Add UPnP support. 8 years ago
sbkaf 800fd2a143 finished implementing more email client like interface 8 years ago
sbkaf 585873e4f3 interface 8 years ago
Jonathan Warren ba27f6e8a6 Made error message for Raspberry Pi users less serious-sounding 9 years ago
bmng-dev 23b55652b9 New depends module to check dependencies. Moved version check to new depends module. 9 years ago
Jonathan Warren fdb0d1e776 Merge branch 'master' into ProtoV3 9 years ago
Jonathan Warren 61653bdc0d Revert "Catch the standard Unix SIGTERM kill signal and do a graceful shutdown" 9 years ago
Jonathan Warren e096c37f7e save debug.log in correct directory 9 years ago
Jonathan Warren b6e0396333 resolve minor merge conflict with master 9 years ago
Jonathan Warren c306062282 Bitmessage Protocol Version Three 9 years ago
JonathanCoe 3b42805efc Catch the standard Unix SIGTERM kill signal and do a graceful shutdown of PyBitmessage.
We already do this for the SIGINT kill signal. The change allows us to do a clean
shutdown of PyBitmessage when its process has been separated from the terminal.
9 years ago
Jonathan Warren ea6f34ade6 removed use of memoryview so that we can support python 2.7.3 9 years ago
bmng-dev 4430ed0cb5 Improve version check
Move version check so it is the very first thing we do.
Perform version check for all platforms
Ensure backwards and forwards compatibility
9 years ago
Ruben de Vries c8bf3ccc63 moved the check for PyQt so that we don't need to install it when running -c 10 years ago
Jonathan Warren a2a7edc9be resolve merge conflict 10 years ago
Luke Montalvo 01003fc56c Merge branch 'master' of 10 years ago
Luke Montalvo 813f4c7ed9 + Add dependency list
+ Add stderr capturing
+ Add identities and network status tabs
+ Add dialogs to configure identities
+ Add color pair definitions
+ Add the '-c' flag to use the curses interface
* Reorganize imports
* Switch logger to file_only mode when running with curses
10 years ago
Neil Roberts 7da6ea958f Add support for IPv6
It will now listen on an IPv6 socket if possible or fall back to IPv4
if that doesn't work. It will no longer filter out all IPv6 addresses
and instead it will only filter out those that point to the local

It looks like the DNS bootstrapping should just automatically work
because getaddrinfo already returns IPv6 addresses from the AAAA

In order to convert from the ASCII representation of IPv6 addresses
and back we need inet_ntop and inet_pton. Python 2 doesn't currently
provide these for Windows so instead this patch provides a hot patch
to the socket module which wraps WSAStringToAddress and
WSAAddressToString using ctypes.
10 years ago