On Fri, 2001-07-27 at 05:27, Danie Roux wrote:
> If I was to change
>
> sp = getservbyname ("ftp", "tcp");
>
> to
>
> sp = getservbyport (21, "tcp");
>
> It should work right? Because it isn't. And I need this to work for a boot
> stiffy I'm building.
Does quoting the 21 help at all?
--mike
Danie Roux <[EMAIL PROTECTED]> wrote:
>If I was to change
>
>sp = getservbyname ("ftp", "tcp");
>
>to
>
>sp = getservbyport (21, "tcp");
>
>It should work right? Because it isn't. And I need this to work for a boot
>stiffy I'm building.
The port number is given in network byte order. My guess is
If I was to change
sp = getservbyname ("ftp", "tcp");
to
sp = getservbyport (21, "tcp");
It should work right? Because it isn't. And I need this to work for a boot
stiffy I'm building.
--
Danie Roux *shuffle* Adore Unix
3 matches
Mail list logo