public interface ClientProfile
HubConnection
objects.
The usual way for a prospective SAMP client to obtain an instance of
this class is by using DefaultClientProfile.getProfile()
.
This interface is so-named partly for historical reasons; "HubConnectionFactory" might have been more appropriate.
Modifier and Type | Method and Description |
---|---|
boolean |
isHubRunning()
Indicates whether a hub contactable by this profile appears to be
running.
|
HubConnection |
register()
Attempts to register with a SAMP hub and return a corresponding
connection object.
|
HubConnection register() throws SampException
SampException
- in case of some unexpected errorboolean isHubRunning()
Copyright © 2008–2024. All rights reserved.