NithinDas
September 25th, 2002, 07:51 AM
Hi All,
Can any one help me out to solve a problem related to Socket Programming. I have a program running on one machine say Machine1 which is acting initially as a Server with accept and Listen state. I am connecting this machine with another machine say Machine 2 with Socket and Connect system functions. After writting some data into that socket by this Machine2 it will be waiting the data from the machine 1.
In case if Machine 1 takes so much time to process the data and send output to machine 2 , machine 2 's thread will be killed,
Is it possible to have a program that continously listens for accepting data in Machine 2 simultaneously i.e acting as a server now. waiting for the data (Since it is not possible to know when will be the data will be arrived from machine 1)
Can any one help me out to solve a problem related to Socket Programming. I have a program running on one machine say Machine1 which is acting initially as a Server with accept and Listen state. I am connecting this machine with another machine say Machine 2 with Socket and Connect system functions. After writting some data into that socket by this Machine2 it will be waiting the data from the machine 1.
In case if Machine 1 takes so much time to process the data and send output to machine 2 , machine 2 's thread will be killed,
Is it possible to have a program that continously listens for accepting data in Machine 2 simultaneously i.e acting as a server now. waiting for the data (Since it is not possible to know when will be the data will be arrived from machine 1)