




7 Naming Conventions and Hooks
This page has not been completed yet.
7.1 Naming Conventions
This is a list of methods that have special functionality. Let say Foo
is a method name.
- Foo_Local()
- Local method. A local method cannot be called remotely. The HORBC compiler
does not generate a proxy method for a local method.
- Foo_Async()
- Asynchronous method. If a remote object has Foo_Async(), the corresponding
proxy object has Foo_Request() and Foo_Receive() methods in addition to
Foo_Async(). See asynchronous method for more detail.
- _finalize()
- If a remote object has finalize() method, you can call it via _finalize()
method of the corresponding proxy object.
This is a list of variables that have special functionality.
- transient int var1;
- When an object is transfered, transient variables are not transfered.
The notation "var1_Transient" is obsolete.
7.2 Hooks
This is a list of hook methods.
- _threadEndHook()
- If a remote object (serer object) has _threadEndHook() method, it is
called when a client leaves.
- _freezeHook(int where)
- Before an object is transfered, _freezeHook() is called if it exists.
Integer parameter where is either IOCI.LOC_NETWORK or IOCI.LOC_FILE. It
represents where the object goes to.
- _reviveHook(int where)
- After an object is transfered, _reviveHook() is called if it exists.
Integer prameter where is either IOCI.LOC_NETWORK or IOCI.LOC_FILE. It
represents where the object comes from.