I get a NullPointerException when calling BeginConnect. Here is the relevant code:
public TcpClient() { this.client = new System.Net.Sockets.TcpClient();