For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > September 2004 > Re: How can I run server and client applications in two different









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: How can I run server and client applications in two different
Lew Pitcher

2004-09-27, 4:01 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

learning_C++ wrote:
> Hi,
> I found some example code about server and client applications. But I
> can not run server and client in different computers. Now, I only
> run them in the different windows in Linux. I hope to I can log on a
> computer that run server application from a different computer. How
> can I modify those codes?

[code snipped]

Your code, compiled verbatum on two of my systems, works just fine for me. I ran
your server code on my server station, and your client code on my laptop.

FWIW, client code should be invoked with the name or IP address of the server.

- --
Lew Pitcher
IT Consultant, Enterprise Data Systems,
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed are my own, not my employers')
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFBWGaPagVFX4UWr64RAmrfAKCtCzCQzWoU
uQnvNrVMjO6thlm4CACg7YQI
seP7Svyj/7+oGB8QQmiLTFA=
=iVyr
-----END PGP SIGNATURE-----
Lew Pitcher

2004-09-28, 9:04 am

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

learning_C++ wrote:
>
> Hi, Lew:
> Thanks for your reply.


You're welcome

> Can you give me an example to modify it?


Modify it how? FWIW, I didn't modify the programs at all and managed to
get them to run and communicate between different systems. As far as I
can tell, they don't require modification.

Perhaps, instead of modifying the programs, you can show us what you do
and why you think it's failing when you run the programs across a network.

- --

Lew Pitcher, IT Consultant, Enterprise Data Systems
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed here are my own, not my employer's)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFBWVb0agVFX4UWr64RAvbUAJ4qAjSg3wib
QMFgLUo/iq4xpG9yUACg4NJz
pKQA6C3qh13np3I3fwnRB8w=
=tGuC
-----END PGP SIGNATURE-----
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com