473,394 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

how to read file from server to client using C++

hi to all,
can any one help me.
actually i have to read the xml fiel from server to client system wihtout copying the file to client, how can i access the server fiel from client using C++ prograaming... also i dont have to share that file.
please help me, its vry vry urgent.

thnks.
Oct 19 '07 #1
7 6799
sicarie
4,677 Expert Mod 4TB
You need to look into socket programming. You will have a "server side application" that will reside on the machine the file is on, and a "client side application" that will reside on the machine you want to go out and connect.

The links I have found to be helpful with that are:

http://www.beej.us/guide/bgnet/
http://www.alhem.net/Sockets/
http://linuxgazette.net/issue74/tougher.html
Oct 19 '07 #2
You need to look into socket programming. You will have a "server side application" that will reside on the machine the file is on, and a "client side application" that will reside on the machine you want to go out and connect.

The links I have found to be helpful with that are:

http://www.beej.us/guide/bgnet/
http://www.alhem.net/Sockets/
http://linuxgazette.net/issue74/tougher.html

thnks,
bt can u help me to get a demo project for reading the file frm server to client using socket programming in C++ , i m having a little bit difficulty....
plz do this favour for me.
Oct 22 '07 #3
sicarie
4,677 Expert Mod 4TB
Did you follow those links? There are examples in there (which it seems you did not bother to look at).

However, if you have something you are having trouble with, you can ask a question about it and we all will try to help you. But you're going to have to get started on your own. Well, not really on your own as those tell you how to do it..., but because those tell you, I'm not going to.
Oct 22 '07 #4
Did you follow those links? There are examples in there (which it seems you did not bother to look at).

However, if you have something you are having trouble with, you can ask a question about it and we all will try to help you. But you're going to have to get started on your own. Well, not really on your own as those tell you how to do it..., but because those tell you, I'm not going to.

thnks,
i hv created a clinet server communication using Socket class but i m not able to open the server file from the client as i have to read hte xml file saved on server from client side, i hv used fopen with full ip address of server bt its nt getting the file pointer.....
plz tell me the way to read the server file from client side directly..
plz guide me.
Oct 23 '07 #5
sicarie
4,677 Expert Mod 4TB
thnks,
i hv created a clinet server communication using Socket class but i m not able to open the server file from the client as i have to read hte xml file saved on server from client side, i hv used fopen with full ip address of server bt its nt getting the file pointer.....
plz tell me the way to read the server file from client side directly..
plz guide me.
What is the error or message that you get when you try to open the file on the client?
Oct 23 '07 #6
What is the error or message that you get when you try to open the file on the client?

plz tell me how to use socket for single server multiple client sysytem.
Oct 24 '07 #7
sicarie
4,677 Expert Mod 4TB
What error message did you get when you tried this?
Oct 24 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: IndianOZ | last post by:
Hi , I'm trying to send an Image over the Socket Connection (from the Client using winsock, which is a VB based client) and at the other end I'm reading the Stream (at the Server which is java...
9
by: John Howard | last post by:
How can I read a text file that is on a UNIX server in VB.Net? Please keep it simple. Thanks, John
2
by: Lisa Pearlson | last post by:
Hi, I am wanting to write an internet 'server' program. For ease, I want to use PHP-CLI with XINET super server. XINET communicates with the 'server' program via STDIN/STDOUT. I'm not sure...
1
by: archana | last post by:
Hi all, I am new to asp.net. I heard somthing like we can't open file which is there on client pc without uploading that file onto out server. Is it right? If i am wrong then please correct...
6
by: dinoo | last post by:
Hi, I would appreciate if some one could help me out. I have to read a client side ini file in Aspx page and use that data in server side processing. Can any one help me out here? Please refer...
0
by: phplasma | last post by:
Hey, I am currently attempting to implement a multi-threaded C# socket, using SSL (.pem file/certification/private key combo) server using Visual Studio C# Express. I have successfully made...
8
by: dosworldguy | last post by:
I have been having a very peculiar issue from a long time. I have an application where multiple clients read from a shared set of files. When a record is changed, sometimes the win9x clients...
8
by: Johnny | last post by:
Hi all: I have an ASP.NET form that reads an Excel file and populates a datagrid. If I load the form in IE on the server, and select a local file, the code works fine. However if I load the form...
4
by: Ross | last post by:
Hello, I am trying to Read and Write to a text file on a web server using Microsoft Visual Basic 2005 Express Edition. So far I have managed to complete my testing with a local text file using...
6
by: Peter | last post by:
I have a WebService which returns a List of RunningReport class How do I read this XML data on the client side. How do I convert List<RunningReportfrom the WebService side to List<RunningReporton...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.