From: "Edmund Horner" Newsgroups: comp.os.msdos.djgpp References: <972870272 DOT 400289 AT shelley DOT paradise DOT net DOT nz> <39FF3FC1 DOT 1C19C0D2 AT bigfoot DOT com> Subject: Re: MYSQL and DJGPP Lines: 40 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Organization: Paradise Net Message-ID: <973053602.668209@shelley.paradise.net.nz> Cache-Post-Path: shelley.paradise.net.nz!unknown AT 203-96-148-238 DOT tnt0 DOT paradise DOT net DOT nz X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) Date: Wed, 1 Nov 2000 17:41:26 +1300 NNTP-Posting-Host: 203.96.152.26 X-Complaints-To: newsadmin AT xtra DOT co DOT nz X-Trace: news.xtra.co.nz 973053603 203.96.152.26 (Wed, 01 Nov 2000 17:40:03 NZDT) NNTP-Posting-Date: Wed, 01 Nov 2000 17:40:03 NZDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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" 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/ ]