Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 19-03-2008, 01:26 AM   #1 (permalink)
Apprentice
 
Join Date: Aug 2006
Posts: 62
Default socket: can't find where is sockaddr


http://pastebin.com/m42b627b9
here when I compile it gcc gives the error "cannot convert to a pointer type" for line 24. I tried to find where struct sockaddr is defined but can't find. man pages say no thing about it.

Please help.
ravi.xolve is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 19-03-2008, 01:59 AM   #2 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: socket: can't find where is sockaddr

Try sys/socket.h file. It should have your struct socketaddr defined, line 218 as per the libraries I have got.
It looks something like
Code:
struct sockaddr {
	unsigned char	sa_len;		/* total length */
	sa_family_t	sa_family;	/* address family */
	char		sa_data[14];	/* actually longer; address value */
};
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 19-03-2008, 02:34 AM   #3 (permalink)
Apprentice
 
Join Date: Aug 2006
Posts: 62
Default Re: socket: can't find where is sockaddr

If You see my source here http://pastebin.com/m42b627b9 I have already included it
ravi.xolve is offline  
Old 19-03-2008, 03:09 AM   #4 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: socket: can't find where is sockaddr

Try http://pastebin.com/m752c6b86
You forgot & before servaddr.
__________________
http://www.bash.org/?258908
mehulved is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
AMD 940 socket MysticHalo Hardware Q&A 9 07-03-2006 02:18 PM
What socket.. Kniwor QnA (read only) 2 03-10-2005 11:48 AM
any idea regarding the 940 socket ASH18MARCH QnA (read only) 3 23-07-2005 03:35 PM

 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:55 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2