[fpc-pascal]IPC Question

2003-09-03 Thread Michael Weinert
Hi all,

I wrote 2 programs which are using the IPC queue. Now I have a
problem, that often the the queue cannot be opened.
I did some tests and cannot find out where the problem is.
The relevant code is here:

  ipcqueue:='/var/ipc';
  IPC_Key:=ftok(ipcqueue,'M');  // Eindeutigen Schlüsssel generieren
  IPC_ID:=msgget(IPC_Key,IPC_CREAT or 438); // Schnittstelle erstellen

No matter what I do with /var/ipc the IPC-Queue doesn't get created.
I tried /var/ipc as file, directory and not existent, but nothing helps.

Does anybody here know the right procedure to open an ipc-queue. Thanks
in advance for your help.

Michael.


-- 


         SysQuadrat
Michael Weinert Stuttgart Filderstadt-Plattenhardt
  Tel.: 0711-9970288 Fax: 5360559 Mobil: 0170-4141273
   http://www.linux-firewall.de  [EMAIL PROTECTED]


___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]INET-Unit: Testing existence of a domain?

2003-09-17 Thread Michael Weinert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Mittwoch, 17. September 2003 11:54 schrieb Rainer Hantsch:

Hi Rainer,

> I want to test inside my program if a domain does exist. I am not
> interested in the particular domain entries, only in its existence.
> For that I tried the following, but it returns always false:
Maybe I have a solution for you.
Just check for an NS-Entry for the domain. This way you know if
the domains exists or not.
How I would do it?
I sended a resolv-unit to the units-list. I would then double the
function Sys2_GetMXAddr (tz:ShortString):ShortString;
to make a getnsaddr and you have a result.

Are you trying to program a spam-blocker or something like that?
If yes, I would be interested in helping.

Michael.

- -- 


 SysQuadrat
    Michael Weinert Stuttgart Filderstadt-Plattenhardt
  Tel.: 0711-9970288 Fax: 5360559 Mobil: 0170-4141273
   http://www.linux-firewall.de  [EMAIL PROTECTED]
   KeyServer hkp://pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iQGlAwUBP2g8t6vpi4/XslceAQKcqwx+Leknc0FjwqcaOCtqvrTcXb1LJFHAz0r/
NtqENP8fnLkdSAF/pqLsfPKoA1yHR3phfZrwSmkqcBg2qZQDI8iS0nVx4crecAzF
LjZpRDOKtDuJtT91KQaCBEqUbGNkBU5ucRD7FaJD9KHiCVK7oaqdZ0wsQJ+xFxBJ
QBBKhiShK45Nh7JBGIgZKYOLY1nPLGRkXBE7VkCyCb6F2HGckdeDY5u4aJb35Q9J
7KLphq/hb/jlzAK8/Zt+2o7GnsaZOlU9/yHNLoASfg8gozbiOvuEt2YZ0sb8sFaa
IO1l4LNJObPyubpsqQT8Y/o7m/j43WhI3uPR1HxzWaob94hod0/kKm4L9cVe4zgZ
B4Y7azrgQs/w/7CL+WqdDcctybJ67Ai8wzC7+9MpbTUoDZ6ZYe0SFDc3hh0ImLKO
537R+Nrs9AS6hPGhWaheeOTf6sJBUQJ66Whxt1rE6Nk7rlCvF/uD9uSKtfBCgKX5
vmn8T14pRxpouOrJ5uNhDqiIzaxpVyRIyk8gmj7/a7AAsIptmBHMkQ==
=jo0n
-END PGP SIGNATURE-


___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]INET-Unit: Testing existence of a domain?

2003-09-17 Thread Michael Weinert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Mittwoch, 17. September 2003 13:10 schrieb Rainer Hantsch:

Hallo Rainer, oder besser Herr Hantsch,

> Please, leave me copy of it by direct mail. This is quicker.
> I must leave my office now for a while urgently, but when I am back, I will
> proceed.
Ich bin im Augenblick dran dies zu implementieren. Ist schon eine Weile her,
daß ich an meiner resolv geschraubt habe. Ich schicke dennoch mal die mit
MX-Only an Sie/Dich.

> | Are you trying to program a spam-blocker or something like that?
> | If yes, I would be interested in helping.
> Yes, exactly! :-)
> Let's see! I am in the very early steps of my development, there is also a
> lot unclear, but I also know that I will not use assasin (or how this
> monster is named).
Sehr gut. Das hatte ich auch schon vor, und auch schon mal begonnen. Leider
hat dies noch nicht so recht funktioniert.

Folgendes war geplant:
Empfang auf Port 25 und gleichzeitig öffnen des Mailservers auf Port X.
Sobald ein Hit stattfindet auflegen beider Verbindungen, bzw. Fehlermeldung
5/4XX an den Client.

Gruß Michael.

- -- 


         SysQuadrat
Michael Weinert Stuttgart Filderstadt-Plattenhardt
  Tel.: 0711-9970288 Fax: 5360559 Mobil: 0170-4141273
   http://www.linux-firewall.de  [EMAIL PROTECTED]
   KeyServer hkp://pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iQGlAwUBP2hFX6vpi4/XslceAQItHgyAss3OG7TUlHEzkA6iK8QCdMuBPZfWLmrj
FPZgz7TZx5oDxDp5B6sgxGp9rMb7r+Gw0+/gQAKZRJDKNtv2bXLIrRyqDpSXQmQ8
qxlQrwtnwkoiQb6TEV3HuUlPH+8K5Ac5sPxwdOj3hTZbwoBbEy5Led/iiLhXqtf9
J4QncEbHaiS6v36NZQ2BbaSrgwl6vpOP817aTUFhyvMLO2dwN91jjKdLANIGxOnW
cEsrOT6j5H1IhAFYPeVTOCY6kLa3+9ao2hNd3YhmjxvEijy5ag2v46mYKjfjvCaL
TjRCJi9P84Vhpnv3y7NZPKDsXqlcMCoHBIRrncPsLcufWUT0H5Itgjw2OlfLx22r
T0nSd1qFztV7JDztKWgsJDugEpcCyAcg0ppYfDDfcAPkHMMmD01zQdaZk1EzNXMN
XJtC3x0dDnotA02niunNou28ag1lF8cu2EQCadQ6IrdW5LNHPe15UUPfFBIzbBwW
7apVAfiCs4wiATMl8RFpMZyDvZmbuEOhmsukWT1fLiPMynjNeU02Nw==
=X0oX
-END PGP SIGNATURE-


resolv.zip
Description: Zip archive


Re: [fpc-pascal]INET-Unit: Testing existence of a domain?

2003-09-17 Thread Michael Weinert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Mittwoch, 17. September 2003 13:10 schrieb Rainer Hantsch:

Sorry, I put in a mail in german, didn't check the receipient.
So everybody got the resolv-unit ;-)

Michael.

- -- 


 SysQuadrat
Michael Weinert Stuttgart Filderstadt-Plattenhardt
  Tel.: 0711-9970288 Fax: 5360559 Mobil: 0170-4141273
   http://www.linux-firewall.de  [EMAIL PROTECTED]
   KeyServer hkp://pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iQGlAwUBP2hFoqvpi4/XslceAQK1gQyAsz70r1zCJf+HQ1VV4QI8Jh+rWuaJ994t
ZFNGrlDkOVoVfJP4LNG5NilkGLComoyT4WwUOxZTOXTHZ3t/e5+fSjV5q7Klx1Rx
qEHM1kK1Y4ySSU5VZYAa1wzQ4+bJ+BwY4o+LJ67J2XmgmLE12MVkSyMVs8d0ia/S
zquPxvo2KLgVvLnR0Co/+IRk89GR38BLuu/4kFsOjLBNTJS98AUs3yYGBB7WDyX5
vQBr5FCodmOyBdTx2endP62OCwGae01RsJWMStrY0QGyWH75dJmRqRd114OHnXMm
7iZJKGhKpvz8v8WP9aqpozgYPOjSopH+DXFdQbEb6Ot/ziCzCZS8+4hN0yCc2wts
NIj8BS7uIjpbjmA/b84DKipA+VovEcEOcPZ7tsBtlTVWXxXvjVnlhSaQk700LKPV
X3NufL8xfqKAy400e6+QOvdtt2SgjAPjM6mKJT46iOh+AdOGfQx2X8tzjyavTkvV
PGZW0qLBpwDcXqFIxkYPd2yyaZyxixa1zHzvHl2Tly6vFu5GUh2Vug==
=svTC
-END PGP SIGNATURE-


___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]TCP client required... List still active??

2003-10-05 Thread Michael Weinert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Montag, 6. Oktober 2003 07:16 schrieb George Patterson:

Hi,

> Sorry about the noise but is this list active??
Yes,

> I am trying to write a simple tcp/ip client but can not find anything
> in the 'net (using Google anyway). I did find a server code in the fpc
> archives but no clients. (This could be a good demo, perhaps with code
> that would set text revived from one ip address to the others like a
> simple talker room.)
> The client will connect to the server and retreive values (similar to
> snmp) and act upon them ie modifying other values or performing action
> via USB(ignore the USB aspect for the purpose of discussion.)
> Even just some pointers on chnaging the server code into a client.
fpc comes with a package inet. Just look for the sample code pfinger and
you have your client-code.

Michael.

- -- 


         SysQuadrat
Michael Weinert Stuttgart Filderstadt-Plattenhardt
  Tel.: 0711-9970288 Fax: 5360559 Mobil: 0170-4141273
   http://www.linux-firewall.de  [EMAIL PROTECTED]
   KeyServer hkp://pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iQGlAwUBP4EOyqvpi4/XslceAQIXsQyAlBwMcFAHbwUvNAq3dIprzEnuz0LeCN0g
JtaanEaavFdhvKXSPBLufgq4pR5o0Z1s2YHXFvctvkKPrn2x87D0HVrGLaTdZt3f
piz26nJVIntPIh/wYFMhmoMUhFpNZLLPo8ev17K1iIEtwGOvZEYnaVts7dteTjGj
cFAfq/JZu3fOgrQjJx4GFfQdsyVPhoNfDySxtWungtjyC5VlZeBnErC88ZwO37n6
77fyQo0LjOrLEL8cfLpnUgFpadRk/Px0Htkt4KXI+6qt4ysp4XQo6+Z0rsYh27j1
HEEePTVxd617gGkb4E/VCHu5z46qqt8RbDBnEs8nQwLHJp6WE+VqfKcg142UGaxU
YoPktDP9g4YyGIkNbH2s5guF8ASjSQWcX8Axjm60+83B1fqxji8FJQSMVgk/4VrF
8tEulngmr+e6ruoUADg5sTjY6eU5ul+BVwmRcc2x45+SLaBO+385FnRrV/dB82gi
gQQ2X7BG8hehi6F20wx4lW3lT4J+P0/YDse/ajs6LjzRDPdoSbwAIg==
=2lEi
-END PGP SIGNATURE-


___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]GTK: multiline label

2003-10-09 Thread Michael Weinert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Donnerstag, 9. Oktober 2003 09:18 schrieb Peter Huesser:

Hi,

> How ist possible to make initialize in fpc a multiline label. Something
> like
>   Lbl := gtk_label_new('Line1 \n Line2');
> I guess but with what do I have to replace the "\n" ?
This might help:

lbl := gtk_label_new('Line1 '+chr(10)+chr(13)+'Line2');

If it doesn't work this way try to define the string first. I would
define such strings in a constant way anyway.

Michael.

- -- 


 SysQuadrat
Michael Weinert Stuttgart Filderstadt-Plattenhardt
  Tel.: 0711-9970288 Fax: 5360559 Mobil: 0170-4141273
   http://www.linux-firewall.de  [EMAIL PROTECTED]
   KeyServer hkp://pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iQGlAwUBP4UX/Kvpi4/XslceAQLoCAx+LzNAEdRdW9wDgoImT+JtYY/4nbJbyk/U
AM5fYId6AMe4ynAp1HB0wVm0iwZOO9KWYG6o3DTv2ofOcuPyJZvYa7q5WP0xM6xF
Immzvago27UKzwAmRhKHXLHLHF5UQei5w7fjhSEpTvr9e/Cf1V0M0vcE2PUiw8Xx
oJBs1w+6hbQ6fUwJKWiEdYHVJ+pj86YV9d3E+MICYX2qXgc3g3IQ3o3xqdiO9scl
fmItLxKwj8C+1SD3fa8UVRgba6U/t3m+YJBHqtrg+92ToaaXtcVZtuGK8h89/45j
lA4nMN4Ra/I5b82B6eoNhjQMgWZoA0Jrwn0UtrRfSUgaMrF8dk3/FjaeQQQgDKke
ZJU46PFQmUArumTH7mwtSQszeuK0V5mbR9iJtRFgM26FJOyYheu022Cr+MtG/f+s
pxlQhzXFqxQT5kikTbHQjuOJ1xmw8oN9NYaPmwrHLqsg8Ypm/RIhNkqh97e01g75
MdAHLhjPUvQBFsFBHLCv/jXsU2McrG6oXR6pQBdcZzUlSXE2HBYAAQ==
=J8e7
-END PGP SIGNATURE-


___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal]Bug ??? Table

2003-11-18 Thread Michael Weinert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi All,

I'm parsing a dns-hosts-file and after adding round 40 Hosts the
table gets overwritte with garbage. 
I just do an increment with finding a host an setting the entries.
Is this a known bug?

Anybody else got this prob?

BTW: Yes I also did try to initialise the table first, but still
no help. I also changed the size and order of variables.

Thanx, Michael.
- -- 


 SysQuadrat
Michael Weinert Stuttgart Filderstadt-Plattenhardt
  Tel.: 0711-9970288 Fax: 5360559 Mobil: 0170-4141273
   http://www.linux-firewall.de  [EMAIL PROTECTED]
   KeyServer hkp://pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iQGlAwUBP7p1oKvpi4/XslceAQIjNAyAvk5te7KWd8rhAcVuqUrHxEyEwyv+fyzo
pATtVYaxLFbIb1+S6XhhfVUKSf45QHY0UKkhjg0OoHQPTjg4D5IFoeND7hdHJyN5
UkH/fl1SaXBo8TwybdYkMnREc4l2DnDx5U3OLPtF52wJcPbFZT7pI6s8WU3tGH21
VZI76qvFHNeI6g1lzk3QTKVzS6pnlZHbYdiBGFYks6yJPkqOTbsm88IwZOqk92Be
4GwiLMAled+T91cX+X4SoHNZCNiWjFPdihMkbSuPDCtREozF8rBK/FOIZKCMtUVk
ZzNXzOWN/fD1L2254j4dgB/qT5Ftm1OTssypXu2g1iL+43HJuheccVtcGOlX4kdU
JrAB/2D3tHRb8wxnFIbHw0A9J88d+XVH/HP/gPv5lb2BJBv64SI0JOSJJOdfLitk
1Y6PnROyUu2BY9xCz/GnF+MroIttnb1NtRH9OiF4wjhdukgJYIi2kx/CoFZq7JJ0
XEJAiPHeVz714tnkONs1TTZrTgcl+iedeizx/StybPUWeHAJvNesDA==
=/d48
-END PGP SIGNATURE-


___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]Bug ??? Table

2003-11-18 Thread Michael Weinert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Dienstag, 18. November 2003 20:40 schrieb Michael Weinert:

Hi All,

> I'm parsing a dns-hosts-file and after adding round 40 Hosts the
> table gets overwritte with garbage.
Problem solved, I overwrote another table :-/

sorry for disturbing.

Michael

- -- 


 SysQuadrat
    Michael Weinert Stuttgart Filderstadt-Plattenhardt
  Tel.: 0711-9970288 Fax: 5360559 Mobil: 0170-4141273
   http://www.linux-firewall.de  [EMAIL PROTECTED]
   KeyServer hkp://pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iQGlAwUBP7qFsavpi4/XslceAQKmKwyAienOWXBr6rvLWcZyTjYc6pgmZmJ1mbMW
y+gRXXAh2O68+Tyg3IOd4xgSiZg9AMiyvoYjYWk/DQJ01umBaGHCHpjij3uk82lH
gH8zQxW1bzGwlOADU/vFoms7Mm+s4PlO2cOUcibJIXiDbMKBh7zt0ZCHtXGLdman
tfW3FW9lT0BQM7bNSytkjEY0y9p8UWhywHTTuTY1h3VewxVQsk0ND4tqQXdZ7vFO
sfwl+TN46py56RT/mBbWNq5SNyv8aZ9DvuaVO6zNDfCLxqeAajirhbKtrW7FrfFd
OCFrr6fr8umFrxHQ3w04cH9sSt0kRNk5ck4lXOsAOPQm+FtVsSKuL7bWmnYZMyTw
w0TngDKyu+27FGAKooVoda6s14KK7PwbzZDGiBOgj5rQpl0GMswFZ/+gDI1/x5Nx
9M8s8uaoUJ+AheCEXvYyLI7JZ3wip1FYLeKUis3qDH/O+o+XB9ERwIIn8YEy2tLv
7SEmx5c9JpiVltpRFbHa8iQTrqqqBaJjpif8URUlcgaRq8sSOa2CFA==
=+7z5
-END PGP SIGNATURE-


___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal