Solvline PB2xxxUG User Manual

Page 104

Advertising
background image

//Outputs received data on the screen.

void GetData(void)

{

int readval;

char readbuff[255];

// Reads data by the socket number 4001 of Porter.

readval = read(sock, readbuff, sizeof(readbuff));

if (readval < 1) return;

readbuff[readval] = 0;

printf("%s",readbuff);

}

104

Advertising