LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-10-2012, 10:03 AM   #1
Chi11 1ax
LQ Newbie
 
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
looking for best compiler


I need to create a program to send and receive a 1080 x 1080 pixel jpeg image between two computers using electrical pulses with the ability to time transmission length. What should I use? My prefered os is windows xp
 
Old 03-10-2012, 11:00 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
"Using electrical pulses"?

Can your question make any less sense?

If I'm reading your mind right, you want to learn about socket programming. This is a popular HOWTO:

http://beej.us/guide/bgnet/

Last edited by dugan; 03-10-2012 at 11:03 AM.
 
Old 03-10-2012, 01:25 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in <PROGRAMMING> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 03-10-2012, 02:23 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
On the chance that "electrical pulses" implies a direct computer-to-computer connection (e.g. using a serial cable):

Serial Programming Guide for POSIX Operating Systems

Quote:
My prefered os is windows xp
I can't say with certainty, but I'm pretty sure Windows does not strive for POSIX compliance. See Wikipedia: POSIX--POSIX for Windows

Be that as it may, I'm sure there are some examples/tutorials for serial port programming available for Windows out on the web.

Regarding the compiler (from the title of your post), a lot of the members here will be most familiar (possibly exclusively familiar) with gcc. You can get gcc for Windows via Cygwin or MinGW as described on this download page

If you use a Linux distribution, gcc will be available through your distribution's package manager.
 
Old 03-11-2012, 12:50 PM   #5
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
No standard C library that I know of includes an 'electrical_pulse()' function or system call. Maybe you should be a lot more specific about the electrical nature of the pulses, and what hardware you expect will generate and receive them.
Almost any existing networking and communications protocol/standard would satisfy the requirement, and virtually all of these will be supported in some fashion by existing OS's and the respective system calls. I assume that Windows provides some provisions for measuring time, although I doubt there will be anything fine-grained enough to measure hardware-level timing of communications signaling in any OS.

--- rod.
 
Old 03-11-2012, 10:27 PM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Also, there's actually a fancy computery jargon term for these electrical pulses. They're called "bits".
 
  


Reply



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
[SOLVED] [Question] How to compile a gcc compiler for another machine which got no c compiler on it shone27 Linux - Newbie 9 09-28-2011 07:32 PM
checking for C compiler default output... configure: error: C compiler cannot create clubbing80s Linux - Software 3 07-05-2010 08:17 PM
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
My c compiler doesn't work after the cross-compiler installed heracles.cn Linux - Newbie 1 06-05-2007 03:55 AM

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

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