return new IProxyCallback.Stub() {
@Override
public void getProxyPort(IBinder callback) throws RemoteException {
if (server != null) {
IProxyPortListener portListener = IProxyPortListener.Stub.asInterface(callback);
if (portListener != null) {
server.setCallback(portListener);
}
}
}
};