473,379 Members | 1,170 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,379 software developers and data experts.

bi-directional Remoting or Sockets ?


Hello,

I want to make a client/server app, for a game. Where I can send object
to and from the server. With this I mean the client can send an object
to the server but the server can also send an object to the client (not
in a respond). So I need a sort of bi directional solution. I've
searched the net for some solutions. And remoting allows me to send
objects but I can't find wether it is bi-directional. Does any one know
a good solution for this problem. Or do I have to implement the client
also as a server.
Aug 4 '07 #1
2 2923

"Rogier" <Ro********@gmail.comschrieb im Newsbeitrag
news:cNXsi.3263$Rv4.1117@amstwist00...
>
Hello,

I want to make a client/server app, for a game. Where I can send object to
and from the server. With this I mean the client can send an object to
the server but the server can also send an object to the client (not in a
respond). So I need a sort of bi directional solution. I've searched the
net for some solutions. And remoting allows me to send objects but I can't
find wether it is bi-directional. Does any one know a good solution for
this problem. Or do I have to implement the client also as a server.

Hi Rogier,

if you are working on a game then you really should
do your task with sockets, since sockets give you some
kind of connection-freedom and client/server independence.
You can build them on TCP/IP v4/6 and every System
on the other end, no matter what Operating System can
talk with your client and server. The only prerequisit would
be a TCP/IP enabled system and this is the default today.
If you use .NET Remoting, then you will be "bound" to
a .NET Remotable system and be sure that there will be
not everywhere a .NET System available. If you programm
on a game this "connection-indipendence" will even give you
the abillity to develop your clients/and server in any TCP/IP
socket handling enabled programming language: Java, C/C++
or whatever can use TCP/IP Sockets.

Consider the Situation when someone wnats to connect to
your system from a Macintosh or some sort of Unix/Linux.
Maybe there will be no .NET Framework on the other End
of the Connection.

I can and will heavilly recommend the socket solution,
though .NET Remoting is a very good thing!

Beste Grüsse / Best regards / Votre bien devoue

Kerem Gümrükcü
ke*****@pro-it-education.de
Pro-IT Education http://www.pro-it-education.de/
Professional IT-Training and Consulting
-----------------------
"This reply is provided as is, without warranty express or implied."

Aug 4 '07 #2
Rogier,

If Kerem's concerns are not important to your app (you will always be
using .NET on both sides, for example), then what you want to do is have
your service take an instance of an object that derives from
MarshalByRefObject. Then, the client will pass an instance of this derived
object to the server. The server can then hold a reference to the object,
and make calls on it anytime it wants.

When an object is passed across the app domain boundary through
remoting, and it derives from MarshalByRefObject, when calls are made to it
on the server side, the calls are marshaled back to the client, which is
what I believe you want.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Rogier" <Ro********@gmail.comwrote in message
news:cNXsi.3263$Rv4.1117@amstwist00...
>
Hello,

I want to make a client/server app, for a game. Where I can send object to
and from the server. With this I mean the client can send an object to
the server but the server can also send an object to the client (not in a
respond). So I need a sort of bi directional solution. I've searched the
net for some solutions. And remoting allows me to send objects but I can't
find wether it is bi-directional. Does any one know a good solution for
this problem. Or do I have to implement the client also as a server.
Aug 5 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: DD | last post by:
Hi Guys! Just would like to share with you my experiense in this matter. I was trying to evaluate how suitable Oracle OLAP for our applications. As probably you did, I have downloaded from OTN...
0
by: V?ronique | last post by:
hi everyone, if you are a BI tool user, speak spanish, then you might be interested in decideo, which is a community of BI tool users. the newsletter is on: ...
0
by: YellowFin Announcements | last post by:
Announcing Yellowfin Version 2.4 release. (www.yellowfin.com.au) Existing SQLserver users can take advantage of this upgrade as soon as convenient. V2.4 Exciting changes in the latest...
3
by: ShihChengYu | last post by:
Dear all: How to convert color image to bi-level image? I have confronted one problem when I build my OCR project. I used an software API function to enhance my project, but the API only...
1
by: jimdandy | last post by:
Hi all, Am looking for some guidance/advice in terms of best practices for deploying a MS BI project. We have a relatively large BI system that we need to deploy between DEV/QA/UAT/PROD and...
0
by: YellowFin | last post by:
Yellowfin International today announced that Yellowfin has joined IBM's Partner Program, and that the Yellowfin BI Suite are now validated on IBM's popular DB2 9 database. This partnership opens...
0
by: WI Projects | last post by:
Hi, A CMM Level 5 company is looking for Microsoft Business Intelligence (MS BI) professionals for its Hyderabad location. There is a an element of onsite travel & work to this position. ...
15
by: rinmanb70 | last post by:
I use a db for keeping up with my checkbook and I'm having trouble setting up a new functionality. I get paid every two weeks on Friday, and I need a report to figure my balance that includes only...
0
by: YellowFin Announcements | last post by:
Yellowfin, Powered by J2EE, Jasper, BIRT, Spring, jfreeChart Advanta releases ATLAS BI using Yellowfin Business Intelligence 3rd of August, 2007 - Advanta Software, specialist software...
0
by: zyro | last post by:
Hi, This is Michael Bowen. I've put together cubegeek.com as a new and hopefully exciting site for the BI professional to network, share get information. This is the industry's first portal...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.