A SYSTEM, METHOD AND ARTICLE OF MANUFACTURE FOR SEAMLESS, SERVER APPLICATION SUPPORT OF NETWORK AND NON-NETWORK CLIENT TERMINALS

Abstract: A plurality of clients (200) are connected to one or more servers (210). When a client initiates a connection with a server (210), the server (210) responds to the request for connection by transmitting a message back to the client to determine whether the client is a network terminal or not. The client responds with a message that is received by an application dispatcher at the server (210) which takes one of a pair of actions based on whether the client is a network terminal. If the client terminal is a network terminal, then the application dispatcher spawns a server application in the server which responds to the client application in the client. Going forward, the server application responds to all future requests from the client application. If the client is not a network terminal, then the application dispatcher initiates a client application in the server (210) to service the client terminal application requirements. Requests from the client application on behalf of the client terminal are subsequently serviced by a server application at the server (210) which communicates to the client terminal via the client application at the server (210).

Description: A SYSTEM, METHOD AND ARTICLE OF MANUFACTURE FOR SEAMLESS, SERVER APPLICATION SUPPORT OF NETWORK AND NON-NETWORK CLIENT TERMINALS COPYRIGHT NOTIFICATION Portions of this patent application contain materials that are subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document, or the patent disclosure, as it appears in the Patent and Trademark Office. Field of the Invention This invention generally relates to improvements in computer systems, and more particularly, to system software for managing a network of heterogeneous client terminals communicating with a server in a consistent manner. Background of the Invention Recently, it has become increasingly fashionable to speak of "intelligent," "smart," or "programmable" terminals and systems. Very few mainframe or peripheral manufacturers omit such a device from their standard product line. Although "intelligence," like beauty or art, is in the eye of the beholder, the adjective generally connotes that the device has a degree of autonomy or processing ability which allows it to perform certain tasks without assistance from the mainframe to which it is connected. Many such devices are programmable by virtue of including a microprocessor. While operational devices are somewhat hazy and non-standard, a device is referred to as a terminal if a user interacts with the device to communicate to a host processor, referred to as a server in a network computing environment. Examples of terminals include keyboard /printer terminals, cathode-ray tube (CRT) terminals, remote-batch terminals, real-time data-acquisition and control terminals, transaction and point-of-sale terminals, and smart terminals. A terminal is considered to be intelligent if it contains, hard-, firm-, and or software which allows it to perform alphanumeric or graphic message entry, display buffering, verifying, editing and block transmissions, either on host or human command. If the terminal contains a microprocessor which runs a standard program to service the terminal, and not arbitrary, user-loaded programs, the terminal has a fixed function, and is still just an intelligent terminal. Only when the device contains a general purpose computer which is easily accessible to the ordinary user for offering a wide range of programs selectable by a user or by devices attached to the device does the terminal become a network terminal in accordance with a preferred embodiment. S- Sun has recently introduced a new language that is designed to provide consistency for network applications, named Java. Java is a general-purpose, concurrent, class-based, object-oriented programming language and support structure, specifically designed to have as few implementation dependencies as possible. Java allows application developers to write a program once and then be able to run it everywhere on a computer network. The Java language solves many of the client-side problems by: o enabling dynamic class bindings; o providing enhanced portability of applications; and o providing a secure environment in which applications execute. Java is compiled into bytecodes in an intermediate form instead of machine code (like C, C++, Fortran, etc.). The bytecodes execute on any machine with a Java bytecode interpreter. Thus, Java applications can run on a variety of client machines, and the bytecodes are compact and designed to transmit efficiently over a network which enhances a preferred embodiment with universal clients and server- centric policies. With Java, developers can create robust User Interface (UI) components. Custom "widgets" (e.g. real-time stock tickers, animated icons, etc.) can be created, and client- side performance is improved. Unlike HTML, Java supports the notion of client-side validation, offloading appropriate processing onto the client for improved performance. Dynamic, real-time applications can be created using the above-mentioned components. Sun's Java language has emerged as an industry-recognized language for "programming the Internet." Sun defines Java as: "a simple, object-oriented, distributed, interpreted, robust, secure, architecture-neutral, portable, high-performance, multithreaded, dynamic, buzzword-compliant, general-purpose programming language. Java supports programming for the Internet in the form of platform-independent Java applets." Java applets are small, specialized applications that comply with Sun's Java Application Programming Interface (API) allowing developers to add "interactive content" to Web documents (e.g. simple animations, page adornments, basic games, etc.). Applets execute within a Java- compatible browser (e.g. Netscape Navigator) by copying code from the server to client. From a language standpoint, Java's core feature set is based on C++. Sun's Java literature states that Java is basically "C++, with extensions from Objective C for more dynamic method resolution". A network terminal in accordance with a preferred embodiment would execute Java applications in stand-alone mode, but have the capability to interact with a server for such functions as retrieving information, database processing, massive computation processing and access to shared devices such as high-speed printers, plotters and magnetic tapes. The term "distributed computing" refers both to the devices at remote locations and to the logic which has been used to enhance the intelligence of the devices. Such distributed or decentralized computing with remote intelligent terminals and network terminals is a fact of life in today's computer literate society. There are a number of drawbacks to distributed computing environments which are not found in a centralized computing environment. First, hardware problems: when a user locates a software solution that is optimal for the user's terminal environment, the software often will not execute on the host processor that is universally accessible by other's in a company. Moreover, the software will often be incompatible with other user's terminals. Second, interfacing problems: a nonstandard terminal might require a special-purpose interface and might not be recognized by the host. Even standard interfaces are notorious for crashing the operating system. In any case, "mixed systems" containing multiple vendor hardware are becoming the norm, but lead to the blame for system problems being placed on the other system, and result in difficult debugging and resolving of system problems. Third, host operating system support for a heterogeneous terminal environment can be a nightmare. To provide support for all of the various protocols, communication rates and processing demands with the peculiarities intrinsic to a motley crew of downstream terminals is a system administration headache. Fourth, local software support: this type of support ranges from minimal (say, a compiler for the particular terminal) to a mail program that is compatible with every different terminal attached to the host server. Some applications can be rebuilt for a particular terminal by simply recompiling the application, but many are only distributed as runtime modules with no support provided for some terminals. SUMMARY OF THE INVENTION The foregoing problems are overcome in an illustrative embodiment of the invention in a network computing environment in which a plurality of clients are connected to one or more servers. When a client initiates a connection with a server, the server responds to the request for connection by transmitting a message back to the client to determine whether the client is a network terminal or not. The client responds with a message that is received by an application dispatcher at the server which takes one of a pair of actions based on whether the client is a network terminal. If the client terminal is a network terminal, then the application Λ» , « .,„-, PCT/US97/13057 98/06207 dispatcher spawns a server application in the server which responds to the client application in the client. Going forward, the server application responds to all future requests from the client application. If the client is not a network terminal, then the application dispatcher initiates a client application in the server to service the client terminal application requirements. Requests from the client application on behalf of the client terminal are subsequently serviced by a server application at the server which communicates to the client terminal via the client application at the server. Brief Description of the Drawings The above and further advantages of the invention may be better understood by referring to the following description in conjunction with the accompanying drawings, in which: Figure 1 is a block schematic diagram of a computer system for example, a personal computer system on which the inventive object oriented information manager operates; Figure 2 illustrates a client - server network in accordance with a preferred embodiment; Figure 3 illustrates a server architecture in accordance with a preferred embodiment; 1 Figure 4 illustrates a client - server architecture in accordance with a preferred embodiment; Figure 5 illustrates a first client request to a server in accordance with a preferred embodiment; Figure 6 illustrates a client server environment which accesses support services in accordance with a preferred embodiment; Figure 7 is an architecture diagram of a client - server system in accordance with a preferred embodiment; Figure 8 is an architecture diagram of a client - server system in accordance with a preferred embodiment; Figure 9 is an architecture Hiagram of a client - server system in accordance with a preferred embodiment; Figure 10 illustrate ' s the message format utilized in accordance with a preferred embodiment; Figure 11 presents a table showing additional details associated with the device types, commands and data blocks in accordance with a preferred embodiment; < s /06207 Figure 12 presents additional detail on the message format in accordance with a preferred embodiment; Figure 13 illustrates the display commands and responses in accordance with a preferred embodiment; Figure 14 presents the status values associated with various operations in accordance with a preferred embodiment; and Figure 15 is a communication flow diagram in accordance with a preferred embodiment. Detailed Description The invention is preferably practiced in the context of an operating system resident on a computer such as a SUN, IBM, HP, or a Windows NT computer. A representative hardware environment is depicted in Figure 1, whichfillustrates a typical hardware configuration of a computer 100 in accordance with the subject invention. The computer 100 is controlled by a central processing unit 102 (which may be a conventional microprocessor) and a number of other units, all interconnected via a system bus 108, are provided to accomplish specific tasks. Although a particular computer may only have some of the units illustrated in Figure 1, or may have additional components not shown, most server computers will include at least the units shown. ^ „„,„-„-- PCT/US97/13057 8/06207 Specifically, computer 100 shown in Figure 1 includes a random access memory (RAM) 106 for temporary storage of information, a read only memory (ROM) 104 for permanent storage of the computer's configuration and basic operating commands and an input/output (I/O) adapter 110 for connecting peripheral or network devices such as a disk unit 113 and printer 114 to the bus 108, via cables 115 or peripheral bus 112, respectively. A user interface adapter 116 is also provided for connecting input devices, such as a keyboard 120, and other known interface devices including mice, speakers and microphones to the bus 108. Visual output is provided by a display adapter 118 which connects the bus 108 to a display device 122, such as a video monitor. The computer has resident thereon and is controlled and coordinated by operating system software such as the SUN Solaris, Windows NT or JavaOS operating system. Figure 2 illustrates a client-server network in accordance with a preferred embodiment. A set of consumer devices (client terminals 200) are attached to a server 210 and the server is attached to a legacy host 220 to process applications requiring information at the host 220. The connection could be by means of the Internet, a dialup link, token ring, cellular phone, satellite, Tl or X.25 telco link or other communication means. Server Software The sever software is written using a combination of Java, C or possibly C++. C or C++ will be used mainly to implement platform /06207 dependent code (such as dealing with the comm ports). While a preferred embodiment discloses support for a dial up network and Internet processing utilizing TCP/IP, one of ordinary skill in the art will readily realize that a token ring, SNA or other network, such as those discussed in US Patents (5,530,961 ; 5,491 ,796; 5,457,797; 5,442,791 ; 5,430,863; 5,394,401 ; 5,291 ,597; 5,287,537; 5,287,461; 5,201 ,049; 4,991 ,089; and 4,588,21 1) could be readily interchanged as the network. Architecture A server architecture in accordance with a preferred embodiment supports two types of client terminals. Network terminals. These are client terminals capable of directly executing the Java applications on the client terminal which are initially stored on a server. The server will simply download this code to the client's network terminal which the client will then execute to provide a particular service. This service may or may not interact with other clients or servers. Network terminals can be connected to a server through a dial up modem link, directly through a local area network, or by other network communication means in accordance with a preferred embodiment. Non-network terminals. These are client's terminals which are not capable of executing Java applications on the client terminal. When dealing with this class of client the server will execute the U application on behalf of the client. In this case the server will only expect necessary input and output operations to be performed by the client terminal. An example of how to connect a plurality of non-network terminals to a host server is described in US Patent 5,287,461 , the disclosure of which is hereby incorporated by reference in its entirety. Figure 3 illustrates a server architecture in accordance with a preferred embodiment. A client 300 would initiate a connection with a server 350 by, for example, dialing in to a modem pool which is intercepted by the point-to-point stack software 311 which conforms information received to the TCP layer 312 which obtains a socket 313 for connecting the client 310 to the server 350. The Java net layer 314 further refines the request to conform with the TERMIO and NET layer 315 which passes the request along to the application dispatcher 319. The application dispatcher 319 spawns the appropriate server application selected from the server applications 330. On a non-network terminal, The non-network terminal initiates a "first connection" by dialing up a modem, for example. The dial up goes through the native OS 316 (Solaris or Windows NT dial up layer) and is connected with the serial communication in the VFI. SERIAL layer 317 which abstracts the serial input/ output functions into a higher level communication layer. The VFI.NET layer 315 takes the abstracted serial layer and maps it into a similar communication as the communication from the network terminal 300. It makes the \Z_ /06207 dialup asynchronous connection appear to the server application as a new socket connection. Network Terminal - "First Connection" Figure 4 illustrates a client - server architecture in accordance with a preferred embodiment. The architecture is illustrated initially for a network terminal for clarity and then follows with a non-network terminal. Processing commences at 400 when a network terminal requests connection through a layered communication system to a set of server threads 420 which are triggered by a detection of a "ring" 430 to initiate possible client updates and the subsequent client appplication to server application processing. "Ring" refers to a "first connection" in socket processing in accordance with a preferred embodiment. The network terminal makes its connection through the Point-to- Point-Protocol stack 411 utilizing the TCP layer 412 and the sockets layer 413, which is like an electrical socket, for attaching terminals to communication sockets to facilitate communication through the network. All of this is managed by the Java.net 414 which connects the socket 1111 via the TCP layer 412 and the PPP stack 411. The layer above is the VFI.net and VFI.TERMIO 415 which is responsible for detecting that the connection is made and mapping the connection to an application dispatcher 431 to further process the first connection (ring) request. \ The server 450 waits for a "first connection" request much like an interrupt manager. When a "first connection" request arrives, then the application dispatcher has a method that detects a connect request or a LAN "first connection" request that would arrive through the TCP layer as a socket connect. That connection is translated into a logical ring which is equivalent to an event or interrupt. The server 450 responds to the "first connection" with a query initiated by the application dispatcher 431 requesting "who are you" via an enquiry message asking for identification by the client loader thread 421. The network terminal responds with ID information, including the identification of the application that the network terminal requires. If the terminal answers with an identifier indicating that the terminal is a network terminal, then the client loader thread 421 performs any necessary client application updates via a download using a file transfer program such as UDP or FTP, or any other socket layer protocols that are available for network file transfers to the network terminal 400. Network Terminal - First Client Request to Server Figure 5 illustrates a first client request to a server in accordance with a preferred embodiment. When a first client request is transmitted from the network terminal 500 with a client \4 application resident thereon 510 to the server 550, the application dispatcher 530 spawns the corresponding server application 520 for servicing the request at the server 550 via the assigned socket 1112. The server application 520 responds to the request and transmits information to the network terminal 500. The application dispatcher 530 has completed its responsibilities for this client 500 and can return to a wait state until the next "first connection" request from a client. The client application request could be as simple as a get current time request or a request for data from a server database. Network Terminal - Subsequent Client Request to Server Figure 6 illustrates a network terminal 600 with a downloaded client application 610 which accesses support services in the server 650 through its assigned server application 620 in accordance with a preferred embodiment. The terminal 600 communicates to a server application 620 which accesses host processing capabilities and database services 640 to service requests emanating from the client application 610. The server application 620 handles any events that originate from the client application 610 via the assigned socket 1112. These events could include data requests from a database application, or data transfer to a server. Remote data from another server application could also be accessed by the client. Server application 620 accesses support services directly or via a socket interface 660. V5> Non-network Terminal - "First Connection" Figure 7 is an architecture diagram of a client - server system in accordance with a preferred embodiment. A layered communication system 700 is used by a non-network terminal 710 to detect a ring providing an indicia of communication 740 and dispatch an application 730. Dispatching an application 730 also initiates a server thread 720 for servicing the client request. The non-network terminal 710 initiates a "first connection" by dialing up a modem, for example. The dial up goes through the native OS 711 (Solaris or Windows NT dial up layer) and is connected with the serial communication in the VFI. SERIAL layer 712 which abstracts the serial input/output functions into a higher level communication layer. The VFI.NET layer 715 takes the abstracted serial layer and maps it into a similar communication as the communication from the network terminal. It makes the dialup asynchronous connection appear to the server application as a new socket connection 1111. The communication is an event 740 that triggers actions by the application dispatcher 741 which responds to the "first connection" event by requesting ID information from the client, via an enquiry message, and starting the requested client application 720 at the server 750. Non-network Terminal - First Client Request to Server \^ Λ no . Λ * «M PCT/US97/13057 O 98/06207 Figure 8 is an architecture diagram of a client - server system in accordance with a preferred embodiment. The client application 822 is responsible for managing the non-network terminal 810. The client application 822 writes information, utilizing a server version of VFI.TERMIO 855, to and responds to key presses by the non-network terminal 810 at the server 850. The client application 822 initially makes a request for service from a socket 1112 that is associated with the non-network terminal 810 when the application dispatcher 840 spawns the client application 822. When the first request 845 is generated by the client application 822 residing on the server 850, at application startup, the first request for service is routed in the server 850 to the application dispacher 840 and spawns the server application 820 which will handle subsequent requests. The server application 820 makes a request for service from a socket 1112 that is associated with the client application 822 which transmits an appropriate command through the VFI.TERMIO 855 to the VFI. SERIAL layer 856 using the operating system communication support 857 to the non- network terminal 810. This processing is identical to the network terminal processing with the exception that all applications reside on the server 850 as opposed to a Java application executing remotely on the network terminal. One advantage of Java is that it is machine independent and does not care whether a Java application resides on the client or the server. In the case of the non-network terminal, the client application resides in the server and controls the Java incapable terminal. Non-network Terminal - Subsequent Client Requests to Server Figure 9 is an architecture diagram of a client - server system in accordance with a preferred embodiment. A layered communication system 900 is used by a non-network terminal 910 to manage the interconnection of a server Application 940 to a client application 920 and facilitate communication between the terminal 910 and server application 940 via a client application 920 resident on the server 950. Figure 9 shows the processing after the first request has been completed and the client application 920 is coupled with the server application 940 via the assigned socket 1112 just as in the network terminal example, except the client application 920 and server application 940 both reside on the server 950. If a terminal responds with a message that indicates it is a non- network terminal, then the terminal is supported with the command streams described in Figures 10-14. If the terminal is a network terminal, then the application is downloaded via a FTP or other network file transfer procedure. Figure 10 illustrates the structure of a packet in accordance with a preferred embodiment. Figure 11 shows the format of each field of I a communication and describes the contents of the same. For example, the header is two bytes in length and has various values that correspond to different types of transactions. Similarly, the Packet Type, Header CRC, Sequence #, Data Block and CRC- 16 fields are described in the table set forth in Figure 11. Figure 12 represents a table showing additional details associated with the device types, commands and data parameters. For example, the device type field is one byte long and specifies the selected Input/ Output device. Figure 13 illustrates the display commands in accordance with a preferred embodiment. The display's device type is zero. Figure 14 presents the status values associated with various requested operations in accordance with a preferred embodiment. Figure 15 is a communication flow diagram in accordance with a preferred embodiment. A terminal 1500 either has firmware or an application 1504 that initiates a connection 1506 with a server 1502 by contacting a dispatcher 1508. The connect initiate 1506 also connects a socket 1111 to handle the connection. The dispatcher 1508 transmits an identification enquiry 1510 which the client terminal replies to with an identification message 1512. In the case of a network terminal, the client loader 1522 performs any necessary client application updates 1520 on the client terminal 1500. In the case of a non-network terminal, the dispatcher starts the client application. The client then sends a request to start the server application 1530 to the server which results in the connection of a socket 1112 and the server application 1550 being started and a confirmation message 1532 being transmitted back to the client application 1540. Then, when the client application 1540 requests data 1542 from the server application 1550, the server application 1550 responds with the application response data 1560. 3C > Application Dispatcher - Control Flow Application Dispatcher startup Configured modem ports that will take part in transactions are pre-configured. The Application Dispatcher (AD) startup code looks at this configuration stream to determine the number of S threads (serial port listeners). S classes instantiate a VFI.NET. serversocket object which in turn create a VFI.NET.ModemlO.ModemPort object. The ModemPort object binds to a low level VFI.NET.ModemlO.Port object which utilizes native methods to configure and wait on the communications port. SO { serversocket SOSocket - new serversocket ("socketl 1 1 1", 1); // Listener object { socket S0ConnSocket= SOSocket. acceptfj; // Translates to WaitDevice(CONNECT) ReadAhdValidate (RequestID); return RequestID, SOConnSocket; } } Request Processing > \ As illustrated above, S threads are transient threads. And even when alive they perform efficient waits (No CPU cycles are consumed). The AD receives the RequestID from each S thread. Request processing is performed by database lookup. Typically Requests, are simple text messages with delimiters and are parsed using a StringTokenizer object. StringTokenizer stParseHelp = new StringTokenizer ((String) Request); field 1 = stParseHelp. nextToken(); field2 = .... and so on. The AD will query a database to determine which applications should be initiated based on the enquiry message utilizing an SQL query of the form: "SELECT <Field ClassPath> from <TableName> where <fl = field 1 and >; is handled by the JDBC layers to return data to the AD. The AD is now ready to run the client thread. ClientThread = new Thread (fieldl , fιeld2... , SOConnSocket); <_^ The field list contains appropriate fields (those required for client application processing) and are passed down to the client thread along with the connected socket object. Client Threads Client Threads proxy the actual application. Application output meant for the terminal's devices are routed out using VFI.TERMIO as directives to the client terminal's firmware. The connected socket (which translates to a live dial-up connection) is passed down from the AD to the client thread. Client threads are long living - usually transferring data to corresponding servlets that initiate connections to upstream hosts or make database transactions. Despite the fact that client threads can be JDBC aware, servlets handle database transactions. This helps to maintain code constancy when the same client class is downloaded to a Java capable terminal for remote execution. Terminal I/O is performed through a VFI.TermlO object that in turn instantiates a VFI.TermlO. ServProtocol object. The protocol object implements the actual data transfer with the client terminal. The protocol object requires the socket object passed down from the AD to the client thread. CO (Appropriate Request fields, SOConnSocket) ( £> VFI.TermlO IOObject = new TermlO (SOConnSocket); //IO object / /instantiation. This cascades into a ServProtocol Object instantiation. lOObject.WriteString (Stringlndex); //Displays a particular string on the P-ATM. //If the client needs to retrieve data from upstream hosts (OmniHost, VISA etc), //or needs data from a database it makes a TCP stream connection to a servlet. / /This is consistent with the behavior of the network terminal which would //make the same connection over PPP. clienTransObject = new Socket (<Host>, <Well known socket>); / / Explained further down under initial client requests //Further processing / / Send out host requests clienTransObject.write (HostRequest); clienTransObject.read (HostResponse); lOObject.WriteString (Striήglndex + n); //Displays status on the P-ATM. } 3^ Initial Client Request processing The AD runs a T thread (spawned off during startup) that listens on a well-known socket (e.g. 1 1 12) waiting for initi.al ClientRequests from a client application. The T thread processes the ClientRequest to determine which servlet class needs loading. T { ClientlnitialRequestListener = new ServerSocket (<wellknown socket (e.g. 1112)>); / / Wait for initial requests and spawn off server connSocket = ClientlnitialRequestListener. acceptQ; connSocket. Stream. read (InitialRequest); Parse (InitialRequest); HostThread HO = new Thread (connSocket, "class name"); } The T thread is a daemon thread and lives as long as the AD lives. When the client application is downloaded to a Java capable terminal initial requests arrive over the PPP link. 3 Host Threads or Servlets Host Threads (H) service client requests for upstream and database connectivity. A host thread can make TCP connections with remote hosts, forward financial transactions originating from the client application and route the response. HO (connSocket) { connSocket. Stream. read (ClientRequest); ParseRequest (StringTokenizer); Socket upstreamSock = new Socket (upstreamHost, Port); //Transact connSocket. Stream. Write (HostResponse); } Transient and Long-living Threads in the Application Dispatcher A sockets based abstraction of the Win32 Communication API Consistence in the access of transport layer services needs no over emphasis. The design of the PTS server aims to provide a uniform interface to third party client component and server component applet writers to the async dial-up protocol module and the 3le> system's TCP/SLIP/PPP stack. This interface comprises a set of Java Classes collectively called VFI.NET.*. It should be noted that this package does not provide pure TCP/UDP/IP specific objects and methods that are already defined and implemented in java.net.*. Programmers, however, do not need to explicitly import java.net.*. This is automatically done by the package. Further, this document does not discuss the functionality of java.net.* which may be found in the appropriate JDK documentation. It, merely, details a class design that overloads methods specifically necessary to build a BSD sockets like layer between calling applets (servlets) and the machine specific Java serial communications package. Hierarchy A uniform upper edge interface for the ModemlO classes permits easy replacement of the implementation. The actual modem handling code, for instance, may use the TAPI client calls instead of direct Win32 communication calls. Multiple libraries that conform to the same interface allow different link level protocol stacks (like MNP3). This ensures the constancy (and hence direct portability) of VFI. ModemlO.*. Required ModemlO Functionality 1. Open an end-to-end async, duplex dial-up connection. The station address (InetAddress as in TCP/IP) is the dial string. Configure upon connection. 2 - 2. Listen for an incoming dial-up connection. The listen port (analogous to the bound TCP port) is the COM port. In this regard the valid port numbers range from 0 - OxFF (which is the maximum number of COM ports allowed in NT). Configure upon initialization. 3. Obtain Input and Output streams that re-direct from/ to the open connection. 4. Hang-up (close as in TCP/IP) a live connection. The following classes form a part of VFI. ModemlO.* :- Raw Serial Port Handling public class VFI. ModemlO. Port { //Contructors public Port (int nPortNum); public Port (i t nPortNum, int nBaud, int nParity, int nDataBits, int nStopBits); public Port (int nPortNum, String sCfgStr); public Port (String sPortName); public Port (String sPortName, String sCfgStr); S& //Methods public void closeQ; public int getPortID(); public String getPortNamefJ; public String getCfgStr(); public InputStream getInputStream(); public OutputStream getOutputStreamQ; Modem initialization and methods public class VFI. ModemlO. ModemPort { / /Constructors public ModemPort (int nPortNum); public ModemPort (Port objPort); public ModemPort (String sPortName); public ModemPort (int nPortNum, String sInitString); public ModemPort (Port objPort, String sInitString); public ModemPort (String sPortName, String sInitString); //Methods public Port getPort(); public boolean connect (String sDialString); public void disconnect(); public void reset(); public boolean configure (String sCfgStr); ct\ „ ,Λ MBrtWI PCT/US97/13057 WO 98/06207 public boolean configureDM (String sCfgStr); Programmers must use getPort() to capture a stream and transfer data over the ModemPort. Configure(String) sends out an AT command and returns TRUE if the modem returned OK<cr><lf>. configureDM(String) sends out the same command to the modem when in data mode. 10 NET - The Sockets wrapper The package encapsulates two major classes found in java.net.* - Socket and ServerSocket. To present a familiar interface and yet avoid conflicts, the package instantiates its own socket and 15 serversocket objects via constructors that take an extra parameter (that identifies the lower object that needs to be instantiated). This is illustrated after the class definition. Station address resolution 20 The InetAddress object refers to an unique long value that corresponds to the machines TCP/IP address. The async dial-up line may however use multiple COM ports to open a connection with the host. Heuristically, it may seem that fitting the TCP/IP host/ machine address into the native COM support library will 25 permit overloading of InetAddress and hence enhance elegance. This, however, results in extra and avoidable complexity. In this 3 regard, InetAddress will still correspond only to a TCP/IP address. The versions of the java.net. Socket constructor that accept the host name (as a String) will, instead, be overloaded. This value will now refer to a dial String that identifies the remote station address. Socket initialization and connection public class VFI. ET. socket { / /Constructors public socket (String sHost, int nPort, int n Pro toco-Type); /* nProtocolType may take one of two values : PFJNET #defined to 1 PF_VFI_PTS_MODEMIO ^defined to 2 Passing a value of 0 causes the use of java.net. Socket.*/ / /Methods public void close (); public String getStationAddress(); public int getPortfJ; public InputStream getInputStreειm(); public OutputStream getOutputStream(); } public class VFI.NET.serversocket { //Constructors public serversocket(int nPort, int nProtocolType); /* nProtocolType may take one of two values : PF NET #defined to 1 PF_VFI_PTS_MODEMIO #defined to 2 Passing a value of 0 causes the use of java.net.ServerSocket.*/ //Methods public socket acceptfj; public void closefj; public int getPortfJ; } Interface Library to native Win32 Comm. API methods HANDLE OpenDevice (int nDevNum, DCB * pNewDCB); void CloseDevice (HANDLE TiDevice); int WriteDevice (HANDLE hDev, int n Byte sTo Write, unsigned char * pWriteBuf); int ReadDevice (HANDLE hDev, int nBytesToRead, unsigned char * pReadBuf); BOOL ConfigureDevice (HANDLE hDev, DCB * pNewDCB); 15 - While the invention is described in terms of preferred embodiments in a specific system environment, those skilled in the art will recognize that the invention can be practiced, with modification, in other and different hardware and software environments within the spirit and scope of the appended claims. Zm?-X

Claims: CLAIMS Having thus described our invention, what we claim as new, and desire to secure by Letters Patent is: 1. A distributed computer system including a client terminal and a server which communicate via a network, comprising: (a) the client terminal initiating connection to the server computer utilizing the network; (b) the server responding to the initial connection by transmitting an enquiry message to the client terminal; (c) the client terminal responding to the enquiry message with a message comprising identification information indicative of the client terminal being a network terminal or a non- network terminal and identifying a client application the client terminal requires; (d) the server receiving and analyzing the identification information to determine if the client terminal is a network terminal or a non-network terminal; and (d l) if the client terminal is a network terminal, then the client loader on the server updates the client application, if necessary, on the client terminal utilizing the network and starts the server application to service future requests from the client terminal; and (d2) if the client terminal is a non-network terminal, then the server initiates the client application and server 54 application on the server for processing the application at the server for the client terminal. 2. The distributed computer system as recited in claim 1, wherein the update of the client application entails a download of the client application to the client terminal. 3. The distributed computer system as recited in claim 1 , in which the client terminal communicates to the server utilizing a dial-up network connection. 4. The distributed computer system as recited in claim 1 , wherein the identification information comprises configuration characteristics of the client terminal. 5. The distributed computer system as recited in claim 1 , wherein the network terminal executes Java code on the network terminal. - 5 6. The distributed computer system as recited in claim 1 , wherein the same client application is executed on the server computer and the client terminal. 7. The distributed computer system as recited in claim 1 , wherein the non-network terminal receives commands from the client application on the server. 8. The distributed computer system as recited in claim 1 , including means for passing a client application request to another server to process the request. -- 9. A method for distributing computing between a server computer and a client terminal which communicate via a network, comprising the steps of: (a) initiating connection of the client terminal to the server computer utilizing the network; (b) responding to the initial connection request at the server computer by transmitting an enquiry message to the client terminal; (c) responding to the enquiry message at the client terminal with a message comprising identification information indicative of the client terminal being a network terminal or a non-network terminal and identifying a client application the client terminal requires; (d) receiving and analyzing the identification information at the server computer to determine if the client terminal is a network terminal or a non-network terminal; and (d 1) loading a server application if the client terminal is a network terminal, which starts the client application and services future requests from the client terminal; and (d2) loading a server application on the server, if necessary, which initiates a client application on the server for processing the client application at the server on behalf of the client terminal, if the client terminal is a non-network terminal. w 10. The method as recited in claim 9, wherein the update of the client application entails a download of the client application to the client terminal. 11. The method as recited in claim 9, including the step of communicating between the client terminal and the server utilizing a dial-up network connection. 12. The method as recited in claim 9, wherein the identification information comprises configuration characteristics of the client terminal. 13. The method as recited in claim 9, wherein the network terminal executes Java code on the network terminal. 14. The method as recited in claim 9, wherein the same client application is executed on the server computer and the client terminal. 15. The method as recited in claim 9, wherein the non-network terminal receives commands from the client application on the server. rb 06207 16. The method as recited in claim 9, including the step of passing a client application request to another server to process the request. 17. A computer program embodied on a computer-readable medium for enabling a distributed computing system, including a client terminal and a server which communicate via a network, comprising: (a) a code segment for initiating connection of the client terminal to the server computer utilizing the network; (b) a code segment for responding to the initial connection request at the server computer by transmitting an enquiry message to the client terminal; (c) a code segment for responding to the enquiry message at the client terminal with a message comprising identification information indicative of the client terminal being a network terminal or a non-network terminal and identifying a client application the client terminal requires; (d) a code segment for receiving and analyzing the identification information at the server computer to determine if the client terminal is a network terminal or a non-network terminal; and (d l) a code segment for loading a server application if the client terminal is a network terminal, which updates the client application and services future requests from the client terminal; and SI 06207 (d2) a code segment for loading a server application, if necessary, on the server which initiates the client application on the server for processing the client application at the server on behalf of the client terminal, if the client terminal is a non-network terminal. 18. The computer program as recited in claim 17, wherein the update of the client application entails a download of the client application to the client terminal. 19. The computer program as recited in claim 17, including a code segment for communicating between the client terminal and the server utilizing a dial-up network connection. 20. The computer program as recited in claim 17, wherein the identification information comprises configuration characteristics of the client terminal. 21. The computer program as recited in claim 17, wherein the network terminal executes Java code on the network terminal. 22. The computer program as recited in claim 17, wherein the same client application is executed on the server computer and the client terminal. MO 23. The computer program as recited in claim 17, wherein the non-network terminal receives commands from the client application on the server. 24. The computer program as recited in claim 17, including a code segment for passing a client application request to another server to process the request. 25. The computer program as recited in claim 17, including a code segment for making a dial up connection appear to the server as a socket connection. M \

Inventors: COWAN RICHARD, ECKLEY GORDON P, LEONG WINSTON C W, PANCHANGAM PRASAD V R, COWAN, RICHARD, ECKLEY, GORDON, P., LEONG, WINSTON, C., W., PANCHANGAM, PRASAD, V., R.
Applicants: COWAN RICHARD, ECKLEY GORDON P, LEONG WINSTON C W, PANCHANGAM PRASAD V R, VERIFONE INC, COWAN, RICHARD, ECKLEY, GORDON, P., LEONG, WINSTON, C., W., PANCHANGAM, PRASAD, V., R., VERIFONE, INC.
Application year: 1997
Main classification: H04L29
IPC codes: H04L29