in reply to Socket between internal processes

The error occurs at 'bind'. What exactly am I supposed to replace the "./mysocket" with?

You don't mention what OS you're doing this on. If you're using Win32, AF_UNIX isn't supported. You'll need to use AF_INET-style sockets, which work just fine for communicating between Win32 processes.

If instead you're doing this on a *nix system, what does $@ say after bind fails? That might give you some guidance.