full picoTCP stack integration. hasn't been stress-tested yet
This commit is contained in:
@@ -55,9 +55,11 @@ int main(int argc, char *argv[]) {
|
||||
if (n < 0)
|
||||
error("ERROR writing to socket");
|
||||
|
||||
printf("sent %d bytes\n", n);
|
||||
memset(buffer, 0, 256);
|
||||
|
||||
//Sockets Layer Call: recv()
|
||||
printf("reading...\n");
|
||||
n = recv(sockfd, buffer, 255, 0);
|
||||
if (n < 0)
|
||||
error("ERROR reading from socket");
|
||||
|
||||
Reference in New Issue
Block a user