{"id":1867,"date":"2014-11-13T18:57:41","date_gmt":"2014-11-13T18:57:41","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=1867"},"modified":"2014-11-18T22:46:06","modified_gmt":"2014-11-18T22:46:06","slug":"middleman-custom-server-current-features","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/middleman-custom-server-current-features\/","title":{"rendered":"MiddleMan &#8211; Custom Server Current Features"},"content":{"rendered":"<h4><code>NET_CLOSE<\/code><\/h4>\n<hr size=\"1\" \/>\n<h4><code>NET_WRITE<\/code><\/h4>\n<hr size=\"1\" \/>\n<h4><code>NET_READ<\/code><\/h4>\n<hr size=\"1\" \/>\n<h4><code>NET_READ_R<\/code><\/h4>\n<p><code>int NET_READ_R( int cd, char* buf, int len, int* rresult );<\/code><\/p>\n<p>The return value and first three parameters remain unchanged from NET_READ. The last parameter (passed by reference) returns the NETIPC error number for the call when the return value is -1.<\/p>\n<hr size=\"1\" \/>\n<h4><code>NET_READ_TIMED<\/code><\/h4>\n<p><code>int NET_READ_TIMED( int cd, char* buf, int len, int time_out );<\/code><\/p>\n<p>The return value and first three parameters remain unchanged from NET_READ. The last parameter passes a read timeout value in seconds. Care must be taken to keep the client and server components in synchronization when using this function.<\/p>\n<hr size=\"1\" \/>\n<h4><code>NET_OPEN<\/code><\/h4>\n<hr size=\"1\" \/>\n<h4><code>NET_VEPWD<\/code><\/h4>\n<p><code>int NET_VEPWD ( char* buf );<\/code><\/p>\n<p>Calls the VECHECKLOGON routine from Security\/3000. This is used only against the first question if more than one question is configured. Errors are logged to the console and MSJOB $STDLIST. Return values can be 0 (success), 1 (failure), 2 (Security\/3000 not found).<\/p>\n<hr size=\"1\" \/>\n<h4><code>NET_PUTCD<\/code><\/h4>\n<p><span style=\"color: #0000ff;\">int<\/span> NET_PUTCD ( <span style=\"color: #0000ff;\">int<\/span> cd, <span style=\"color: #0000ff;\">int<\/span> pin );<\/p>\n<p>Pass the current connection descriptor (CD) in the first parameter. Pass the PIN number of the son process to which the CD is to be passed. Please note that the process must be created to obtain the PIN number; however, the process should not be activated until the NET_PUTCD call has been made. The procedure returns a status value of -1 if there is any problem passing the CD.<\/p>\n<hr size=\"1\" \/>\n<h4><code>NET_GETCD<\/code><\/h4>\n<p><span style=\"color: #0000ff;\">int<\/span> NET_GETCD ();<\/p>\n<p>Returns a connection descriptor (CD) that is used the same as the CD from NET_OPEN. The procedure returns a status value of -1 if there is any problem obtaining the CD.<\/p>\n<hr size=\"1\" \/>\n<h4><code>NET_FLUSH<\/code><\/h4>\n<p><code>int NET_FLUSH ( int cd );<\/code><\/p>\n<p>Destroys all data received from the client that is currently awaiting NET_READ calls.\u00a0 This routine must be used with care as data sent by the client is lost.<\/p>\n<hr size=\"1\" \/>\n<p><code>\/* Header file for TCP functions *\/<\/code><\/p>\n<p>extern void NET_CLOSE( int cd );<br \/>\nextern int NET_WRITE( int cd, char* buf, int len );<br \/>\nextern int NET_READ( int cd, char* buf, int len );<br \/>\nextern int NET_READ_R( int cd, char* buf, int len, int* rresult );<br \/>\nextern int NET_READ_TIMED( int cd, char* buf, int len, int time_out );<br \/>\nextern int NET_OPEN( int secure, int prod_id );<br \/>\nextern int NET_VEPWD ( char* buf );<br \/>\nextern int NET_PUTCD ( int cd, int pin );<br \/>\nextern int NET_GETCD ();<br \/>\nextern int NET_FLUSH ( int cd );<\/p>\n<p>char *NET_ErrorMessage();<br \/>\nvoid NET_ErrorMessage2 ( char *ErrorString );<br \/>\nint NET_ErrorNumber();<br \/>\nvoid NET_PrintError();<\/p>\n<p>#define true 1<br \/>\n#define false 0<\/p>\n<p>extern void op_alert ( char *buf );<br \/>\nextern int login ( char *buf );<br \/>\nextern int MS_CIGetInt ( char *VarName, int DefaultValue );<br \/>\nextern int MS_CIGetBool ( char *VarName, int DefaultValue );<br \/>\nextern int MS_CIGetStr ( char *VarName, char *ReturnValue, char *DefaultValue, int StringLength );<\/p>\n<p>extern char ip_address[64];<br \/>\nextern char trace_stamp[48];<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NET_CLOSE NET_WRITE NET_READ NET_READ_R int NET_READ_R( int cd, char* buf, int len, int* rresult ); The return value and first three parameters remain unchanged from NET_READ. The last parameter (passed by reference) returns the NETIPC error number for the call when the return value is -1. NET_READ_TIMED int NET_READ_TIMED( int cd, char* buf, int len, [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61,54],"tags":[],"_links":{"self":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/1867"}],"collection":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=1867"}],"version-history":[{"count":2,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/1867\/revisions"}],"predecessor-version":[{"id":1967,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/1867\/revisions\/1967"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=1867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=1867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=1867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}