You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>When running Unix and using an <tt>inetd</tt> or <tt>xinetd</tt> configured newLISP server, the servers and programs can be run on just one CPU, replacing all IP numbers with <tt>"localhost"</tt> or the same local IP number. The <tt>indetd</tt> or <tt>xinetd</tt> daemon will then start 5 independent newLISP processes. On MS Windows 5 state-full newLISP servers could be started on different port numbers to accomplish the same.</p>
3105
+
<p>When running Unix and using an <tt>inetd</tt> or <tt>xinetd</tt> configured newLISP server, the servers and programs can be run on just one CPU, replacing all IP numbers with <tt>"localhost"</tt> or the same local IP number. The <tt>indetd</tt> or <tt>xinetd</tt> daemon will then start 5 independent newLISP processes. On Win32 5 state-full newLISP servers could be started on different port numbers to accomplish the same.</p>
3106
3106
3107
3107
<p>Instead of collecting all results at once on the return of <tt>net-eval</tt>, a callback function can be used to receive and process results as they become available:</p>
<p>For testing on just one CPU, replace addresses with <tt>"localhost"</tt>; the Unix <tt>inetd</tt> or <tt>xinetd</tt> daemon will start a separate process for each connection made and all listening on port <tt>4711</tt>. When using a state-full server on the same MS Windows CPU specify a different port number for each server.</p>
3136
+
<p>For testing on just one CPU, replace addresses with <tt>"localhost"</tt>; the Unix <tt>inetd</tt> or <tt>xinetd</tt> daemon will start a separate process for each connection made and all listening on port <tt>4711</tt>. When using a state-full server on the same Win32 CPU specify a different port number for each server.</p>
3137
3137
3138
3138
<h3>Setting up the 'net-eval' parameter structure</h3>
3139
3139
@@ -3378,7 +3378,7 @@ <h3>Media types in HTTP modes</h3>
3378
3378
<aname="toc-23"></a>
3379
3379
<h2>23. Extending newLISP</h2>
3380
3380
3381
-
<p>newLISP has an import function, which allows importing function from DLLs (Dynamic Link Libraries) on MS Windows or shared libraries on Linux/Unix (ending in .so, ending in .dylib on Mac OS X).</p>
3381
+
<p>newLISP has an import function, which allows importing function from DLLs (Dynamic Link Libraries) on Win32 or shared libraries on Linux/Unix (ending in .so, ending in .dylib on Mac OS X).</p>
3382
3382
3383
3383
<h3>Simple versus extended FFI interface</h3>
3384
3384
@@ -3408,7 +3408,7 @@ <h3>Simple versus extended FFI interface</h3>
3408
3408
3409
3409
<h3>A shared library in C</h3>
3410
3410
3411
-
<p>This chapter shows how to compile and use libraries on both, MS Windows and Linux/Unix
3411
+
<p>This chapter shows how to compile and use libraries on both, Win32 and Linux/Unix
3412
3412
platforms. We will compile a DLL and a Linux/Unix shared library from the following 'C' program.</p>
3413
3413
3414
3414
@@ -3451,7 +3451,7 @@ <h3>Compile on Unix</h3>
3451
3451
gcc testlib.c -bundle -o testlib.dylib
3452
3452
</pre>
3453
3453
3454
-
<p>The library <tt>testlib.so</tt> will be built with Linux/Unix default <tt>cdecl</tt> conventions. Importing the library is very similar on both Linux and MS Windows platforms, but on MS Windows the library can be found in the current directory. You may have to specify the full path or put the library in the library path of the os:</p>
3454
+
<p>The library <tt>testlib.so</tt> will be built with Linux/Unix default <tt>cdecl</tt> conventions. Importing the library is very similar on both Linux and Win32 platforms, but on Win32 the library can be found in the current directory. You may have to specify the full path or put the library in the library path of the os:</p>
3455
3455
3456
3456
<pre>
3457
3457
> (import "/home/newlisp/testlib.so" "foo1")
@@ -3476,9 +3476,9 @@ <h3>Compile on Unix</h3>
3476
3476
3477
3477
<p>Again, the number returned from <tt>foo2</tt> is the string address pointer and get-string can be used to access the string. When using get-string only character up to a zero byte are returned. When returning the addresses to binary buffers different techniques using unpack are used to access the information.</p>
3478
3478
3479
-
<h3>Compile a DLL on MS Windows</h3>
3479
+
<h3>Compile a DLL on Win32</h3>
3480
3480
3481
-
<p>DLLs on MS Windows can be made using the MinGW, Borland or CYGWIN compilers. This example shows, how to do it using the MinGW compiler.</p>
3481
+
<p>DLLs on Win32 can be made using the MinGW, Borland or CYGWIN compilers. This example shows, how to do it using the MinGW compiler.</p>
3482
3482
3483
3483
<p>Compile it:</p>
3484
3484
@@ -3501,7 +3501,7 @@ <h3>Compile a DLL on MS Windows</h3>
<p>The library <tt>testlib.dll</tt> will be built with default MS Windows<tt>stdcall</tt> conventions. The following shows an interactive session, importing the library and using the functions:</p>
3504
+
<p>The library <tt>testlib.dll</tt> will be built with default Win32<tt>stdcall</tt> conventions. The following shows an interactive session, importing the library and using the functions:</p>
3505
3505
3506
3506
<pre>
3507
3507
> (import "testlib.dll" "foo1")
@@ -3800,10 +3800,10 @@ <h3>Registering callbacks in external libraries</h3>
3800
3800
<aname="toc-24"></a>
3801
3801
<h2>24. newLISP as a shared library</h2>
3802
3802
3803
-
<p>On all platforms, newLISP can be compiled as a shared library. On MS Windows, the library
3803
+
<p>On all platforms, newLISP can be compiled as a shared library. On Win32, the library
3804
3804
is called <tt>newlisp.dll</tt>, on Mac OS X <tt>newlisp.dylib</tt> and on Linux and
3805
3805
BSDs, the library is called <tt>newlisp.so</tt>. Makefiles are included in the source
3806
-
distribution for most platforms. Only on MS Windows, the installer comes with a precompiled
3806
+
distribution for most platforms. Only on Win32, the installer comes with a precompiled
3807
3807
<tt>newlisp.dll</tt> and will install it in the <tt>Program Files/newlisp/</tt> directory.</p>
0 commit comments