I would like to start a connection directly from the hostname:
if ( create_connection(target_conn, _targetport, _targethost) != 0 )
where _targethost is like 'www.google.com'.
For some kind of reason it cannot convert this to an S_addr or something over here... I had to do 'hostname_to_ip()' before it would be accepted...
It would be nice to have this automatically convert :)
Log in to post a comment.