Re: Connecting to a socket with a GTK application



On Fri, Mar 07, 2003 at 11:07:03AM +0100, Maarten wrote:
But I get this error:
   Tipnose1.c: In function `client':
   Tipnose1.c:45: warning: passing arg 2 of `connect' from incompatible 
pointer type
[...]
   struct sockaddr_in sniff;
[...]
   c = connect(sock, &sniff, sizeof(sniff) );

This problem is unrelated to GTK.  The second parameter to connect()
must be a sockaddr*, not a sockaddr_in*.  Google for "sockets tutorial"
(or something like that) for more information.

-- 
      Evan Martin
martine cs washington edu
  http://neugierig.org



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]