* Creates a host name with SSL transport protocol * if no transport protocol already specified in * the host name. * * @param string $host Host to listen on * @return string $host Host name with transport protocol */
($host)
| 74 | * @return string $host Host name with transport protocol |
| 75 | */ |
| 76 | private function getSSLHost($host) |
| 77 | { |
| 78 | $transport_protocol_loc = strpos($host, "://"); |
| 79 | if ($transport_protocol_loc === false) { |
| 80 | $host = 'ssl://' . $host; |
| 81 | } |
| 82 | return $host; |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * Connects the socket. |
no outgoing calls