Monkster Posted August 29, 2003 Posted August 29, 2003 Hello all, I'm hoping someone can help newbie me. I have been trying to write a quick VB .NET program to connect to an IRC server, just to see how sockets work. The problem is every time I do a new tcpclient connect I get the following error: An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in system.dll Additional information: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full --- This happens on ANY connect. Here was my simple code: mobjClient = New TcpClient("irc.efnet.nl", 6667) Nothing to hard there. Can anyone tell me why this would happen? Ray Quote
everettwolf Posted October 15, 2003 Posted October 15, 2003 Did you ever resolve this? I've been trying to get to the bottom of this error for about a month.... Quote
everettwolf Posted October 15, 2003 Posted October 15, 2003 just saw that your problem probably relates to this: http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q196/2/71.ASP&NoWebContent=1 Quote
Monkster Posted October 16, 2003 Author Posted October 16, 2003 Wow, that was dead on what I was getting. Thanks I will try that this weekend. :) :) Thank you again! Monkster Quote
Monkster Posted October 16, 2003 Author Posted October 16, 2003 Ah well, was worth a try. It did not fix it. Thank you tho :) Monkster Quote
*Experts* Volte Posted October 16, 2003 *Experts* Posted October 16, 2003 The TcpClient is, in my opinion, a rather sub-par socket implementation. I suggest you look into making your own socket client class by making use of the System.Net.Sockets.Socket class and connecting, sending and recieving data yourself. Also, this way you can implement events, so you don't have to poll the TcpClient in its own thread or anything. I believe there is some sort of example and tutorial in the MSDN. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.