Tapi - (1 server n-clients)
-
Hello! I want to establish data sessions between 1 server and n-clients. The data communication would be progressing between 1 server and n-clients simultaneously. i.e.one server and many clients.i.e. N client machines would be connecting and communicating with 1 server machine. Once the connection is established, server would be accepting the data sent by the clients and then the same data would be again sent back to the same client who sent it to the server, through modem. The application should have the capability to do data transmission and receive simulnateously with n-clients. The application is supposed to run on Win 98,WinNT, WIN 2000 and Win XP. I am using C programming and TAPI 2.0. I do not want to use COM/DCOM. Can you please tell me if it is possible to build an application of n-clients and 1 server using language C, TAPI 2.0 and without COM/DCOM. I already have built an application for data communication between single client and single server. Data transmission is done through the COM port to which the modem is connected. While programming for 1-server 1 client I have made use of async comm by using CreateEvent(), ReadFile(), WriteFile() (for communciation between COM ports), WaitforSingleObject() and GetOverlappedResult(). The configuration I am using is : There is a modem connected to the server machine and there are n (say 4) client machines. Each client has a modem connected to it. The data communication is via the modem through the COM port to send and recieve data (data communication--> client to server back to client). If suppose, the server is waiting for connection and a client connects to the server, the connection is established and the data communication is started. Now another client attempts to connect to the server, will that client be able to connect to server ?? (as the first client is still holding the line and busy in data communication). Do I have to have some other specialised hardware so that other clients may also connect to server simultaneously. (same as in EPBX systems). or do I need to have some software which will help me connect n-clients to 1 server. Could you please guide me amd give some idea about how to go about solving this problem. Your advise would be of great help to me. Thanking you. With Regards, Sandeep Shetty