Re: Where do I start?

From: George Huber (kharmon_at_optonline.net)
Date: 02/15/05


Date: Mon, 14 Feb 2005 23:29:05 -0500

On Fri, 11 Feb 2005 02:26:07 -0800, annesville wrote:

> Hello All,
>
> I am a newcomer to Linux development (well Linux at all), coming from a
> fairly strong background of Microsoft programming (Visual Basic, ASP,
> etc.) - Please bear with be!
>
> I am investigating the practicality (note, not "possiblity" - anything
> is possible) of developing a Linux based application with the following
> requirements:
>
> 1) Send, listen for & receive UDP/IP network traffic
> 2) Create TCP/IP connections and send/receive data on these connections
> 3) Send, listen for & receive data on a serial connection
> 4) Perform http page requests and read the results
> 5) Interface with a database (I guess MySQL)
> 6) Schedule events according to a complex customizable timetable (ie
> not simply "at 1pm every day" stuff). These will result in actions
> involving items (1) to (4)
> 7) A web based user interface which allows for server side scripts (eg
> PHP) - the necessity here being the ability to inject information from
> the database or server scripts into the served html pages.
> 8) System availablity with user login.
>

Well how would you do these tasks on Windows??? Assuming you are using C
or C++ to do the programming

1 & 2) Just like on windows, use socket calls. For example to create TCP
connections you would use the socket, connect, send, recv functions on the
client and on the server you would use socket, bind, listen, accept, send
and recv functions.

3) In a Windows world you would use CreateFile to open the communication
port. In Linux use open. The theory is still the same.

4) Not quite sure what you mean, but HTTP is a standard and as long as you
can make the connection to the server you can send request to the server
on a socket.

5) Use unixODBC or use the native C/C++ interface or use a prepackaged
library.

6) Maybe use a daemon? Maybe cron can handle these tasks?

7) This sounds like CGI (common gateway interface) for dynamic web pages.
Nothing difficult here, although there are a few details that can bite
you. Again, on a windows platform you would do the same thing.

8) Not a clue what you mean.

George



Relevant Pages

  • Re: Future of IT in Lebanon
    ... It's the same Linux code base. ... Microsoft Office on a Windows server, it will install and run fine, the main ...
    (soc.culture.lebanon)
  • Re: Question about Red Hat Linux Enterprise
    ... we have is running Windows 2000 Server ... Luckily running Apache + MySQL on a Linux system is not a lot ... MySQL database and injecting it back into the MySQL installation ...
    (comp.os.linux.networking)
  • Re: Sweet Success
    ... Let's continue to assume that I prefer Windows to anything else: ... neither Linux nor Windows may be the answer. ... While it may well be initially less expensive to install a Linux-based ... of Linux simultaneously, along with Windows Server, AIX, and OS/400. ...
    (RedHat)
  • Re: [Full-disclosure] 70 million computers are using Windows 98 right now
    ... Linux is definitely not a natural migration pathway. ... Windows 2000, Windows XP, and Mac OS X seem to work pretty ... > desktop to server. ... But then the persons across the sea just can't install ...
    (Full-Disclosure)
  • Re: Benutzerkontenverwaltung mit Win 2003 Server - Teil 2
    ... und dann bin ich über Solaris zur ersten 30-Disketten-Version Linux ... Server auch keine grafische Oberfläche, der vi ist halt mein bester ... Und das ganze geht schon in Ansätzen seit Windows NT so ... > Unternehmensnetzwerk unter Unix administrieren könnte. ...
    (microsoft.public.de.german.windows.server.networking)

Loading