*/
public function __construct (array $messageData, $code) {
// Construct the message
- $message = sprintf("[%s:] Invalid socket (type %s != resource). errno=%s, errstr=%s",
+ $message = sprintf("[%s:] Invalid socket, type=%s, errno=%s, errstr=%s",
$messageData[0]->__toString(),
$messageData[1],
$messageData[2],
*/
public function __construct (array $messageData, $code) {
// Construct the message
- $message = sprintf("[%s:] Could not make a connection! (type %s != resource). errno=%s, errstr=%s",
+ $message = sprintf("[%s:] Could not make a connection, type=%s, errno=%s, errstr=%s",
$messageData[0]->__toString(),
$messageData[1],
$messageData[2],
*/
public function __construct (array $messageData, $code) {
// Construct the message
- $message = sprintf("[%s:] Cannot create socket (type %s != resource). errno=%s, errstr=%s",
+ $message = sprintf("[%s:] Cannot create socket, type=%s, errno=%s, errstr=%s",
$messageData[0]->__toString(),
$messageData[1],
$messageData[2],
*/
public function __construct (array $messageData, $code) {
// Construct the message
- $message = sprintf("[%s:] Changing option on socket failed! (type %s != resource). errno=%s, errstr=%s",
+ $message = sprintf("[%s:] Changing option on socket failed, type=%s, errno=%s, errstr=%s",
$messageData[0]->__toString(),
$messageData[1],
$messageData[2],
* @param $protocolInstance An instance of an ProtocolHandler
* @return void
*/
- public final function setProtocolInstance (ProtocolHandler $protocolInstance) {
+ public final function setProtocolInstance (ProtocolHandler $protocolInstance = NULL) {
$this->protocolInstance = $protocolInstance;
}
* @param $packageData Raw package data
* @return $containerInstance An instance of this Container class
*/
- public static final function createSocketContainer ($socketResource, ProtocolHandler $protocolInstance, array $packageData) {
+ public static final function createSocketContainer ($socketResource, ProtocolHandler $protocolInstance = NULL, array $packageData) {
// Get a new instance
$containerInstance = new SocketContainer();