![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| COMP-3 File transmission | sharifhere | Shell Programming and Scripting | 3 | 02-16-2007 03:38 AM |
| download files from direct links tool? | umen | UNIX for Dummies Questions & Answers | 2 | 07-04-2006 10:00 AM |
| lftp transmission error help | Iversog | UNIX for Dummies Questions & Answers | 0 | 06-29-2006 11:02 AM |
| Direct disk access | Lopatonosec | High Level Programming | 3 | 05-31-2005 12:39 PM |
| How to direct awk output to expr? | jvander | Shell Programming and Scripting | 4 | 04-21-2005 09:09 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
direct transmission of files via TCP/IP
Hi,
is it possible to write files via write() to a socket and read it on the other side via read(), without going through buffers? Iif not via write() and read() are there other possibilities? thanks darkspace |
|
|||||
|
You can read and write a single byte if you really want to. But sending a byte at a time over a TCP/IP connection is crazy unless you only have a single byte to send. Note that the original question was about sending "files". I think that he wants to send the file straight from disk to the network without the data ever coming into core.
|
|
|||||
|
Quote:
|
|
||||
|
Exactly, i do not want to store the file into a buffer (for read or write), but write/read it directly from disk to the socket/ from socket to disk.
I got one solution by mapping the file, then i can use the mapped file as the buffer for the read()/write() function. thanks |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|