TServer and TClient extend what?

BlitzMax Forums/BlitzMax Programming/TServer and TClient extend what?

JoshK(Posted 2010) [#1]
What should I call the root type for both the TServer and TClient types?

TNetworkNode?
TNode?
TTerminal?
THost?

What seems like a proper name?


_Skully(Posted 2010) [#2]
TNetwork


Ked(Posted 2010) [#3]
I like TNetworkObject. :)

I'm not all that into the word "node".


JoshK(Posted 2010) [#4]
I like Terminal, but I'm not sure that is accurate.


_Skully(Posted 2010) [#5]
No a terminal is more like a client... since you connect a terminal to a host.

The reason I suggested TNetwork, is that a Host/server and a Client are part of a network solution... just seemed logical.


JoshK(Posted 2010) [#6]
A network is made of multiple objects. A single object in a network is not a network.


plash(Posted 2010) [#7]
TSocket (socket) is the correct system term.


Galaxy613(Posted 2010) [#8]
TNetworkArchetype? Because it's the definination of all the network objects.


Czar Flavius(Posted 2010) [#9]
It's obvious: TComputer ;)


JoshK(Posted 2010) [#10]
The socket type is already taken by BRL.


Kev(Posted 2010) [#11]
TGateway either have to pass through.


_Skully(Posted 2010) [#12]
A network is made of multiple objects. A single object in a network is not a network.


Thats right... you need a client and a server


dmaz(Posted 2010) [#13]
I'm also building a multiplayer network library... I went with TNetwork since all it does is open UDP sockets on the currently functioning physical network. so the "network" is made up of whoever I can send to or receive from. destination addresses are associated with the messages not the TNetwork class... messages are then sent on a particular network. It's not great but I've not yet found anything I like better.


ImaginaryHuman(Posted 2010) [#14]
TNetNode?
TSubNet?
TNode?
TConnection?


Blueapples(Posted 2010) [#15]
In my 3D Mud client I implemented them with these names:
Type TMudClient Extends TMudNode
...
EndType

Type TMudServer Extends TMudNode
...
EndType


The only shared code in TMudNode was pretty much a dispatch method:
Type TMudNode
  Method HandleMessage(node:TRemoteNode, msg:TGNetObject)
  ...
  EndMethod

EndType



Dreamora(Posted 2010) [#16]
I'm for TConnection
given they don't form any kind of node realistically (they just handle messaging etc), I see no reason to name them as if they were


Zakk(Posted 2010) [#17]
TEitherAClientOrAServer


beanage(Posted 2010) [#18]
TNetworkEntity Abstract


Czar Flavius(Posted 2010) [#19]
TStopWorryingStartProgramming ;)


Scaremonger(Posted 2010) [#20]
TLeadwerkNet :)