ok i build the client and i get the following errors
C:\Documents and Settings\chris285\Desktop\tutorials\Sending and Receiving\Client\main.cpp(17) : error C2660: 'connecttoserver' : function does not take 0 parameters
C:\Documents and Settings\chris285\Desktop\tutorials\Sending and Receiving\Client\main.cpp(21) : error C2660: 'disconnectfromserver' : function does not take 0 parameters
Error executing cl.exe.
on these lines of code in the main.cpp file
how would this be done?Code:#include "connecting.h"
#include <iostream>
#include "mesagesend.h"
#include <winsock2.h>
#include <stdio.h>
using namespace std;
int main()
{
connecting client;
mesagesend chat;
client.connecttoserver();
chat.sendmessage();
client.disconnectfromserver();
return 0;
}
would it be stated in the function? e.g. port == kinda thing?
trouble is the ip address of the pc is going to be differnt on each pc as it will be used on my uni network, so really i need a way for the program to find the computers ip address and what not