[Vala] 'GUnixSocketAddress' undeclared



I'm having trouble creating a "UnixSocketAddress". Of all the stupid problems 
I've figured out, this one is annoying because it seems so obvious (include the 
required package). Anyone able to tell me what I'm missing here?

The following code:

  SocketAddress address = null;
  Socket socket = null;
  address = new GLib.UnixSocketAddress(path); //the line that is erroring
  socket = new Socket(SocketFamily.UNIX, SocketType.STREAM, 
SocketProtocol.DEFAULT);
  socket.bind(address,true);

Compile Command:

valac -d './bin/Debug' -g  --pkg "gio-unix-2.0" --pkg "glib-2.0"  --pkg 
"gio-2.0"  "./src/server.vala" -o "test.fcgi"


Returned Error:

erver.vala:287: error: ‘GUnixSocketAddress’ undeclared (first use in this 
function)





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