• BlackBerry Dynamics
  • Runtime library for iOS applications
  • 12.0.1.79
GDNETiOS.h File Reference
#import <Foundation/Foundation.h>
#import "GDURLLoadingSystem.h"
#import "GDNET.h"

Classes

protocol  <GDSocketDelegate>
 Delegate for handling GDSocket state transitions and received data. More...
 
class  GDDirectByteBuffer
 Buffer for accessing GDSocket and GDHttpRequest data. More...
 
class  GDSocket
 TCP socket, supporting SSL/TLS and communication across the firewall. More...
 
protocol  <GDHttpRequestDelegate>
 Delegate for handling GDHttpRequest state transitions (deprecated). More...
 
class  GDHttpRequest
 Standards-based HTTP request, also supporting HTTPS and communication across the firewall (deprecated). More...
 

Enumerations

enum  GDSocketErrorType {
  GDSocketErrorNone =0,
  GDSocketErrorNetworkUnvailable,
  GDSocketErrorServiceTimeOut
}
 Constants for GDSocket errors. More...
 
enum  GDHttpRequest_state_t {
  GDHttpRequest_UNSENT = 0,
  GDHttpRequest_OPENED = 1,
  GDHttpRequest_SENT = 2,
  GDHttpRequest_HEADERS_RECEIVED = 3,
  GDHttpRequest_LOADING = 4,
  GDHttpRequest_DONE = 5
}
 Constants for HTTP Request ready states (deprecated). More...
 

Enumeration Type Documentation

◆ GDSocketErrorType

This enumeration represents the type of a GDSocket error that is being notified. The error parameter of the GDSocketDelegate::onErr: callback always takes one of these values.

Enumerator
GDSocketErrorNone 

No error.

This value is a placeholder for when the socket operation succeeded. The error parameter never takes this value.

GDSocketErrorNetworkUnvailable 

Destination network not available.

This value indicates that the socket operation failed because the destination network couldn't be reached.

GDSocketErrorServiceTimeOut 

Socket operation timed out.

This value indicates that a socket operation timed out and didn't complete.

◆ GDHttpRequest_state_t

Deprecated:
This enumeration is deprecated and will be removed in a future release. It is associated with a deprecated class, GDHttpRequest.

This enumeration represents the possible states of an HTTP request.

See also
http://www.w3.org/TR/XMLHttpRequest/#states

Compare the value returned by getState to these constants to check the ready state of the GDHttpRequest object. (The XHR state names have been prefixed with GDHttpRequest_ and the standard values used.)

Enumerator
GDHttpRequest_UNSENT 

Prior to the request being opened (deprecated).

GDHttpRequest_OPENED 

The request is ready to have headers added, and be sent (deprecated).

GDHttpRequest_SENT 

The request has been sent (deprecated).

GDHttpRequest_HEADERS_RECEIVED 

The request has been sent, and response headers have been received (deprecated).

GDHttpRequest_LOADING 

Headers and some data have been received in response to the request (deprecated).

GDHttpRequest_DONE 

All data has been received, or a permanent error has been encountered (deprecated).