Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than ws2_32, prefix the name with the module name and a period.
public enum PROTOCOL : short
{//dummy for IP
IPPROTO_IP = 0,
//control message protocol
IPPROTO_ICMP = 1,
//internet group management protocol
IPPROTO_IGMP = 2,
//gateway^2 (deprecated)
IPPROTO_GGP = 3,
//tcp
IPPROTO_TCP = 6,
//pup
IPPROTO_PUP = 12,
//user datagram protocol
IPPROTO_UDP = 17,
//xns idp
IPPROTO_IDP = 22,
//IPv6
IPPROTO_IPV6 = 41,
//UNOFFICIAL net disk proto
IPPROTO_ND = 77,
IPPROTO_ICLFXBM = 78,
//raw IP packet
IPPROTO_RAW = 255,
IPPROTO_MAX = 256
}
public enum OPTION_FLAGS_PER_SOCKET : short
{
// turn on debugging info recording
SO_DEBUG = 0x0001,
// socket has had listen()
SO_ACCEPTCONN = 0x0002,
// allow local address reuse
SO_REUSEADDR = 0x0004,
// keep connections alive
SO_KEEPALIVE = 0x0008,
// just use interface addresses
SO_DONTROUTE = 0x0010,
// permit sending of broadcast msgs
SO_BROADCAST = 0x0020,
// bypass hardware when possible
SO_USELOOPBACK = 0x0040,
// linger on close if data present
SO_LINGER = 0x0080,
// leave received OOB data in line
SO_OOBINLINE = 0x0100,
SO_DONTLINGER = (int)(~SO_LINGER),
// disallow local address reuse
SO_EXCLUSIVEADDRUSE = ((int)(~SO_REUSEADDR)),
///*
// * Additional options.
// */
// send buffer size
SO_SNDBUF = 0x1001,
// receive buffer size
SO_RCVBUF = 0x1002,
// send low-water mark
SO_SNDLOWAT = 0x1003,
// receive low-water mark
SO_RCVLOWAT = 0x1004,
// send timeout
SO_SNDTIMEO = 0x1005,
// receive timeout
SO_RCVTIMEO = 0x1006,
// get error status and clear
SO_ERROR = 0x1007,
// get socket type
SO_TYPE = 0x1008,
///*
// * WinSock 2 extension -- new options
// */
// ID of a socket group
SO_GROUP_ID = 0x2001,
// the relative priority within a group
SO_GROUP_PRIORITY = 0x2002,
// maximum message size
SO_MAX_MSG_SIZE = 0x2003,
// WSAPROTOCOL_INFOA structure
SO_PROTOCOL_INFOA = 0x2004,
// WSAPROTOCOL_INFOW structure
SO_PROTOCOL_INFOW = 0x2005,
// configuration info for service provider
PVD_CONFIG = 0x3001,
// enable true conditional accept: connection is not ack-ed to the other side until conditional function returns CF_ACCEPT
SO_CONDITIONAL_ACCEPT = 0x3002
}
Alternative Managed API:
Do you know one? Please contribute it!
Notes:
None.
Tips & Tricks:
Please add some!
Sample Code:
Please add some!
The WSASocket function creates a socket that is bound to a specific transport-service provider.
11/12/2009 9:03:55 PM - -128.226.120.121
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).