Advertisement
ringneckparrot

sockaddr_in undocumented

Apr 9th, 2012
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.68 KB | None | 0 0
  1. /****************************************************************************
  2.     ringneckparrot (c)
  3.     License: http://creativecommons.org/licenses/by-nc-sa/3.0/
  4.    
  5.     Contact Me:
  6.     Email: ringneckparrot@hotmail.com
  7.     Facebook: http://www.facebook.com/ringneckparrot
  8.     Twitter ID: pp4rr0t
  9.     SecurityTube: http://www.securitytube.net/user/ringneckparrot
  10.  
  11. ****************************************************************************/
  12.  
  13. #include <stdio.h>
  14. #include <stdlib.h>
  15. #include <netinet/in.h>
  16. #include <strings.h>
  17.  
  18. main()
  19. {
  20.     struct sockaddr_in info;
  21.  
  22.     info.sin_family = AF_INET;
  23.     info.sin_port = htons(1234);  
  24.     info.sin_addr.s_addr = INADDR_ANY;
  25.     bzero(&info.sin_zero, 8);
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement