DotMSN |

# SocketMessageProcessor.GetPreparedSocket Method

Returns a socket which is setup using the settings in the ConnectivitySettings field. Always use this method when you want to use sockets.

[Visual Basic]
Overridable Protected Function GetPreparedSocket() As ProxySocket
[C#]
protected virtual ProxySocket GetPreparedSocket();

#### Return Value

#### Exceptions

Exception Type | Condition
--- | ---
ConnectivityException | Raised when the proxy server can not be resolved

#### See Also

SocketMessageProcessor Class | XihSolutions.DotMSN.Core Namespace