Re: Where do I start?
From: George Huber (kharmon_at_optonline.net)
Date: 02/15/05
- Next message: Dave Cook: "Re: Where do I start?"
- Previous message: John Fusco: "Re: Where do I start?"
- In reply to: annesville_at_hotmail.com: "Where do I start?"
- Next in thread: annesville_at_hotmail.com: "Re: Where do I start?"
- Reply: annesville_at_hotmail.com: "Re: Where do I start?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Dave Cook: "Re: Where do I start?"
- Previous message: John Fusco: "Re: Where do I start?"
- In reply to: annesville_at_hotmail.com: "Where do I start?"
- Next in thread: annesville_at_hotmail.com: "Re: Where do I start?"
- Reply: annesville_at_hotmail.com: "Re: Where do I start?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|