🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #230868

Re: socket_bind(): unable to bind address: Cannot assign requested address

#230868
From: Borys Pogoreło
Date: Tue, 13 Jan 2015 20:46
17 lines
1393 bytes
Dnia Mon, 12 Jan 2015 09:20:23 -0800 (PST), jivanmukta@poczta.onet.pl
napisał(a):

> Uczę się PHP5. Napisałem funkcję sprawdzającą czy działa serwer poczty. Z
> niezrozumiałych dla mnie przyczyn mam błąd:

Robiąc takie rzeczy wypadałoby ogarnąć zasady działania socketów. Jeśli
doczytasz czym się róznią poniższe funkcje:

>     if (!socket_bind($socket, $server)) {
>     if (!socket_connect($socket, $server, $port)) {

... to wszystko będzie jasne.

-- 
Borys Pogoreło
borys(#)leszno,edu,pl
Technical Details
Message-ID: <1sgx2tp7klc5t$.1c1jo4vqfh6nh.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.promontel.net.pl!not-for-mail
References: <f04f826c-121d-4e39-99f8-1b8c6a040a6b@googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.promontel.net.pl!not-for-mail
From: Borys Pogoreło <borys@pl.edu.leszno>
Newsgroups: pl.comp.lang.php
Subject: Re: socket_bind(): unable to bind address:  Cannot assign requested address
Date: Tue, 13 Jan 2015 21:46:23 +0100
Organization: snafu
Lines: 17
Message-ID: <1sgx2tp7klc5t$.1c1jo4vqfh6nh.dlg@40tude.net>
References: <f04f826c-121d-4e39-99f8-1b8c6a040a6b@googlegroups.com>
NNTP-Posting-Host: aejv82.neoplus.adsl.tpnet.pl
Mime-Version: 1.0
X-Trace: thunar.promontel.net.pl 1421181964 11112 79.186.255.82 (13 Jan 2015 20:46:04 GMT)
X-Complaints-To: abuse@promontel.net.pl
NNTP-Posting-Date: Tue, 13 Jan 2015 20:46:04 +0000 (UTC)
User-Agent: 40tude_Dialog/2.0.14.1pl
X-fnord: obey.
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit