LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-23-2007, 04:54 AM   #1
haxpor
Member
 
Registered: Dec 2006
Distribution: Ubuntu 20.04
Posts: 87

Rep: Reputation: 15
Is it anyway we can use C Socket programming (In unix) in Windows?


I want to know, Is it possible to use C Socket Programming style in Unix (all the functions,headers etc).
If so how can i do that? And Am i need the library too?

Thanks.
 
Old 07-23-2007, 05:50 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Your question is not clear to me. Do you want to convert Windows programs to Unix or the other way around?

As far as I know they are very similar. You need an additional function under Windows that you don't need in Unix; this function is usually in the beginning of the program.
In Unix (at least in Linux) the libraries are included when you install the compiler.
 
Old 07-23-2007, 03:29 PM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Look for a guide called "Beej's guide to network programming". Though it is Unix-specific, it does discuss some of the differences between Windows sockets and standard sockets.
 
Old 07-24-2007, 05:01 AM   #4
haxpor
Member
 
Registered: Dec 2006
Distribution: Ubuntu 20.04
Posts: 87

Original Poster
Rep: Reputation: 15
Thanks everyone, I know now that i can emulate network program in unix in windows with cygwin. Im sorry that i am not ask for more clear question but thanks any way.
 
  


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 Programming: SMTP program to send email through Unix WinX187 Programming 1 05-12-2007 06:35 AM
recv: Bad address (UNIX Socket programming) anamericanjoe Programming 1 12-13-2006 08:25 PM
PHP UNIX Domain Socket Programming anamericanjoe Programming 2 12-08-2006 02:10 AM
unix/socket programming, which book should i read first ??? b0nd Linux - General 2 05-06-2006 12:47 AM
Unix socket programming - how to sent a file Scrag Programming 9 03-28-2004 09:54 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:44 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