will be [32] enought for an IP address?
just wondering will
user_ip[32] work fine or not |
Re: will be [32] enought for an IP address?
With port: 22
Without port: 16 Anything more than that is wasted space |
Re: will be [32] enought for an IP address?
thx ^^ i thought so
|
Re: will be [32] enought for an IP address?
Quote:
xxx.xxx.xxx.xxx + 1 |
Re: will be [32] enought for an IP address?
Code:
// 123456789012345 |
Re: will be [32] enought for an IP address?
Code:
111.111.111.111:65535EDIT: At least everytime I do it I come up with 14 chars... EDIT2: What do you know, they didn't line up. Original post changed as the w/port one is wrong as well. |
Re: will be [32] enought for an IP address?
111.111.111.111 ; 111 = 3 chars ; . = 1 char ; 4*3 + 3 = 15 chars
So it should be Ip[16]; |
Re: will be [32] enought for an IP address?
I could always say that I was saying the value of charsmax for them. But, that wasn't what I intended to say, so I miscounted :P
|
Re: will be [32] enought for an IP address?
Assuming AMXX can handle IPV6, 16 won't be enough.
|
Re: will be [32] enought for an IP address?
In this case : "xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx" , it would be : 8*4 + 7 = 39 chars
So, Ip[40], if I'm right. |
| All times are GMT -4. The time now is 16:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.