E
Ethan
the problem is to hide transport layer (tcp, raw ip, tibco, etc ) from
applications
I am thinking of to have a transceiver interface (abstract class),
which shall define some operations and callbacks.
The interface shall be sufficient for common communication task over
networks. different implementations, e.g. TcpTransceiver will be
derived from this interface.
user apps will only need to know this interface, completely separate
itself from the underlying technology.
I have little experience on this, I am looking for inputs on how the
interface should look like
I can think of some virtual functions, such as
sendMsg,
initConnection,
connectTo,
callbacks that users have to implement, such as onAccept, onConnect,
onReceive etc.
anything else?
also, it's nice to be able to support unicast and multicast
transparently too.
any idea? thanks!!
applications
I am thinking of to have a transceiver interface (abstract class),
which shall define some operations and callbacks.
The interface shall be sufficient for common communication task over
networks. different implementations, e.g. TcpTransceiver will be
derived from this interface.
user apps will only need to know this interface, completely separate
itself from the underlying technology.
I have little experience on this, I am looking for inputs on how the
interface should look like
I can think of some virtual functions, such as
sendMsg,
initConnection,
connectTo,
callbacks that users have to implement, such as onAccept, onConnect,
onReceive etc.
anything else?
also, it's nice to be able to support unicast and multicast
transparently too.
any idea? thanks!!