Hi...
I added my target board host name and ip address into windows hosts file. and as expected it started working...thanks to you
But as you know this function gethostbyname is depreciated so i used the getaddrinfo funtion.
I have given the arguments of getaddrinfo function are
getaddrinfo ( "hostname", portnumber, &hints, &result)
say my host name is aaauc
i am using the port number 5001
hints structure i am filling before calling getaddrinfo function and result will come in result variable
I want to send/recv some raw data between client and server but with above arguments my getaddr function is failing So i checked the error code and error cod is Specified class is not found that mean my 2nd argument is wrong...
So i am confuse what variable i have to give in 2nd parametre
since 2nd argument is service so i checked service fiile also but there are a lot of entries are there...So do i need to use the existing service...i tried by using the existing "ftp" / "ftp-data" service in 2nd argument but then my server does't connect to client and sendind data from client to server is failing...
So please advice my what to do....??
Thanks and best Regards
Sandeep gulati