Results 1 to 3 of 3

Thread: create socket on view

  1. #1
    Join Date
    Feb 2009
    Posts
    90

    create socket on view

    I would ask some advice on how to create socket on vista using visual studio, I have already created some client & socket but on linux with gcc and running, but if I try to compile it on platform with microsoft visual studio I will not be completed because some libraries are not recognized.

    Can you guide me?

  2. #2
    Join Date
    Oct 2008
    Posts
    167

    Re: create socket on view

    include winsock2.he linka ws2_32.lib. Windows in general is highly compatible with the Berkeley sockets (not quite know, but in 95% of cases you'll never to do with the differences).

  3. #3
    Join Date
    Mar 2008
    Posts
    258

    Re: create socket on view

    The socket function creates a socket that is bound to a specific transport service provider.

    Syntax

    Code:
     WSAAPI SOCKET socket ( 
        __in int af, 
        __in int type, 
        __in int protocol 
     );
    The address family specification. Possible values for the address family are defined in the header file Winsock2.h.

    On the Windows SDK released for Windows Vista and later, the organization of header files has changed and the possible values for the address family are defined in the header file Ws2def.h. Ws2def.h Note that the header file is automatically included in Winsock2.h, and should never be used directly.

    The values currently supported are AF_INET or AF_INET6, which are the Internet address family formats for IPv4 and IPv6. Other options for address family (AF_NETBIOS for use with NetBIOS, for example) are supported if a Windows Sockets service provider for the address family is installed. Note that the values for the AF_ address PF_ family and protocol family constants are identical (for example, AF_INET and PF_INET), so either constant can be used.

    for table values you can have a look at it:
    http://209.85.143.101/translate_c?hl...uYBOiou1uFf60g

Similar Threads

  1. Not able to View, Modify, or Create Charts in Excel 2007
    By Script in forum Windows Software
    Replies: 5
    Last Post: 16-05-2011, 10:21 AM
  2. Emule Fatal Error: Unable to create socket on Port 4662
    By Triple-X in forum Technology & Internet
    Replies: 5
    Last Post: 27-01-2010, 10:10 PM
  3. How to create a link to view an image
    By Mindstorm in forum Software Development
    Replies: 5
    Last Post: 05-01-2010, 09:14 AM
  4. How to create a query on datagrid view in vb.net
    By Ainsley in forum Software Development
    Replies: 3
    Last Post: 10-12-2009, 09:59 PM
  5. Create own class of view in C++
    By tombman in forum Software Development
    Replies: 3
    Last Post: 01-05-2009, 02:29 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,575,099.41973 seconds with 16 queries