Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 05-02-2009
Member
 
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?
Reply With Quote
  #2  
Old 05-02-2009
Member
 
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).
Reply With Quote
  #3  
Old 05-02-2009
Member
 
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
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 11:23 PM.