Now I have another problem with WCF server/client.
I have a method:
bool spr_wiersz(int wiersz, int kolumna) //check_row(int row, int column)
{
for (int i = 0; i < 9; i++)
{
if (i != kolumna)
{
//if(grid(row,i)==grid[row,column]
if (tablica[wiersz, i] == tablica[wiersz, kolumna])
return false;
}
}
return true;
}
And I want send every one value to clients and they will check it and return true, or false to server.
ex.
client 1 compare for i=0
client 2 compare for i=1
client 3 compare for i=2
client 1 compare for i=3
client 2 compare for i=4
......
To send something to everyone clients I use :
subscribers.ForEach(delegate(ImessageCallback callback)
{
if (((ICommunicationObject)callback).State == CommunicationState.Opened)
{
}
});
I hevan’t any idea how conect this ;/
And another problem is, how send grid to client to compare value.
I solve the problem 🙂
it almost work properly.
It’s work good only for 1,3 or 9 clients. For other number of clients this doesn’t work yet.