# include "pantasks.h"

int connect_to_server () {

  char hostname[256];

  ScanConfig (GlobalConfig, "PANTASKS_SERVER", "%s", 0, hostname);

  server = GetClientSocket (hostname);
  
  /* here we can perform the security handshaking */
  SendCommand (BindSocket, strlen(PASSWORD), PASSWORD);
  
  return (server);

}
