Solved

network programming

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Making a Sample Win32 DLL project Using Visual Studio 2010 Professional 4 96
Dynamically allocate memory 9 58
Create a path if not exists 7 77
Issues with C++ Class 19 92
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
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 clear a vector as well as how to detect empty vectors in C++.

773 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