hey guys, i'm just wondering why i'm getting this error, i've got plenty of these compiler errors before, but i've been able to spot the error and fix it easily, but i've been looking at the same line of code for around 30 minutes now and i can't seem to figure it out. here is the part of code where it is happening.
the red highlighted line is where i'm getting the error.
Socket = socket(2,1,0);
SockAddr.sin_port = htons(1234);
SockAddr.sin_family = 2;
SockAddr.sin_addr.s_addr = inet_addr(ipaddr);
connect(Socket, (struct SOCKADDR *) &SockAddr, sizeof(SockAddr);
thanks in advance.