mirror of
https://github.com/transmission/transmission.git
synced 2025-12-26 21:29:18 +00:00
use the Transmission website for checking port status; stop previous port check before starting a new one
This commit is contained in:
@@ -24,18 +24,26 @@
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
typedef enum { PORT_STATUS_OPEN, PORT_STATUS_STEALTH, PORT_STATUS_CLOSED, PORT_STATUS_ERROR } port_status_t;
|
||||
typedef enum
|
||||
{
|
||||
PORT_STATUS_OPEN,
|
||||
PORT_STATUS_CLOSED,
|
||||
PORT_STATUS_ERROR
|
||||
} port_status_t;
|
||||
|
||||
@interface PortChecker : NSObject
|
||||
{
|
||||
id fDelegate;
|
||||
port_status_t fStatus;
|
||||
|
||||
|
||||
NSURLConnection * fConnection;
|
||||
NSMutableData * fPortProbeData;
|
||||
}
|
||||
|
||||
- (id) initWithDelegate: (id) delegate;
|
||||
- (void) probePort: (int) portNumber;
|
||||
- (void) endProbe;
|
||||
|
||||
- (void) callBackWithStatus: (port_status_t) status;
|
||||
- (port_status_t) status;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user