A quick socket question

captainblak2000_at_yahoo.com
Date: 09/27/03


Date: Sat, 27 Sep 2003 11:30:37 -0400

I am new to socket programming and have this declaration here.

#include <sys/socket.h>
#include <sys/types.h>
#include <string.h>

#define DEST_IP "192.168.0.3"
#define DEST_PORT 23

int main (void)
{
struct sockaddr_in dest_addr;
...
}

when i compile with gcc i get
socktest.c: In function `main':
socktest.c:10: storage size of `dest_addr' isn't known

what is the problem and how do i solve it?



Relevant Pages