From the webpage you pointed, I guess the definition should be

 WSADuplicateSocketJ=: 'ws2_32 WSADuplicateSocketA i i i *c'

Вс, 25 авг 2013, Joe Bogner писал(а):
> I've read the docs on calling DLLS (
> http://www.jsoftware.com/help/user/call_procedure.htm) and I can't figure
> out what I'm doing wrong. I was able to run the example in the docs.
> 
> I'm trying to call WSADuplicateSocket
> http://msdn.microsoft.com/en-us/library/windows/desktop/ms741565(v=vs.85).aspx
> 
> I am guessing that the definition would look like this:
> 
> WSADuplicateSocketJ=: 'ws2_32 WSADuplicateSocket i i *c'
> 
> 
> I then try to call it using actual data and I get a domain error
> 
> I then thought maybe I'd try invoking it with fake data and I still get the
> error
> 
>    WSADuplicateSocketJ cd 1;1;16${.a.
> |domain error: cd
> 
> I've also tried WSADuplicateSocketW version to no avail
> 
> I've tried different variations of the definition and didn't get any
> closer. I'm also just guessing on what the third parameter needs to look
> like based on a definition I saw for CreateProcess.
> 
> 
> Any help would be appreciated.
> 
> For more background, I'm trying an experiment in sockets programming. After
> accept, I want to create a jconsole process and share the socket with it.
> If that works, then the master socket can continue to accept connections
> while the child process handles the request. It's like fork on unix
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to