Ask Experts Questions for FREE Help !
Ask
    sindarela's Avatar
    sindarela Posts: 4, Reputation: 1
    New Member
     
    #1

    Mar 12, 2009, 04:48 AM
    TCP/UDP client server
    Hello sir,

    I have a few questions to ask about TCP/UDP

    1)how to write in c++ program to show the communication using socket TCP for synchronous communication and UDP for asynchronous communication for the simple client server program.

    2) A simple application that uses RPC or RMI for the communication between a client to a server and a server to a server

    Client <--->Server1 <---> Server 2

    3) The invocation in server 1 to server 2 can have two types which are single thread and multithread.

    4) How to compare the processing time and turnaround time for the above applications.


    Thank you~:)
    Perito's Avatar
    Perito Posts: 3,139, Reputation: 150
    Ultra Member
     
    #2

    Mar 12, 2009, 05:31 AM

    Your question is very involved - much too involved for a simple explanation here.

    There are many places to find complete programs to show communication like this. Here's one on CodeProject.

    CodeProject: Multi-threaded Client/Server Socket Class. Free source code and programming help

    There are many others on Code Project. Just search on "TCP UDP" or possibly on "sockets" or "winsock".

    SourceForge.net also has a number of programs, including source code, that do this type of thing.

    SourceForge.net: Open Source Software
    sindarela's Avatar
    sindarela Posts: 4, Reputation: 1
    New Member
     
    #3

    Mar 12, 2009, 08:25 AM
    Thanks for the helping sir,

    Urm... how about d RMI or RCP?can u teach me how to write a simple application that uses RPC or RMI for the communication between a client to a server and a server to a server?
    Perito's Avatar
    Perito Posts: 3,139, Reputation: 150
    Ultra Member
     
    #4

    Mar 12, 2009, 08:33 AM
    I'll confess that I've never used RMI at all.

    A couple of links for RPC (in C++):

    CodeProject: Introduction to RPC - Part 1. Free source code and programming help

    CodeProject: Introduction to RPC - Part 2. Free source code and programming help

    For RMI:

    CodeProject: RMI for C++. Free source code and programming help
    sindarela's Avatar
    sindarela Posts: 4, Reputation: 1
    New Member
     
    #5

    Mar 13, 2009, 05:54 AM

    Thanks a lot sir for the information.. but I still have some problem to compare between communication server to server and comparison between communication time and turnaround?
    Perito's Avatar
    Perito Posts: 3,139, Reputation: 150
    Ultra Member
     
    #6

    Mar 13, 2009, 12:35 PM
    I think that you're going to have to do some research to see which is the faster. You might have to do it empirically (write two applications and test to see which is faster).

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

How to connect 2 computer making one server and other client via lan [ 1 Answers ]

Hello sir, I have oracle apps installed on 1 computer with linux os and different tools of oracle like toad,report buider,form builder installed on my laptop with windows xp as os. I want to connect both computer so that I can connect oracle tools with oracle apps making one as...

A program on Web server running on Client browser [ 1 Answers ]

Some programs, like MS excel, are installed in a server machine working as web server. Through client machine's browser I want to execute the server's programs like MS excel, i.e. MS excel will be shown inside the web browser of client. What will be code in ASP.NET, Javascript, VBScript or C#. At...

Client/server networks [ 1 Answers ]

Client/server networks

Client-Server information transfer [ 1 Answers ]

This question is with regard to Client (PC workstation running MS Windows) running MS Word and relevant graphic utility accessing Word documents and graphic files respectively on the Network Server (running Netware network operating system). For reference “Novell Client for Windows” will be...

Whether the speed of broadband divide in client server connection [ 3 Answers ]

I will be very pleased if anybody could tell me that when we connect two computers by LAN than whether the speed of the broadband will divide or not. I mean for example if it is 128kbps. After connection will it remain same in both the computers or will it divide to 64kbps.:confused:


View more questions Search