A
avdhesh.yadav
Hi all
let me first explain secnerio.
Actually i have to write a multithreaded program.
In this program i have to read files remotely using TCP sockets...
Everytime New file comes i have to create a new Socket and accept and
read the file.
and then after rading it i have to send it to a a client..
Thing is that file is Remotly located..
first i have to connect to that server ad then read file and send it
client..where we done processing ..
i m thinking two things ..
in one case i crrate a single socket and read files through this socket
and send it to cleint..
other is creat separate sockets and read files and then send it to
client..
Which option is correct and how i program this..
Thanks in advace
Avdhesh
let me first explain secnerio.
Actually i have to write a multithreaded program.
In this program i have to read files remotely using TCP sockets...
Everytime New file comes i have to create a new Socket and accept and
read the file.
and then after rading it i have to send it to a a client..
Thing is that file is Remotly located..
first i have to connect to that server ad then read file and send it
client..where we done processing ..
i m thinking two things ..
in one case i crrate a single socket and read files through this socket
and send it to cleint..
other is creat separate sockets and read files and then send it to
client..
Which option is correct and how i program this..
Thanks in advace
Avdhesh