delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/31/17:51:29

Sender: richdawe AT bigfoot DOT com
Message-ID: <39FF3FC1.1C19C0D2@bigfoot.com>
Date: Tue, 31 Oct 2000 21:55:13 +0000
From: Richard Dawe <richdawe AT bigfoot DOT com>
X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.17 i586)
X-Accept-Language: de,fr
MIME-Version: 1.0
To: Edmund Horner <ejrh AT paradise DOT net DOT nz>, DJGPP newsgroup <djgpp AT delorie DOT com>
Subject: Re: MYSQL and DJGPP
References: <972870272 DOT 400289 AT shelley DOT paradise DOT net DOT nz>
Reply-To: djgpp AT delorie DOT com

Hello.

Edmund Horner wrote:
> Are there any libraries that hack their way through to the server APIs,
> eliminating the need for mysql.exe?  (I understand that libsocket does
> this with windows sockets.)

I'm not quite sure what you mean by "hacks through server APIs" here.
libsocket doesn't really hack its way through to any server APIs. The API
it uses [for WSOCK.VXD] is just the Winsock API packaged differently for
the virtual device driver environment. The constants, semantics of most of
the calls, etc. is pretty much the same.

Anyway, back to your problem: It sounds like you want something to keep
the mysql.exe process open and just feed it your queries. This way the
overhead of starting/stopping a process would be removed. How does
mysql.exe work? I guess it uses some form of Windows IPC, perhaps even a
socket. If it does use a socket, perhaps you could use libsocket to send a
query to mysqld.exe?

Bye,

-- 
Richard Dawe
[ mailto:richdawe AT bigfoot DOT com | http://www.bigfoot.com/~richdawe/ ]

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019