file transfer through ethernet from server to client
need a java or c/c++ server and client programs for transferring an exe file from an ubuntu system to a windows7 system. 
Already have a code,Connection establishment between two machines are done and transferring a text file is working fine but using the same code when transferred an exe file, the file is transferred but when that exe is not running in window7 machine,same thing for a pdf file, I think only text file alone works fine.

Any one help me with full code....java or c/c++ is ok...
file transfer through ethernet from server to client
===

need a java or c/c++ server and client programs for transferring an exe file from an ubuntu system to a windows7 system. 
Already have a code,Connection establishment between two machines are done and transferring a text file is working fine but using the same code when transferred an exe file, the file is transferred but when that exe is not running in window7 machine,same thing for a pdf file, I think only text file alone works fine.

Any one help me with full code....java or c/c++ is ok...