UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

  • Index
  • » C
  • » recv()'ing unkown data size

#26 2007-06-22 02:34 PM

biologz
Administrator
From: Puking on the pavement
Registered: 2005-11-02
Posts: 396

Re: recv()'ing unkown data size

Normal, now you pass a char * to the function sockopen and gethostbyname expects a char *...so remove the & before hostnaam just like this:

gethostbyname(hostnaam)

Are you familiar with pointers? or is it just that you're tired ;-)


gethostbyintuition() is still a dream of mine

                                                 -- quoted from bash

Offline

#27 2007-06-23 08:00 PM

niek
Member
Registered: 2006-12-24
Posts: 109

Re: recv()'ing unkown data size

I think both. Normally I would have found this a lot quicker.

Offline

  • Index
  • » C
  • » recv()'ing unkown data size

Board footer

Powered by FluxBB