Sever and Client tasks are handling simultaneously.
Hi all,
For my final year project Im going to develop an interactive learning system in-between sever and client for my lab. Ill explain it in this way.
Say I have two PCs, one work as a server and the other work as a client. I have a drawing panel, which allow to the user draw anything using there pen tool or any other device, on both PCs.
I have to full fill three requirements as follows,
If the user on server writes something on his panel, it should be displayed on the clients panel.
If the user on client writes something on his panel, it should be displayed on the servers panel.
Those above two tasks should be work simultaneously. I mean both of the user can do anything at the same time, and it should be seen each other at the same time.
I think it is clear enough to you. I dont know there is such device or any applications are available. And I dont know real technical term for this.
Please advice me from what level I should start work. Dont be hesitating to advice me, its not a commercial project.
Help really appreciate. Thanks.
# 1 Re: Sever and Client tasks are handling simultaneously.
I dont know there is such device or any applications are available.
Actually I m afraid there is. Even Yahoo messanger has a plugin for it now,
These were used in Web/ Vedio Conferencing for long time now. And I have seen on TV that these kind of software are used for even CAD/CAM designing.
If you are looking for a good project, better to do some search on the net.
:wave:
zeezee at 2007-12-5 13:46:55 >

# 2 Re: Sever and Client tasks are handling simultaneously.
Yep, I found one such application on CAD/CAM, developed using C++. And few hints on the net also available.
In my case the issue I come across is that how to connect those two application, which are running on two PCs.
# 3 Re: Sever and Client tasks are handling simultaneously.
Its just a matter of Data Comm.
You can use WinSock for this.
Or in C++, you can use socket programming.
What you need to start with is, defeining the messages you need to pass.
See, you can send data as text messages (not SMS :D).
like
[LINE,15,20,35,50]
which interperts to draw a line from point 15,20 to 35,50, and your recieving app should be able to interpret this data.
Another way is to send a screen shot to the other side when an update is done. screen capturing.
But before all this,design the functionality of your app.
:wave:
zeezee at 2007-12-5 13:48:55 >

# 4 Re: Sever and Client tasks are handling simultaneously.
But before all this,design the functionality of your app.
Correct, actually now I have my logic on this project. Now what I've doing is collecting resources for this.
I read few articles regrading the data communication between PCs, and I think socket programing is the perfect one for me. It is quite fast in processing...
# 5 Re: Sever and Client tasks are handling simultaneously.
Yeah Its faster. You can create threads (p-threads)to do your task ,etc..
I had few source for this but cant find it. try CISCO CCNA course material. It was there.
:wave:
zeezee at 2007-12-5 13:51:00 >

# 6 Re: Sever and Client tasks are handling simultaneously.
Actually I'm rally new for C++, since I've work with Java over the years. Threads are really new for me. And I found that threads are really helpful to make application faster, on any application. I mean on console, MFC, etc
# 7 Re: Sever and Client tasks are handling simultaneously.
Java is good also. It has own networking package you can use. (I havent used it). Its powerfull also.
Threads are good as long as you play with them correctly. you have to be care full on Shared Data, thread pool, Fork and Join, etc...
c++ has lot of functionality but its harder to code, but when you get used to it, you will love it.
Another message pasing mwthod for you is XML or SOAP
SOAP is good way to use and its new technology also.
:wave:
zeezee at 2007-12-5 13:53:03 >

# 8 Re: Sever and Client tasks are handling simultaneously.
Ya, you are correct. Using Java I can do it in easy way. But I want to do it using C++. Threads can be play a main roll here in my application, but I have to learn it first.
# 9 Re: Sever and Client tasks are handling simultaneously.
This is a Final Year Project right? What is the duration for the Project?
Its always good to learn new things, but when its project, the time frame plays a bigger role. When you do the project plan, make sure you alocate time for the learning curve also.
For my final year project, I used C# , but didnt have any experience for that. (It was a group research project). But we did it farily well.
There are many resources for c++, I think there is a section in here also.
:wave:
zeezee at 2007-12-5 13:55:05 >

# 10 Re: Sever and Client tasks are handling simultaneously.
You are correct, this is started as my final year project, but running out of time. So now I'm doing this just for learning something.
And also I'm already work on with C++ forum here in VBF. :wave: