hi
i newbie, i want to send a file at a time from server to the requested
client?
how can i achieve this using tcp connection and kindly let me know the
systems calls
bye
Printable View
hi
i newbie, i want to send a file at a time from server to the requested
client?
how can i achieve this using tcp connection and kindly let me know the
systems calls
bye
In article
<5ea246d5-53a0-4058-bdf7-0e3290b10017@t12g2000prg.googlegroups.com>,
kumar <raman.emb@gmail.com> wrote:
[color=blue]
> hi
> i newbie, i want to send a file at a time from server to the requested
> client?
> how can i achieve this using tcp connection and kindly let me know the
> systems calls
>
> bye[/color]
Server:
socket: Create a network socket.
bind: Tell the OS what port the socket should respond to.
listen: Tell the OS to start listening for connections.
accept: Wait for an incoming connection and return an FD for it.
open: Open the file.
read: Read from the file.
write: Write to the network socket.
close: Close the file and socket.
The client is similar, except it uses connect() instead of bind, listen,
and accept.
--
Barry Margolin, [email]barmar@alum.mit.edu[/email]
Arlington, MA
*** PLEASE don't copy me on replies, I'll read them in the group ***
On May 4, 1:24*am, kumar <raman....@gmail.com> wrote:[color=blue]
> hi
> i newbie, i want to send a file at a time from server to the requested
> client?
> how can i achieve this using tcp connection and kindly let me know the
> systems calls
>
> bye[/color]
You can use FTP to accomplish this. Many application frameworks
like .NET allow you to initiate FTP sessions programatically.
--
VisualEther - [url]http://www.eventhelix.com/VisualEther/[/url]
Reverse engineer sequence diagrams from Wireshark logs