ObjFW
Public Member Functions | Static Public Member Functions
OFConnectionFailedException Class Reference

An exception indicating that a connection could not be established. More...

#import <OFConnectionFailedException.h>

Inheritance diagram for OFConnectionFailedException:
OFException OFObject <OFObject>

List of all members.

Public Member Functions

(id) - initWithClass:socket:host:port:
(OFTCPSocket *) - socket
(OFString *) - host
(uint16_t) - port
(int) - errNo

Static Public Member Functions

(id) + exceptionWithClass:socket:host:port:

Detailed Description

An exception indicating that a connection could not be established.


Member Function Documentation

- (int) errNo
Returns:
The errno from when the exception was created
+ (id) exceptionWithClass: (Class)  class_
socket: (OFTCPSocket*)  socket
host: (OFString*)  host
port: (uint16_t)  port 
Parameters:
class_The class of the object which caused the exception
socketThe socket which could not connect
hostThe host to which the connection failed
portThe port on the host to which the connection failed
Returns:
A new connection failed exception
- (OFString*) host
Returns:
The host to which the connection failed
- (id) initWithClass: (Class)  class_
socket: (OFTCPSocket*)  socket
host: (OFString*)  host
port: (uint16_t)  port 

Initializes an already allocated connection failed exception.

Parameters:
class_The class of the object which caused the exception
socketThe socket which could not connect
hostThe host to which the connection failed
portThe port on the host to which the connection failed
Returns:
An initialized connection failed exception
- (uint16_t) port
Returns:
The port on the host to which the connection failed
- (OFTCPSocket*) socket
Returns:
The socket which could not connect

The documentation for this class was generated from the following files:
 All Classes Functions Variables Properties