Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-05

Server software in pascal?

6 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Francisco Reyes

I have not used Pascal in a while, but I am exploring whether to use pascal for a tcp server software. In particular it would be a policy server for postfix mail transfer agent.

Any comments/suggestions/pointers for the following will be greatly appreciated:

* sending data to syslog
* Listening in TCP socket

Dusted off an old pascal book.. to refreh my mind in the syntax.. but it would be most helpfull if there are any libraries for the 2 above items.

Daniël Mantione
to Francisco Reyes

Op Fri, 25 May 2007, schreef Francisco Reyes:

Show quoted text 13 lines
I have not used Pascal in a while, but I am exploring whether to use pascal for a tcp server software. In particular it would be a policy server for postfix mail transfer agent. Any comments/suggestions/pointers for the following will be greatly appreciated: * sending data to syslog * Listening in TCP socket Dusted off an old pascal book.. to refreh my mind in the syntax.. but it would be most helpfull if there are any libraries for the 2 above items.

Check the sockets unit documentation. You'll be up and running in no time. There are also good OOP frameworks like Synapse, LNET and Indy, which provide complete implementations of common network protocols.

Daniël

Francisco Reyes
to Daniël Mantione
Daniël Mantione wrote
Check the sockets unit documentation. You'll be up and running in no time. There are also good OOP frameworks like Synapse, LNET and Indy, which provide complete implementations of common network protocols.

Do you recommend any of them?
I need SMTP since it will be a policy server for postfix..

Thanks!
Are there pointers to them in the web site or I need to search for them separately?

Daniël Mantione
to Francisco Reyes

Op Fri, 25 May 2007, schreef Francisco Reyes:

Show quoted text 8 lines
Daniël Mantione writes: > Check the sockets unit documentation. You'll be up and running in no > time. There are also good OOP frameworks like Synapse, LNET and Indy, > which provide complete implementations of common network protocols. Do you recommend any of them? I need SMTP since it will be a policy server for postfix..

All toolkits have an SMTP class. You can also do smtp very easy with readln/writeln. It's 100% your preference.

Thanks! Are there pointers to them in the web site or I need to search for them separately?

You will find various references to them, since they are used by a lot of people.

Daniël

Francisco Reyes
to Daniël Mantione
Daniël Mantione wrote
All toolkits have an SMTP class. You can also do smtp very easy with readln/writeln. It's 100% your preference.

Thanks. Will look for examples and try before asking any more questions. Have to get the rust off my pascal. :-)

You will find various references to them, since they are used by a lot of people.

Last question for now until I get to readup..
Will those libraries allow me low level control or should I research into the readln/writeln you mentioned?

Just wondering if those libraries are low level enough to write the policy server.. or if they are good primarily for the basics like sending mail.

Thanks for all the pointers so far.

Daniël Mantione
to Francisco Reyes

Op Fri, 25 May 2007, schreef Francisco Reyes:

Show quoted text 14 lines
Daniël Mantione writes: > All toolkits have an SMTP class. You can also do smtp very easy with > readln/writeln. It's 100% your preference. Thanks. Will look for examples and try before asking any more questions. Have to get the rust off my pascal. :-) > You will find various references to them, since they are used by a lot of > people. Last question for now until I get to readup.. Will those libraries allow me low level control or should I research into the readln/writeln you mentioned?

No, the sockets unit provides you low lowel operations, like connecting, sending data etc. LNet/Synapse/Indy provide you high level classes that allows you to do things like "send this message to ".

Just wondering if those libraries are low level enough to write the policy server.. or if they are good primarily for the basics like sending mail.

They are remarkably flexible, but if you really want to control everything yourself, you might need to write your own smtp code.

Daniël