Solved

network programming

Posted on 2003-11-02
5
183 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
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.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

911 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

18 Experts available now in Live!

Get 1:1 Help Now