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

An exception indicating that binding a socket failed. More...

#import <OFBindFailedException.h>

Inheritance diagram for OFBindFailedException:
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 binding a socket failed.


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 be bound
hostThe host on which binding failed
portThe port on which binding failed
Returns:
A new bind failed exception
- (OFString*) host
Returns:
The host on which binding failed
- (id) initWithClass: (Class)  class_
socket: (OFTCPSocket*)  socket
host: (OFString*)  host
port: (uint16_t)  port 

Initializes an already allocated bind failed exception.

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

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