shit... i dunno how to explain sockets from ground up... ummm...
a socket is a two way communicator between two seperate processes on a computer... or on seperate computers....
you open up an internet socket and specify the ip address and port...
you are left with a varible representing the socket...
you can use the socket functions to write data to it and read data from it... text or otherwise
anything you write to it gets sent to the other computer... anything read from it has come from that other computer...
everytime your browser grabs a webpage it's creating a socket from your browser to the webserver of choice sendin your page request, and reading the html back from the socket if and when the server replies...
the specifics are a lot more complicated... so unless you want to learn a lot of arbitrary specifics of socket programming, id try for some other method...
even if you know how to make them talk... you still need to know exactly the bits the osX server is waiting to hear which ask it to validate a user... and execatly the bits it will use to reply... i doubt it uses ascii text, but it might...