Mail Archives: djgpp/2000/10/31/23:47:21
Yes, I wasn't quite sure what I meant either! At the time I believed that
libsocket gained access to Windows' sockets through channels that weren't
intended to be used by DOS application, therefore "hacking through to the
APIs".
You are quite right that I should use sockets for this task, as the MySQL
server is accessed through sockets anyway. How silly of me!
Thanks,
Edmund.
"Richard Dawe" <richdawe AT bigfoot DOT com> wrote in message
news:39FF3FC1 DOT 1C19C0D2 AT bigfoot 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 -