Class ProxyCheckServiceImpl
java.lang.Object
com.soulfiremc.grpc.generated.ProxyCheckServiceGrpc.ProxyCheckServiceImplBase
com.soulfiremc.server.grpc.ProxyCheckServiceImpl
- All Implemented Interfaces:
ProxyCheckServiceGrpc.AsyncService, io.grpc.BindableService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheck(ProxyCheckRequest request, io.grpc.stub.StreamObserver<ProxyCheckResponse> casted) Checks the validity of one or more proxies by attempting to connect through them to a Minecraft server.Methods inherited from class ProxyCheckServiceGrpc.ProxyCheckServiceImplBase
bindService
-
Constructor Details
-
ProxyCheckServiceImpl
-
-
Method Details
-
check
public void check(ProxyCheckRequest request, io.grpc.stub.StreamObserver<ProxyCheckResponse> casted) Description copied from interface:ProxyCheckServiceGrpc.AsyncServiceChecks the validity of one or more proxies by attempting to connect through them to a Minecraft server. The check process: 1. For each proxy in the request, a connection attempt is made through the proxy to the Minecraft server configured in the instance settings 2. The connection uses the protocol version configured in the instance 3. A proxy is considered valid if it successfully connects and receives a server status response within 30 seconds 4. Results are streamed back as each check completes 5. A ProxyCheckEnd message is sent when all checks are complete Concurrency is controlled by the instance's PROXY_CHECK_CONCURRENCY setting. Required permission: CHECK_PROXY on the specified instance. Error cases: - NOT_FOUND: The specified instance_id does not exist - PERMISSION_DENIED: The user lacks CHECK_PROXY permission on the instance - INTERNAL: An unexpected error occurred during proxy checking The stream can be cancelled by the client at any time, which will terminate any in-progress proxy checks.
-