This commit is contained in:
Carl-Benedikt Krüger 2011-06-28 16:13:00 +02:00
parent b8cc7bf739
commit d93b99f97a

View file

@ -153,7 +153,7 @@ void* server_task(void* e)
int n;
/* First call to socket() function */
sockfd = socket(AF_INET, SOCK_STREAM, 0);
sockfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
if (sockfd < 0)
{
kprintf("ERROR opening socket");
@ -230,7 +230,7 @@ void* client_task(void* e)
pin.sin_port = htons(5001);
/* grab an Internet domain socket */
if ((sd = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
if ((sd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) {
kprintf("socketfail");
return;
}