Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Refactorization, socket replacement#1

Merged
nikdoof merged 16 commits into
nikdoof:masterfrom
kjagiello:master
Jun 5, 2011
Merged

Refactorization, socket replacement#1
nikdoof merged 16 commits into
nikdoof:masterfrom
kjagiello:master

Conversation

@kjagiello

Copy link
Copy Markdown
Contributor

First of all, thanks for your great job. Your library is exactly (almost ;)) what I was looking!

I was just looking for some good python class for working with TS3 Server Query and I liked this one, but I had some problems with it. First of all, I couldn't even connect to the server, had some problems with reading the server response so instead of fixing it I thought it would be better to replace sockets with a telnetlib library instead of playing with raw sockets.

I did also some code refactoring and what is important, I changed also behaviour of send_command method. I wanted it to return me the whole server response and I think that it should work like this from the first beginning. I wrapped it in TS3Response class and we may more methods to it to make it easier to work with the response data.

TS3Response.response holds now status of the server query
TS3Response.data holds any extra data that was sent by the server - for example search result

nikdoof added a commit that referenced this pull request Jun 5, 2011
Refactorization, socket replacement
@nikdoof nikdoof merged commit e22a3b7 into nikdoof:master Jun 5, 2011
@nikdoof

nikdoof commented Jun 5, 2011

Copy link
Copy Markdown
Owner

Looking good, most of the stuff I was looking to do but never had time to do :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants