C language programming: inet_aton() converts an Internet host address from the IPv4 numbers-and-dots notation into binary form (in network byte order). The dotted address can be specified in decimal, octal (with a leading 0), or hexadecimal, with a leading 0X).
Questions tagged [inet-aton]
20 questions
0
votes
1 answer
Printing the return value from inet_aton() function
I have this code which is working fine:
#include
#include
#include
int main(int argc, char *argv[])
{
struct in_addr addr;
if (argc != 2) {
fprintf(stderr, "%s \n", argv[0]);
…

sheldon cooper
- 455
- 2
- 8
- 22
0
votes
1 answer
INET_ATON with Apache Derby?
I use a MySQL DB with jdbc and have select statement that looks like:
'SELECT id, name, INET_ATON(user_ip) AS user_ip_long FROM my_table;'
witch works perfectly, but for testing purpose I would like to use a derby DB aswell.
Since derby doesn't…

MrLang
- 629
- 1
- 6
- 15
0
votes
1 answer
PHP MySQL: INET_ATON does not save data?
I am trying to store ip addresses into my database and I am using INET_ATON as below,
$sql = "
INSERT INTO pin (
page_id,
user_id,
pc_name,
ip,
geolocation,
created_on
)VALUES(
?,
?,
?,
?,
?,
…

Run
- 54,938
- 169
- 450
- 748
0
votes
1 answer
Python socket chat problems
I've found a code for a chat app in Python, but I can't find anything about the author or anyone on the site to help me with it..
this is a link to the whole code:
http://files.myopera.com/manojsheokand666/blog/chat.py
I'm getting a feeling…

Mite Stojanov
- 69
- 2
- 11
-1
votes
2 answers
MYSQL INET_ATON. Did I find a bug or is this known?
Is this a known problem?
select * from 'tablename' where INET_ATON('any valid ip');
Shows the entire db. I accidentally forget to add ipaddress = INET_ATON('ip'); and cganged the entire db.

user2561395
- 11
- 1