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