aboutsummaryrefslogtreecommitdiffstats
path: root/skype/skyped.py
Commit message (Collapse)AuthorAgeLines
* Clean up some leftover debug messagesMiklos Vajna2010-12-29-10/+9
|
* Close connection when going offlinePhilippe Crama2010-12-28-1/+4
| | | | | | | | | | | | When the user disconnects from bitlbee (either by quitting or by logging out "account skype off"), skyped should close its connection and wait for a new connection. This change is useful to make the test cases pass as otherwise, skyped would not notice that the first test was done and that the second test was trying to connect, thus leading to a failure in the second test.
* Check that connection is still valid before sending/retryingPhilippe Crama2010-12-28-2/+3
| | | | | | | | Since another thread might close the socket, make sure after the lock is acquired that the connection is still valid. Add global declaration for completeness
* Add locking to ensure only one thread accesses the socketunknown2010-12-24-16/+45
| | | | | | | | The Skype API calls the OnNotify callback in a separate thread: see http://skype4py.sourceforge.net/doc/html/Skype4Py.utils.EventHandlingBase-class.html Tested informally (chatting with another person for > 15 min)
* Bugfixes: when skipping PINGing bitlbee, update PONG timestamp, watch input ↵Philippe Crama2010-12-22-3/+6
| | | | socket for exceptional situations
* Make skyped restart itselfPhilippe Crama2010-12-20-19/+53
| | | | | | | Now skyped.py detects broken sockets and restarts itself waiting for a new connection: this sould help with passing the tests (see branch NetBSD-test-suite)
* More debugging ouput to make sure the skype daemon is not deadPhilippe Crama2010-12-19-0/+2
|
* Remove dependency on gobject and use select standard modulePhilippe Crama2010-12-17-10/+31
| | | | | | | | This is a restart of the windows-skyped branch based on the updated bitlbee-skype using the builtin SSL libs of Python. This version connects, but hangs for long times... to be continued
* new testcaseMiklos Vajna2010-12-13-2/+21
|
* Use internal ssl module instead of pyopenssl or python-gnutlsMiklos Vajna2010-12-11-16/+8
| | | | | This results in shorter code and is available on Windows as well.
* skyped: change it to python2.7 just in case python would be python3k alreadyMiklos Vajna2010-10-25-1/+1
|
* Typo fix: --debug was --daemonMiklos Vajna2010-06-25-1/+1
| | | | | From: Arthaey Angosii <arthaey@gmail.com>
* copyrightMiklos Vajna2010-04-18-1/+1
|
* skyped: use os.path.expanduser for file paths in configMiklos Vajna2010-04-12-2/+2
| | | | | Requested-by: ilf <ilf@gmx.net>
* skyped: fix a typeerrorMiklos Vajna2010-03-08-1/+1
|
* skyped: cleanupMiklos Vajna2009-12-09-2/+0
|
* skyped: let the error message suggest placing the config file under ~/.skypedMiklos Vajna2009-08-31-2/+4
| | | | | | | | | so the new error message will be like: $ python skyped.py -d -n Can't find configuration file at '/home/vmiklos/.skyped/skyped.conf'. Use the -c option to specify an alternate one.
* dprint() now timestamps debug messagesLeho Kraav2009-08-18-2/+5
| | | | | | | | it's good to know when exactly a problem occurs. [ mv: minor rewording of the commit message and filter pointless mode change ]
* add support for user-wide config filesMiklos Vajna2009-04-29-1/+3
| | | | | | | in the past the config file was expected in /etc/skyped, change this to ~/.skyped, and just fall back to the previous path if it's not available.
* skyped: add logfile optionMiklos Vajna2009-02-18-2/+10
| | | | | | using this option messages are not lost when not running in foreground mode
* skyped: handle the case when LANG and LC_ALL env vars are emptyMiklos Vajna2009-02-17-1/+4
|
* skyped: use hashlib instead of sha (python2.6 warning)Miklos Vajna2008-12-30-2/+2
|
* fix typo in skyped -hMiklos Vajna2008-12-22-1/+1
|
* replace /dev/null with os.devnull in skypedMiklos Vajna2008-12-21-2/+2
|
* skyped: handle the case when even reading the user/pass failsMiklos Vajna2008-11-16-6/+11
| | | | | | ideally this is rare, i never got a network error right after connect, but you can never be sure.. ;)
* skyped: when sending, encode using utf8 if we can't get the system defaultMiklos Vajna2008-09-08-1/+4
| | | | | this fixes a runtime error on osx
* ignore error if not yet started skyped fails to shut downMiklos Vajna2008-09-06-1/+5
| | | | | at this points skyped runs fine for me on osx (plugin is not yet tested)
* skyped: send periodically a 'PING' to the clientMiklos Vajna2008-07-12-3/+14
| | | | | also ignore the 'PONG' output from it (so don't forward it to skype)
* remove no longer used CLIENT_NAMEMiklos Vajna2008-05-19-1/+0
|
* allow setting the port from the config fileMiklos Vajna2008-05-19-3/+16
|
* don't die on failed handshakeMiklos Vajna2008-05-19-1/+5
|
* skyped: close the socket on read/write errorMiklos Vajna2008-05-16-1/+3
| | | | | | - it turns out that once we have a read/write error we can never use the socket again so just close it then bitlbee will reconnect properly
* add python-gnutls support and make it default if availableMiklos Vajna2008-05-01-7/+17
| | | | | | | | - this change in general should be ok, since openssl has problems when using it from gpl software which is distributed as a binary. - anyway, i hope that this will solve that magic "Fatal Python error: PyEval_RestoreThread: NULL tstate" error. at least it worth a try.
* modularize openssl codeMiklos Vajna2008-05-01-1/+2
| | | | | - so that later we may use gnutls as well (or other ssl implementations)
* and same for receive: catch any errorMiklos Vajna2008-05-01-1/+2
|
* catch any error on send (ie SysCallError as well)Miklos Vajna2008-04-28-1/+1
|
* skyped: use gobject.timeout_add() to make it more responsiveMiklos Vajna2008-04-20-2/+1
|
* a fix for python-2.4 compatibilityMiklos Vajna2008-04-06-1/+1
| | | | | | - interesting, it has been reported this is the only problem, though ideally skype4py doesn't work with python-2.4 either ;)
* skyped: don't exit when bitlbee disconnectsMiklos Vajna2008-02-29-1/+1
|
* add support for account set -del skype/callMiklos Vajna2008-02-29-1/+4
| | | | | to finish an outgoing call
* skyped: remove comment, we use skype4py alreadyMiklos Vajna2008-02-23-4/+0
|
* kill skype on shutdownMiklos Vajna2008-02-23-4/+5
|
* small cleanupMiklos Vajna2008-02-23-1/+0
|
* skyped: automatically start skype if necessaryMiklos Vajna2008-02-23-2/+3
|
* remove unnecessary import of threading from skypedMiklos Vajna2008-02-19-1/+0
|
* skyped: catch KeyboardInterrupts everywhereMiklos Vajna2008-01-12-3/+10
|
* skyped: update copyright yearMiklos Vajna2008-01-12-1/+1
|
* auth via sslMiklos Vajna2008-01-12-14/+18
| | | | | | | | - move the config file to sysconfdir/skyped/skyped.conf as there will other config files there, too - autogenerate the ssl paths in skyped.conf.dist - skype plugin: connect via ssl - skyped: listen via ssl
* skyped: add authentication supportMiklos Vajna2008-01-12-20/+61
| | | | | this is not yet ssl, but better than nothing
* skyped: allow overwriting the host '0.0.0.0'Miklos Vajna2008-01-11-3/+7
|