Click here to Skip to main content
11,645,499 members (75,282 online)
Click here to Skip to main content
Add your own
alternative version

Protocol implementation

, 31 Jan 2005 26.2K 151 24
Add some protocol support to your server.
using System;
using System.Net.Sockets;
namespace Infinity.Networking
{
	public delegate void NetworkMessageHandler(object sender,string CompleteMessage);

	public enum SocketErrorCodes
	{
		InterruptedFunctionCall         = 10004,
		PermissionDenied                = 10013,
		BadAddress                      = 10014,
		InvalidArgument                 = 10022,
		TooManyOpenFiles                = 10024,
		ResourceTemporarilyUnavailable  = 10035,
		OperationNowInProgress          = 10036,
		OperationAlreadyInProgress      = 10037,
		SocketOperationOnNonSocket      = 10038,
		DestinationAddressRequired      = 10039,
		MessgeTooLong                   = 10040,
		WrongProtocolType               = 10041,
		BadProtocolOption               = 10042,
		ProtocolNotSupported            = 10043,
		SocketTypeNotSupported          = 10044,
		OperationNotSupported           = 10045,
		ProtocolFamilyNotSupported      = 10046,
		AddressFamilyNotSupported       = 10047,
		AddressInUse                    = 10048,
		AddressNotAvailable             = 10049,
		NetworkIsDown                   = 10050,
		NetworkIsUnreachable            = 10051,
		NetworkReset                    = 10052,
		ConnectionAborted               = 10053,
		ConnectionResetByPeer           = 10054,
		NoBufferSpaceAvailable          = 10055,
		AlreadyConnected                = 10056,
		NotConnected                    = 10057,
		CannotSendAfterShutdown         = 10058,
		ConnectionTimedOut              = 10060,
		ConnectionRefused               = 10061,
		HostIsDown                      = 10064,
		HostUnreachable                 = 10065,
		TooManyProcesses                = 10067,
		NetworkSubsystemIsUnavailable   = 10091,
		UnsupportedVersion              = 10092,
		NotInitialized                  = 10093,
		ShutdownInProgress              = 10101,
		ClassTypeNotFound               = 10109,
		HostNotFound                    = 11001,
		HostNotFoundTryAgain            = 11002,
		NonRecoverableError             = 11003,
		NoDataOfRequestedType           = 11004
	}


}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

engine252
Belgium Belgium
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150731.1 | Last Updated 31 Jan 2005
Article Copyright 2005 by engine252
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid