LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-27-2006, 10:13 PM   #1
yhus
Member
 
Registered: May 2004
Posts: 75

Rep: Reputation: 15
Problem to transfer binary file over TCP socket


Hello,

I can read a binary file and to write it to another location, it is all fine. But when I tried to transfer a binary file over a TCP socket, the binary file collapsed. Although it has the same size from the transmitter, it can no longer be executed after reinstalled from received packets. Appreciate any helps.

Thank you.

Jim
 
Old 02-28-2006, 12:14 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Not enough details to do more than speculate, but my first guess would be that the attribute bits are not set correctly on the receiving end (assuming Linux receiver). You need the file to be executable.

chmod +x filename

--- rod
 
Old 02-28-2006, 06:14 AM   #3
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
how exactly did you action this remote copy??
 
Old 02-28-2006, 08:41 AM   #4
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
Assuming you are talking about FTP, did you set the transfer mode to binary?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
socket pogramming(TCP) hubabuba Programming 4 10-24-2005 11:14 PM
Linux TCP Socket swa_dur Linux - Networking 3 09-23-2005 11:03 AM
socket buffer TCP lucs Slackware 0 05-05-2005 07:26 AM
filetransfer with socket and tcp biiiep Programming 2 06-11-2004 12:33 PM
tcp socket monitoring xuttux Linux - Networking 1 05-19-2004 08:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration