Added SocketMethods.cs