full picoTCP stack integration. hasn't been stress-tested yet

This commit is contained in:
Joseph Henry
2016-10-18 16:38:09 -07:00
parent 4e386ac482
commit 844e8a0826
7 changed files with 234 additions and 90 deletions

View File

@@ -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");