Solved

network programming

Posted on 2003-11-02
5
181 Views
Last Modified: 2010-04-02
I have to write a program that sends data to a server and i would like to know what i should start with becouse i have never done something like this before.
0
Comment
Question by:therias
5 Comments
 
LVL 11

Accepted Solution

by:
bcladd earned 20 total points
ID: 9667670
Network programming, at the low level, is done using sockets. A C language tutorial on using sockets is available at http://www.cpp-home.com/tutorial.php?25_1 (it is centered on *nix programming but most of the low-level stuff translates).

That being said, what kind of server do you want to talk to. If it is a Web server or a database server or an FTP server (or a mail server or just about any other server with a standardized protocol) then you want to look for a libarary that supports that protocol. Microsoft has HTTP classes built for MFC programs and similar libraries can be found for other operating systems (and better/different ones can be found for MSWindows).

Hope this helps, -bcl
0
 
LVL 17

Expert Comment

by:rstaveley
ID: 9667673
You need to start by finding out what you've got on the server. If you've got an FTP server with suitable permissions set up for you, you might be looking at writing an FTP script.
0
 
LVL 10

Expert Comment

by:Sys_Prog
ID: 9669417
Here's one of the best links to start Networking Programming using sockets

http://www.ecst.csuchico.edu/~beej/guide/net/html/

It realy exlains all the steps in detail

A PDF version also available

0
 
LVL 9

Expert Comment

by:tinchos
ID: 10242433
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: bcladd {http:#9667670}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Tinchos
EE Cleanup Volunteer
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now