Thread: Linux -> Windows

  1. #1
    Registered User
    Join Date
    Nov 2012
    Location
    East Jerusalem, Israel
    Posts
    1

    Linux -> Windows

    Hi ,
    I want to ask how we can apply the project in the preceding link in windows environment ?

    simple implementation of FTP on "C"

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    One solution is to use something like Cygwin to compile it on Windows. The other solution is to port it - which will require you to understand Linux and Windows system calls enough to go through the code and translate from one to the other.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    You can read this -> Beej's Guide to Network Programming

    You can study the difference between Linux and Windows headers.

    You can make the changes to the s/w to basically use winsock.h in place of several Linux headers.
    Plus throw in a WSA_Startup() call somewhere.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. linux vs windows?
    By Izzy123 in forum Linux Programming
    Replies: 1
    Last Post: 03-30-2011, 06:27 AM
  2. Linux vs Windows
    By manav in forum A Brief History of Cprogramming.com
    Replies: 114
    Last Post: 04-08-2008, 08:32 AM
  3. Linux != Windows....
    By Jaqui in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 01-13-2006, 02:32 AM
  4. Windows vs. Linux
    By moemen ahmed in forum A Brief History of Cprogramming.com
    Replies: 35
    Last Post: 07-14-2002, 09:29 PM
  5. Linux Under Windows
    By Strut in forum Linux Programming
    Replies: 3
    Last Post: 05-27-2002, 08:09 PM