mentalis.org proxysocket documentation filepublic static (shared) methods socks5tostring converts a...

83
Mentalis.org ProxySocket Documentation

Upload: duongnhu

Post on 27-Jun-2019

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 2: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Theexceptionthatisthrownwhenaproxyerroroccurs.

Foralistofallmembersofthistype,seeProxyExceptionMembers.

System.ObjectExceptionProxyException

[VisualBasic]

PublicClassProxyException

InheritsException

ImplementsISerializable

[C#]

publicclassProxyException:Exception,ISerializable

RequirementsNamespace:Org.Mentalis.Network.ProxySocketNamespaceAssembly:Org.Mentalis.Network.ProxySocket.dll

SeeAlsoProxyExceptionMembers|Org.Mentalis.Network.ProxySocketNamespace

Copyright©2002,TheKPD-Team

ProxyExceptionClass

Page 3: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 4: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

PublicStatic(Shared)MethodsSocks5ToString ConvertsaSOCKS5error

numbertoahumanreadablestring.

PublicInstanceConstructorsProxyException Overloaded.Initializeanew

instanceoftheProxyExceptionclass.

PublicInstancePropertiesHelpLink(inheritedfromSystem.Exception)

SelectthemethodnametogototheMicrosoftdocumentation.

InnerException(inheritedfromSystem.Exception)

SelectthemethodnametogototheMicrosoftdocumentation.

Message(inheritedfromSystem.Exception)

SelectthemethodnametogototheMicrosoftdocumentation.

Source(inheritedfromSystem.Exception)

SelectthemethodnametogototheMicrosoftdocumentation.

StackTrace(inheritedfromSystem.Exception)

SelectthemethodnametogototheMicrosoftdocumentation.

TargetSite(inheritedfromSystem.Exception)

SelectthemethodnametogototheMicrosoftdocumentation.

PublicInstanceMethodsEquals(inheritedfromObject) Selectthemethodnametogoto

theMicrosoftdocumentation.

GetBaseException(inheritedfromException)

SelectthemethodnametogototheMicrosoftdocumentation.

GetHashCode(inheritedfrom Selectthemethodnametogoto

ProxyExceptionMembers

Page 5: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Object) theMicrosoftdocumentation.

GetObjectData(inheritedfromException)

SelectthemethodnametogototheMicrosoftdocumentation.

GetType(inheritedfromObject) SelectthemethodnametogototheMicrosoftdocumentation.

ToString(inheritedfromException)

SelectthemethodnametogototheMicrosoftdocumentation.

ProtectedInstancePropertiesHResult(inheritedfromSystem.Exception)

SelectthemethodnametogototheMicrosoftdocumentation.

ProtectedInstanceMethodsFinalize(inheritedfromObject) Selectthemethodnametogoto

theMicrosoftdocumentation.

MemberwiseClone(inheritedfromObject)

SelectthemethodnametogototheMicrosoftdocumentation.

SeeAlsoProxyExceptionClass|Org.Mentalis.Network.ProxySocketNamespace

Copyright©2002,TheKPD-Team

Page 6: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 7: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

InitializesanewinstanceoftheProxyExceptionclass.

OverloadListInitializesanewinstanceoftheProxyExceptionclass.

publicProxyException();

InitializesanewinstanceoftheProxyExceptionclass.

publicProxyException(string);

InitializesanewinstanceoftheProxyExceptionclass.

publicProxyException(int);

SeeAlsoProxyExceptionClass|ProxyExceptionMembers|Org.Mentalis.Network.ProxySocketNamespace

Copyright©2002,TheKPD-Team

ProxyException

Page 8: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 9: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

InitializesanewinstanceoftheProxyExceptionclass.

[VisualBasic]OverloadsPublicSubNew()

[C#]

publicProxyException();

SeeAlsoProxyExceptionClass|ProxyExceptionMembers|Org.Mentalis.Network.ProxySocketNamespace|ProxyExceptionConstructorOverloadList

Copyright©2002,TheKPD-Team

ProxyExceptionConstructor()

Page 10: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 11: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

InitializesanewinstanceoftheProxyExceptionclass.

[VisualBasic]OverloadsPublicSubNew(_

ByValmessageAsString_

)

[C#]

publicProxyException(

stringmessage

);

Parametersmessage

Themessagethatdescribestheerror.

SeeAlsoProxyExceptionClass|ProxyExceptionMembers|Org.Mentalis.Network.ProxySocketNamespace|ProxyExceptionConstructorOverloadList

Copyright©2002,TheKPD-Team

ProxyExceptionConstructor(String)

Page 12: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 13: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

InitializesanewinstanceoftheProxyExceptionclass.

[VisualBasic]OverloadsPublicSubNew(_

ByValsocks5ErrorAsInteger_

)

[C#]

publicProxyException(

intsocks5Error

);

Parameterssocks5Error

TheerrornumberreturnedbyaSOCKS5server.

SeeAlsoProxyExceptionClass|ProxyExceptionMembers|Org.Mentalis.Network.ProxySocketNamespace|ProxyExceptionConstructorOverloadList

Copyright©2002,TheKPD-Team

ProxyExceptionConstructor(Int32)

Page 14: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 15: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

ThemethodsoftheProxyExceptionclassarelistedbelow.ForacompletelistofProxyExceptionclassmembers,seetheProxyExceptionMemberstopic.

PublicStatic(Shared)MethodsSocks5ToString ConvertsaSOCKS5error

numbertoahumanreadablestring.

PublicInstanceMethodsEquals(inheritedfromObject) Selectthemethodnametogoto

theMicrosoftdocumentation.

GetBaseException(inheritedfromException)

SelectthemethodnametogototheMicrosoftdocumentation.

GetHashCode(inheritedfromObject)

SelectthemethodnametogototheMicrosoftdocumentation.

GetObjectData(inheritedfromException)

SelectthemethodnametogototheMicrosoftdocumentation.

GetType(inheritedfromObject) SelectthemethodnametogototheMicrosoftdocumentation.

ToString(inheritedfromException)

SelectthemethodnametogototheMicrosoftdocumentation.

ProtectedInstanceMethodsFinalize(inheritedfromObject) Selectthemethodnametogoto

theMicrosoftdocumentation.

MemberwiseClone(inheritedfromObject)

SelectthemethodnametogototheMicrosoftdocumentation.

SeeAlsoProxyExceptionClass|Org.Mentalis.Network.ProxySocket

ProxyExceptionMethods

Page 16: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Namespace

Copyright©2002,TheKPD-Team

Page 17: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 18: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

ConvertsaSOCKS5errornumbertoahumanreadablestring.

[VisualBasic]PublicSharedFunctionSocks5ToString(_

ByValsocks5ErrorAsInteger_

)AsString

[C#]

publicstaticstringSocks5ToString(

intsocks5Error

);

Parameterssocks5Error

TheerrornumberreturnedbyaSOCKS5server.

ReturnValueAstringrepresentationofthespecifiedSOCKS5errornumber.

SeeAlsoProxyExceptionClass|ProxyExceptionMembers|Org.Mentalis.Network.ProxySocketNamespace

Copyright©2002,TheKPD-Team

ProxyException.Socks5ToStringMethod

Page 19: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 20: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

ImplementsaSocketclassthatcanconnecttroughaSOCKSproxyserver.

Foralistofallmembersofthistype,seeProxySocketMembers.

System.ObjectSocketProxySocket

[VisualBasic]

PublicClassProxySocket

InheritsSocket

ImplementsIDisposable

[C#]

publicclassProxySocket:Socket,IDisposable

RemarksThisclassimplementsSOCKS4[A]andSOCKS5.Itdoesnot,however,implementtheBINDcommands,soyoucannot.

RequirementsNamespace:Org.Mentalis.Network.ProxySocketNamespaceAssembly:Org.Mentalis.Network.ProxySocket.dll

SeeAlsoProxySocketMembers|Org.Mentalis.Network.ProxySocketNamespace

Copyright©2002,TheKPD-Team

ProxySocketClass

Page 21: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 22: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

PublicInstanceConstructorsProxySocket Overloaded.Initializeanew

instanceoftheProxySocketclass.

PublicInstancePropertiesAddressFamily(inheritedfromSystem.Net.Sockets.Socket)

SelectthemethodnametogototheMicrosoftdocumentation.

Available(inheritedfromSystem.Net.Sockets.Socket)

SelectthemethodnametogototheMicrosoftdocumentation.

Blocking(inheritedfromSystem.Net.Sockets.Socket)

SelectthemethodnametogototheMicrosoftdocumentation.

Connected(inheritedfromSystem.Net.Sockets.Socket)

SelectthemethodnametogototheMicrosoftdocumentation.

Handle(inheritedfromSystem.Net.Sockets.Socket)

SelectthemethodnametogototheMicrosoftdocumentation.

LocalEndPoint(inheritedfromSystem.Net.Sockets.Socket)

SelectthemethodnametogototheMicrosoftdocumentation.

ProtocolType(inheritedfromSystem.Net.Sockets.Socket)

SelectthemethodnametogototheMicrosoftdocumentation.

ProxyEndPoint GetsorsetstheEndPointoftheproxyserver.

ProxyPass Getsorsetsthepasswordtousewhenauthenticatingwiththeproxy.

ProxyType Getsorsetsthetypeofproxyservertouse.

ProxyUser Getsorsetstheusernametousewhenauthenticatingwiththeproxy.

ProxySocketMembers

Page 23: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

RemoteEndPoint(inheritedfromSystem.Net.Sockets.Socket)

SelectthemethodnametogototheMicrosoftdocumentation.

SocketType(inheritedfromSystem.Net.Sockets.Socket)

SelectthemethodnametogototheMicrosoftdocumentation.

PublicInstanceMethodsAccept(inheritedfromSocket) Selectthemethodnametogoto

theMicrosoftdocumentation.

BeginAccept(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

BeginConnect Overloaded.Beginsanasynchronousrequestforaconnectiontoanetworkdevice.

BeginConnect(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

BeginReceive(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

BeginReceiveFrom(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

BeginSend(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

BeginSendTo(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

Bind(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

Close(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

Connect Overloaded.Establishesaconnectiontoaremotedevice.

Connect(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

EndAccept(inheritedfrom Selectthemethodnametogoto

Page 24: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Socket) theMicrosoftdocumentation.

EndConnect Overloaded.Endsapendingasynchronousconnectionrequest.

EndConnect(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

EndReceive(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

EndReceiveFrom(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

EndSend(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

EndSendTo(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

Equals(inheritedfromObject) SelectthemethodnametogototheMicrosoftdocumentation.

GetHashCode(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

GetSocketOption(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

GetSocketOption(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

GetSocketOption(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

GetType(inheritedfromObject) SelectthemethodnametogototheMicrosoftdocumentation.

IOControl(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

Listen(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

Poll(inheritedfromSocket) Selectthemethodnametogoto

Page 25: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

theMicrosoftdocumentation.

Receive(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

Receive(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

Receive(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

Receive(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

ReceiveFrom(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

ReceiveFrom(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

ReceiveFrom(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

ReceiveFrom(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

Send(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

Send(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

Send(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

Send(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

SendTo(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

SendTo(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

SendTo(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

Page 26: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

SendTo(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

SetSocketOption(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

SetSocketOption(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

SetSocketOption(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

Shutdown(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

ToString(inheritedfromObject) SelectthemethodnametogototheMicrosoftdocumentation.

ProtectedInstanceMethodsDispose(inheritedfromSocket) Selectthemethodnametogoto

theMicrosoftdocumentation.

Finalize(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

MemberwiseClone(inheritedfromObject)

SelectthemethodnametogototheMicrosoftdocumentation.

ExplicitInterfaceImplementationsIDisposable.Dispose(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

SeeAlsoProxySocketClass|Org.Mentalis.Network.ProxySocketNamespace

Copyright©2002,TheKPD-Team

Page 27: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 28: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

InitializesanewinstanceoftheProxySocketclass.

OverloadListInitializesanewinstanceoftheProxySocketclass.

publicProxySocket(AddressFamily,SocketType,ProtocolType);

InitializesanewinstanceoftheProxySocketclass.

publicProxySocket(AddressFamily,SocketType,ProtocolType,string);

InitializesanewinstanceoftheProxySocketclass.

publicProxySocket(AddressFamily,SocketType,ProtocolType,string,string);

SeeAlsoProxySocketClass|ProxySocketMembers|Org.Mentalis.Network.ProxySocketNamespace

Copyright©2002,TheKPD-Team

ProxySocket

Page 29: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 30: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

InitializesanewinstanceoftheProxySocketclass.

[VisualBasic]OverloadsPublicSubNew(_

ByValaddressFamilyAsSystem.Net.Sockets.AddressFamily

ByValsocketTypeAsSystem.Net.Sockets.SocketType

ByValprotocolTypeAsSystem.Net.Sockets.ProtocolType

)

[C#]

publicProxySocket(

AddressFamilyaddressFamily,

SocketTypesocketType,

ProtocolTypeprotocolType

);

ParametersaddressFamily

OneoftheAddressFamilyvalues.

socketTypeOneoftheSocketTypevalues.

protocolTypeOneoftheProtocolTypevalues.

ExceptionsExceptionType ConditionSystem.Net.Sockets.SocketException Thecombinationof

addressFamily,socketType,andprotocolTyperesultsinaninvalidsocket.

SeeAlsoProxySocketClass|ProxySocketMembers|

ProxySocketConstructor(AddressFamily,SocketType,ProtocolType)

Page 31: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Org.Mentalis.Network.ProxySocketNamespace|ProxySocketConstructorOverloadList

Copyright©2002,TheKPD-Team

Page 32: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 33: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

InitializesanewinstanceoftheProxySocketclass.

[VisualBasic]OverloadsPublicSubNew(_

ByValaddressFamilyAsSystem.Net.Sockets.AddressFamily

ByValsocketTypeAsSystem.Net.Sockets.SocketType

ByValprotocolTypeAsSystem.Net.Sockets.ProtocolType

ByValproxyUsernameAsString_

)

[C#]

publicProxySocket(

AddressFamilyaddressFamily,

SocketTypesocketType,

ProtocolTypeprotocolType,

stringproxyUsername

);

ParametersaddressFamily

OneoftheAddressFamilyvalues.

socketTypeOneoftheSocketTypevalues.

protocolTypeOneoftheProtocolTypevalues.

proxyUsernameTheusernametousewhenauthenticatingwiththeproxyserver.

ExceptionsExceptionType ConditionSystem.Net.Sockets.SocketException Thecombinationof

addressFamily,socketType,andprotocolTyperesultsin

ProxySocketConstructor(AddressFamily,SocketType,ProtocolType,String)

Page 34: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

aninvalidsocket.

System.ArgumentNullException proxyUsernameisnull.

SeeAlsoProxySocketClass|ProxySocketMembers|Org.Mentalis.Network.ProxySocketNamespace|ProxySocketConstructorOverloadList

Copyright©2002,TheKPD-Team

Page 35: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 36: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

InitializesanewinstanceoftheProxySocketclass.

[VisualBasic]OverloadsPublicSubNew(_

ByValaddressFamilyAsSystem.Net.Sockets.AddressFamily

ByValsocketTypeAsSystem.Net.Sockets.SocketType

ByValprotocolTypeAsSystem.Net.Sockets.ProtocolType

ByValproxyUsernameAsString,_

ByValproxyPasswordAsString_

)

[C#]

publicProxySocket(

AddressFamilyaddressFamily,

SocketTypesocketType,

ProtocolTypeprotocolType,

stringproxyUsername,

stringproxyPassword

);

ParametersaddressFamily

OneoftheAddressFamilyvalues.

socketTypeOneoftheSocketTypevalues.

protocolTypeOneoftheProtocolTypevalues.

proxyUsernameTheusernametousewhenauthenticatingwiththeproxyserver.

proxyPasswordThepasswordtousewhenauthenticatingwiththeproxyserver.

Exceptions

ProxySocketConstructor(AddressFamily,SocketType,ProtocolType,String,String)

Page 37: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

ExceptionType ConditionSystem.Net.Sockets.SocketException Thecombinationof

addressFamily,socketType,andprotocolTyperesultsinaninvalidsocket.

System.ArgumentNullException proxyUsername-or-proxyPasswordisnull.

SeeAlsoProxySocketClass|ProxySocketMembers|Org.Mentalis.Network.ProxySocketNamespace|ProxySocketConstructorOverloadList

Copyright©2002,TheKPD-Team

Page 38: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 39: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

ThepropertiesoftheProxySocketclassarelistedbelow.ForacompletelistofProxySocketclassmembers,seetheProxySocketMemberstopic.

PublicInstancePropertiesAddressFamily(inheritedfromSystem.Net.Sockets.Socket)

SelectthemethodnametogototheMicrosoftdocumentation.

Available(inheritedfromSystem.Net.Sockets.Socket)

SelectthemethodnametogototheMicrosoftdocumentation.

Blocking(inheritedfromSystem.Net.Sockets.Socket)

SelectthemethodnametogototheMicrosoftdocumentation.

Connected(inheritedfromSystem.Net.Sockets.Socket)

SelectthemethodnametogototheMicrosoftdocumentation.

Handle(inheritedfromSystem.Net.Sockets.Socket)

SelectthemethodnametogototheMicrosoftdocumentation.

LocalEndPoint(inheritedfromSystem.Net.Sockets.Socket)

SelectthemethodnametogototheMicrosoftdocumentation.

ProtocolType(inheritedfromSystem.Net.Sockets.Socket)

SelectthemethodnametogototheMicrosoftdocumentation.

ProxyEndPoint GetsorsetstheEndPointoftheproxyserver.

ProxyPass Getsorsetsthepasswordtousewhenauthenticatingwiththeproxy.

ProxyType Getsorsetsthetypeofproxyservertouse.

ProxyUser Getsorsetstheusernametousewhenauthenticatingwiththeproxy.

RemoteEndPoint(inheritedfromSystem.Net.Sockets.Socket)

SelectthemethodnametogototheMicrosoftdocumentation.

ProxySocketProperties

Page 40: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

SocketType(inheritedfromSystem.Net.Sockets.Socket)

SelectthemethodnametogototheMicrosoftdocumentation.

SeeAlsoProxySocketClass|Org.Mentalis.Network.ProxySocketNamespace

Copyright©2002,TheKPD-Team

Page 41: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 42: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

GetsorsetstheEndPointoftheproxyserver.

[VisualBasic]PublicPropertyProxyEndPointAs

[C#]

publicSystem.Net.IPEndPointProxyEndPoint{get;set;}

PropertyValueAnIPEndPointobjectthatholdstheIPaddressandtheportoftheproxyserver.

SeeAlsoProxySocketClass|ProxySocketMembers|Org.Mentalis.Network.ProxySocketNamespace

Copyright©2002,TheKPD-Team

ProxySocket.ProxyEndPointProperty

Page 43: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 44: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Getsorsetsthepasswordtousewhenauthenticatingwiththeproxy.

[VisualBasic]PublicPropertyProxyPassAsString

[C#]

publicstringProxyPass{get;set;}

PropertyValueAstringthatholdsthepasswordthat'susedwhenauthenticatingwiththeproxy.

ExceptionsExceptionType ConditionSystem.ArgumentNullException Thespecifiedvalueisnull.

SeeAlsoProxySocketClass|ProxySocketMembers|Org.Mentalis.Network.ProxySocketNamespace

Copyright©2002,TheKPD-Team

ProxySocket.ProxyPassProperty

Page 45: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 46: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Getsorsetsthetypeofproxyservertouse.

[VisualBasic]PublicPropertyProxyTypeAsOrg.Mentalis.Network.ProxySocket.ProxyTypes

[C#]

publicProxyTypesProxyType{get;set;}

PropertyValueOneoftheProxyTypesvalues.

SeeAlsoProxySocketClass|ProxySocketMembers|Org.Mentalis.Network.ProxySocketNamespace

Copyright©2002,TheKPD-Team

ProxySocket.ProxyTypeProperty

Page 47: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 48: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Getsorsetstheusernametousewhenauthenticatingwiththeproxy.

[VisualBasic]PublicPropertyProxyUserAsString

[C#]

publicstringProxyUser{get;set;}

PropertyValueAstringthatholdstheusernamethat'susedwhenauthenticatingwiththeproxy.

ExceptionsExceptionType ConditionSystem.ArgumentNullException Thespecifiedvalueisnull.

SeeAlsoProxySocketClass|ProxySocketMembers|Org.Mentalis.Network.ProxySocketNamespace

Copyright©2002,TheKPD-Team

ProxySocket.ProxyUserProperty

Page 49: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 50: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

ThemethodsoftheProxySocketclassarelistedbelow.ForacompletelistofProxySocketclassmembers,seetheProxySocketMemberstopic.

PublicInstanceMethodsAccept(inheritedfromSocket) Selectthemethodnametogoto

theMicrosoftdocumentation.

BeginAccept(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

BeginConnect Overloaded.Beginsanasynchronousrequestforaconnectiontoanetworkdevice.

BeginConnect(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

BeginReceive(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

BeginReceiveFrom(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

BeginSend(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

BeginSendTo(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

Bind(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

Close(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

Connect Overloaded.Establishesaconnectiontoaremotedevice.

Connect(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

ProxySocketMethods

Page 51: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

EndAccept(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

EndConnect Overloaded.Endsapendingasynchronousconnectionrequest.

EndConnect(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

EndReceive(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

EndReceiveFrom(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

EndSend(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

EndSendTo(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

Equals(inheritedfromObject) SelectthemethodnametogototheMicrosoftdocumentation.

GetHashCode(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

GetSocketOption(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

GetSocketOption(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

GetSocketOption(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

GetType(inheritedfromObject) SelectthemethodnametogototheMicrosoftdocumentation.

IOControl(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

Listen(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

Page 52: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Poll(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

Receive(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

Receive(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

Receive(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

Receive(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

ReceiveFrom(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

ReceiveFrom(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

ReceiveFrom(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

ReceiveFrom(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

Send(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

Send(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

Send(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

Send(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

SendTo(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

SendTo(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

SendTo(inheritedfromSocket) Selectthemethodnametogoto

Page 53: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

theMicrosoftdocumentation.

SendTo(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

SetSocketOption(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

SetSocketOption(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

SetSocketOption(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

Shutdown(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

ToString(inheritedfromObject) SelectthemethodnametogototheMicrosoftdocumentation.

ProtectedInstanceMethodsDispose(inheritedfromSocket) Selectthemethodnametogoto

theMicrosoftdocumentation.

Finalize(inheritedfromSocket) SelectthemethodnametogototheMicrosoftdocumentation.

MemberwiseClone(inheritedfromObject)

SelectthemethodnametogototheMicrosoftdocumentation.

ExplicitInterfaceImplementationsIDisposable.Dispose(inheritedfromSocket)

SelectthemethodnametogototheMicrosoftdocumentation.

SeeAlsoProxySocketClass|Org.Mentalis.Network.ProxySocketNamespace

Copyright©2002,TheKPD-Team

Page 54: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 55: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Beginsanasynchronousrequestforaconnectiontoanetworkdevice.

OverloadListBeginsanasynchronousrequestforaconnectiontoanetworkdevice.

publicIAsyncResultBeginConnect(EndPoint,AsyncCallback,object);

Beginsanasynchronousrequestforaconnectiontoanetworkdevice.

publicIAsyncResultBeginConnect(string,int,AsyncCallback,object);

publicIAsyncResultBeginConnect(EndPoint,AsyncCallback,object);

SeeAlsoProxySocketClass|ProxySocketMembers|Org.Mentalis.Network.ProxySocketNamespace

Copyright©2002,TheKPD-Team

ProxySocket.BeginConnect

Page 56: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 57: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Beginsanasynchronousrequestforaconnectiontoanetworkdevice.

[VisualBasic]OverloadsPublicFunctionBeginConnect(_

ByValremoteEPAsSystem.Net.EndPoint,_

ByValcallbackAsSystem.AsyncCallback,_

ByValstateAsObject_

)AsSystem.IAsyncResult

[C#]

publicIAsyncResultBeginConnect(

EndPointremoteEP,

AsyncCallbackcallback,

objectstate

);

ParametersremoteEP

AnEndPointthatrepresentstheremotedevice.

callbackTheAsyncCallbackdelegate.

stateAnobjectthatcontainsstateinformationforthisrequest.

ReturnValueAnIAsyncResultthatreferencestheasynchronousconnection.

ExceptionsExceptionType ConditionSystem.ArgumentNullException TheremoteEPparameteris

anullreference(NothinginVisualBasic).

ProxySocket.BeginConnectMethod(EndPoint,AsyncCallback,Object)

Page 58: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

System.Net.Sockets.SocketException AnoperatingsystemerroroccurswhilecreatingtheSocket.

System.ObjectDisposedException TheSockethasbeenclosed.

SeeAlsoProxySocketClass|ProxySocketMembers|Org.Mentalis.Network.ProxySocketNamespace|ProxySocket.BeginConnectOverloadList

Copyright©2002,TheKPD-Team

Mentalis.orgProxySocketDocumentation

Page 59: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Beginsanasynchronousrequestforaconnectiontoanetworkdevice.

[VisualBasic]

OverloadsPublicFunctionBeginConnect(_

ByValremoteEPAsSystem.Net.EndPoint,_

ByValcallbackAsSystem.AsyncCallback,_

ByValstateAsObject_

)AsSystem.IAsyncResult

[C#]

publicIAsyncResultBeginConnect(

EndPointremoteEP,

AsyncCallbackcallback,

objectstate

);

ParametersremoteEP

AnEndPointthatrepresentstheremotedevice.

callbackTheAsyncCallbackdelegate.

stateAnobjectthatcontainsstateinformationforthisrequest.

ReturnValueAnIAsyncResultthatreferencestheasynchronousconnection.

ExceptionsExceptionType ConditionSystem.ArgumentNullException TheremoteEPparameteris

anullreference(Nothingin

ProxySocket.BeginConnectMethod(EndPoint,AsyncCallback,Object)

Page 60: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

VisualBasic).

System.Net.Sockets.SocketException AnoperatingsystemerroroccurswhilecreatingtheSocket.

System.ObjectDisposedException TheSockethasbeenclosed.

SeeAlsoProxySocketClass|ProxySocketMembers|Org.Mentalis.Network.ProxySocketNamespace|ProxySocket.BeginConnectOverloadList

Copyright©2002,TheKPD-Team

Page 61: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 62: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Beginsanasynchronousrequestforaconnectiontoanetworkdevice.

[VisualBasic]OverloadsPublicFunctionBeginConnect(_

ByValhostAsString,_

ByValportAsInteger,_

ByValcallbackAsSystem.AsyncCallback,_

ByValstateAsObject_

)AsSystem.IAsyncResult

[C#]

publicIAsyncResultBeginConnect(

stringhost,

intport,

AsyncCallbackcallback,

objectstate

);

Parametershost

Thehosttoconnectto.

portTheportontheremotehosttoconnectto.

callbackTheAsyncCallbackdelegate.

stateAnobjectthatcontainsstateinformationforthisrequest.

ReturnValueAnIAsyncResultthatreferencestheasynchronousconnection.

Exceptions

ProxySocket.BeginConnectMethod(String,Int32,AsyncCallback,Object)

Page 63: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

ExceptionType ConditionSystem.ArgumentNullException Thehostparameterisanull

reference(NothinginVisualBasic).

System.ArgumentException Theportparameterisinvalid.

System.Net.Sockets.SocketException AnoperatingsystemerroroccurswhilecreatingtheSocket.

System.ObjectDisposedException TheSockethasbeenclosed.

SeeAlsoProxySocketClass|ProxySocketMembers|Org.Mentalis.Network.ProxySocketNamespace|ProxySocket.BeginConnectOverloadList

Copyright©2002,TheKPD-Team

Page 64: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 65: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Establishesaconnectiontoaremotedevice.

OverloadListEstablishesaconnectiontoaremotedevice.

publicvoidConnect(EndPoint);

Establishesaconnectiontoaremotedevice.

publicvoidConnect(string,int);

publicvoidConnect(EndPoint);

SeeAlsoProxySocketClass|ProxySocketMembers|Org.Mentalis.Network.ProxySocketNamespace

Copyright©2002,TheKPD-Team

ProxySocket.Connect

Page 66: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 67: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Establishesaconnectiontoaremotedevice.

[VisualBasic]OverloadsPublicSubConnect(_

ByValremoteEPAsSystem.Net.EndPoint_

)

[C#]

publicvoidConnect(

EndPointremoteEP

);

ParametersremoteEP

AnEndPointthatrepresentstheremotedevice.

ExceptionsExceptionType ConditionSystem.ArgumentNullException TheremoteEP

parameterisanullreference(NothinginVisualBasic).

System.Net.Sockets.SocketException AnoperatingsystemerroroccurswhileaccessingtheSocket.

System.ObjectDisposedException TheSockethasbeenclosed.

Org.Mentalis.Network.ProxySocket.ProxyException Anerroroccuredwhiletalkingtothe

ProxySocket.ConnectMethod(EndPoint)

Page 68: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

proxyserver.

SeeAlsoProxySocketClass|ProxySocketMembers|Org.Mentalis.Network.ProxySocketNamespace|ProxySocket.ConnectOverloadList

Copyright©2002,TheKPD-Team

Mentalis.orgProxySocketDocumentation

Page 69: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Establishesaconnectiontoaremotedevice.

[VisualBasic]

OverloadsPublicSubConnect(_

ByValremoteEPAsSystem.Net.EndPoint_

)

[C#]

publicvoidConnect(

EndPointremoteEP

);

ParametersremoteEP

AnEndPointthatrepresentstheremotedevice.

ExceptionsExceptionType ConditionSystem.ArgumentNullException TheremoteEP

parameterisanullreference(NothinginVisualBasic).

System.Net.Sockets.SocketException AnoperatingsystemerroroccurswhileaccessingtheSocket.

System.ObjectDisposedException TheSockethasbeenclosed.

Org.Mentalis.Network.ProxySocket.ProxyException Anerroroccuredwhile

ProxySocket.ConnectMethod(EndPoint)

Page 70: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

talkingtotheproxyserver.

SeeAlsoProxySocketClass|ProxySocketMembers|Org.Mentalis.Network.ProxySocketNamespace|ProxySocket.ConnectOverloadList

Copyright©2002,TheKPD-Team

Page 71: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 72: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Establishesaconnectiontoaremotedevice.

[VisualBasic]OverloadsPublicSubConnect(_

ByValhostAsString,_

ByValportAsInteger_

)

[C#]

publicvoidConnect(

stringhost,

intport

);

Parametershost

Theremotehosttoconnectto.

portTheremoteporttoconnectto.

RemarksIfyouusethismethodwithaSOCKS4server,itwilllettheserverresolvethehostname.NotallSOCKS4serverssupportthis'remoteDNS'though.

ExceptionsExceptionType ConditionSystem.ArgumentNullException Thehost

parameterisanullreference(NothinginVisualBasic).

System.ArgumentException Theportparameteris

ProxySocket.ConnectMethod(String,Int32)

Page 73: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

invalid.

System.Net.Sockets.SocketException AnoperatingsystemerroroccurswhileaccessingtheSocket.

System.ObjectDisposedException TheSockethasbeenclosed.

Org.Mentalis.Network.ProxySocket.ProxyException Anerroroccuredwhiletalkingtotheproxyserver.

SeeAlsoProxySocketClass|ProxySocketMembers|Org.Mentalis.Network.ProxySocketNamespace|ProxySocket.ConnectOverloadList

Copyright©2002,TheKPD-Team

Page 74: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 75: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Endsapendingasynchronousconnectionrequest.

[VisualBasic]OverloadsPublicSubEndConnect(_

ByValasyncResultAsSystem.IAsyncResult_

)

[C#]

publicvoidEndConnect(

IAsyncResultasyncResult

);

ParametersasyncResult

Storesstateinformationforthisasynchronousoperationaswellasanyuser-defineddata.

ExceptionsExceptionType ConditionSystem.ArgumentNullException The

asyncResultparameterisanullreference(NothinginVisualBasic).

System.ArgumentException TheasyncResultparameterwasnotreturnedbyacalltotheBeginConnectmethod.

System.Net.Sockets.SocketException Anoperatingsystemerror

ProxySocket.EndConnectMethod(IAsyncResult)

Page 76: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

occurswhileaccessingtheSocket.

System.ObjectDisposedException TheSockethasbeenclosed.

System.InvalidOperationException EndConnectwaspreviouslycalledfortheasynchronousconnection.

Org.Mentalis.Network.ProxySocket.ProxyException Theproxyserverrefusedtheconnection.

SeeAlsoProxySocketClass|ProxySocketMembers|Org.Mentalis.Network.ProxySocketNamespace|ProxySocket.EndConnectOverloadList

Copyright©2002,TheKPD-Team

Mentalis.orgProxySocketDocumentation

Page 77: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Endsapendingasynchronousconnectionrequest.

[VisualBasic]

OverloadsPublicSubEndConnect(_

ByValasyncResultAsSystem.IAsyncResult_

)

[C#]

publicvoidEndConnect(

IAsyncResultasyncResult

);

ParametersasyncResult

Storesstateinformationforthisasynchronousoperationaswellasanyuser-defineddata.

ExceptionsExceptionType ConditionSystem.ArgumentNullException The

asyncResultparameterisanullreference(NothinginVisualBasic).

System.ArgumentException TheasyncResultparameterwasnotreturnedbyacalltotheBeginConnectmethod.

System.Net.Sockets.SocketException Anoperating

ProxySocket.EndConnectMethod(IAsyncResult)

Page 78: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

systemerroroccurswhileaccessingtheSocket.

System.ObjectDisposedException TheSockethasbeenclosed.

System.InvalidOperationException EndConnectwaspreviouslycalledfortheasynchronousconnection.

Org.Mentalis.Network.ProxySocket.ProxyException Theproxyserverrefusedtheconnection.

SeeAlsoProxySocketClass|ProxySocketMembers|Org.Mentalis.Network.ProxySocketNamespace|ProxySocket.EndConnectOverloadList

Copyright©2002,TheKPD-Team

Page 79: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Mentalis.orgProxySocketDocumentation

Page 80: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

SpecifiesthetypeofproxyserversthataninstanceoftheProxySocketclasscanuse.

[VisualBasic]PublicEnumProxyTypes

[C#]

publicenumProxyTypes

MembersMemberName DescriptionNone Noproxyserver;the

ProxySocketobjectbehavesexactlylikeanordinarySocketobject.

Socks4 ASOCKS4[A]proxyserver.

Socks5 ASOCKS5proxyserver.

RequirementsNamespace:Org.Mentalis.Network.ProxySocketNamespaceAssembly:Org.Mentalis.Network.ProxySocket.dll

SeeAlsoOrg.Mentalis.Network.ProxySocketNamespace

Copyright©2002,TheKPD-Team

ProxyTypesEnumeration

Page 81: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Org.Mentalis.Networl.ProxySocksnamespacedocumentation

Page 82: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

Copyright©2002,TheKPD-TeamAllrightsreserved.http://www.mentalis.org/

Redistributionanduseinsourceandbinaryforms,withorwithoutmodification,arepermittedprovidedthatthefollowingconditionsaremet:

-Redistributionsofsourcecodemustretaintheabovecopyrightnotice,thislistofconditionsandthefollowingdisclaimer.

-NeitherthenameoftheKPD-Team,northenamesofitscontributorsmaybeusedtoendorseorpromoteproductsderivedfromthissoftwarewithoutspecificpriorwrittenpermission.

THISSOFTWAREISPROVIDEDBYTHECOPYRIGHTHOLDERSANDCONTRIBUTORS"ASIS"ANDANYEXPRESSORIMPLIEDWARRANTIES,INCLUDING,BUTNOTLIMITEDTO,THEIMPLIEDWARRANTIESOFMERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSEAREDISCLAIMED.INNOEVENTSHALLTHECOPYRIGHTOWNERORCONTRIBUTORSBELIABLEFORANYDIRECT,INDIRECT,INCIDENTAL,SPECIAL,EXEMPLARY,ORCONSEQUENTIALDAMAGES(INCLUDING,BUTNOTLIMITEDTO,PROCUREMENTOFSUBSTITUTEGOODSORSERVICES;LOSSOFUSE,DATA,ORPROFITS;ORBUSINESSINTERRUPTION)HOWEVERCAUSEDANDONANYTHEORYOFLIABILITY,WHETHERINCONTRACT,STRICTLIABILITY,ORTORT(INCLUDINGNEGLIGENCEOROTHERWISE)ARISINGINANYWAYOUTOFTHEUSEOFTHISSOFTWARE,

SourceCodeLicense

Page 83: Mentalis.org ProxySocket Documentation filePublic Static (Shared) Methods Socks5ToString Converts a SOCKS5 error number to a human readable string. Public Instance Constructors ProxyException

EVENIFADVISEDOFTHEPOSSIBILITYOFSUCHDAMAGE.

Copyright©2002,TheKPD-Team