45 |
|
* Allows a CORBA client to connect to the server. |
46 |
|
* |
47 |
|
* @param client a reference to the "servant" part of the connecting client. |
48 |
+ |
* @param name a name to identify the client. |
49 |
|
* @return a CorbaControlHandler reference. |
50 |
|
*/ |
51 |
< |
public CorbaControlHandler connect(Client client) { |
52 |
< |
CorbaControlHandlerServant cchServant = new CorbaControlHandlerServant(_packetSorter, client); |
51 |
> |
public CorbaControlHandler connect(Client client, String name) { |
52 |
> |
CorbaControlHandlerServant cchServant = new CorbaControlHandlerServant(_packetSorter, client, name); |
53 |
|
org.omg.CORBA.Object objRef; |
54 |
|
try { |
55 |
|
objRef = _refman.getRootPOA().servant_to_reference(cchServant); |