Current time: 11-25-2024, 05:57 PM Hello There, Guest! (LoginRegister)


Post Reply 
new code for the daemon :)
Author Message
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #1
Wink new code for the daemon :)
I'm just about to commit some more changes I just made to the code.
Within those changes there is some new code for the daemon Big Grin

The new version doesn't include new features but to allow to say helo and then bye (instead of the old behaviour that required to say: helo, execute query, bye).

I've also tried to clean up the code and the Makefiles so it should be easier to understand now.

Just for the record:

Quote:$ telnet localhost 9876
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
250 OK ispCP Daemon v1.1 Welcomes You!
helo ME Smile
250 OK 127.0.0.1/ME Smile
execute query
250 OK request is being processed.
bye
250 OK Good Bye!
Connection closed by foreign host.
and
Quote:$ telnet localhost 9876
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
250 OK ispCP Daemon v1.1 Welcomes You!
helo it's me once again
250 OK 127.0.0.1/it's me once again
bye
250 OK Good Bye!
Connection closed by foreign host.
07-18-2007 01:25 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: new code for the daemon :)
Cool Cool
Good work raphael.
07-18-2007 03:46 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #3
RE: new code for the daemon :)
Hi raphael

With this change an extension of the "Port 9876 Protocol" is not possible anymore.
If there are no plans to ever add new commands to the handshake it's fine. On the other side this
Code:
execute query
250 OK request is being processed.
is not really time consuming, is it?

Well, since there are plans to completely start a new modular control panel thing (ispcp not omega) - this change cannot be so bad :-)

/Cheers (sorry, I'm very busy at the moment, but I hope to find some time for ticket 387)
07-18-2007 08:45 PM
Visit this user's website Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #4
RE: new code for the daemon :)
joximu Wrote:With this change an extension of the "Port 9876 Protocol" is not possible anymore.
what do you mean?
joximu Wrote:
Code:
execute query
250 OK request is being processed.
is not really time consuming, is it?
it does what is has always been doing: run the requests manager

Just to clarify: there's no need to manually connect to the daemon, the GUI does this when required.
07-19-2007 02:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #5
RE: new code for the daemon :)
raphael Wrote:
joximu Wrote:With this change an extension of the "Port 9876 Protocol" is not possible anymore.
what do you mean?
joximu Wrote:
Code:
execute query
250 OK request is being processed.
is not really time consuming, is it?
it does what is has always been doing: run the requests manager

Just to clarify: there's no need to manually connect to the daemon, the GUI does this when required.

Yes, I know. I just imagined, maybe there could be a way to say:
"execute query" - this runs the actual code.
Or we could expand the "protocol" and say
"execute another query" - and then some very useful thing is done which cannot be put into the database of today...
But - no problem. I think it's not needed to create a more sophisticated protocol :-)
so - connect and disconnect (more ore less) is enough to start the request manager...

:-) Cheers
07-19-2007 05:09 AM
Visit this user's website Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #6
RE: new code for the daemon :)
joximu Wrote:
raphael Wrote:
joximu Wrote:With this change an extension of the "Port 9876 Protocol" is not possible anymore.
what do you mean?
joximu Wrote:
Code:
execute query
250 OK request is being processed.
is not really time consuming, is it?
it does what is has always been doing: run the requests manager

Just to clarify: there's no need to manually connect to the daemon, the GUI does this when required.

Yes, I know. I just imagined, maybe there could be a way to say:
"execute query" - this runs the actual code.
Or we could expand the "protocol" and say
"execute another query" - and then some very useful thing is done which cannot be put into the database of today...
But - no problem. I think it's not needed to create a more sophisticated protocol :-)
so - connect and disconnect (more ore less) is enough to start the request manager...

:-) Cheers
The problem with that is that anyone can connect to the daemon so anyone would be able to run a query
07-19-2007 05:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #7
RE: new code for the daemon :)
raphael Wrote:The problem with that is that anyone can connect to the daemon so anyone would be able to run a query

yeah, that's why it's maybe better not to build a big system on this base...

ms would do that - because of the compatibility :-)))
07-19-2007 08:13 AM
Visit this user's website Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #8
RE: new code for the daemon :)
joximu Wrote:yeah, that's why it's maybe better not to build a big system on this base...

some parts can be kept... and some others only need to cleaned up Big Grin
07-19-2007 08:43 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ibiza4000 Offline
Junior Member
*

Posts: 19
Joined: Feb 2007
Reputation: 0
Post: #9
RE: new code for the daemon :)
raphael excellent work with the daemon!!
its good to see some time being spent on the daemon
07-21-2007 12:46 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)