TPU ChatChat on IRC
Internet Relay Chat?
Java Applet client
Who's on IRC?
socket programming in mingw32
Posted by muffdust [send private reply] at December 06, 2002, 04:56:08 AM I've given my self a little project, a) to get my teeth back into programming and b) to issue a http request via a proxy server in C# so that our internet connection at work does not time out.
firstly is this possible in C#? I've seen lots of tutorials on socket programming, and not one was of help, most were all unix/linux bassed, written bt anti microsoft poeple in the early 90's. can any one offer me a decent tutorial for socket programming with my mingw32 compiler and will i need extra header files??
answers on a postcard please
Posted by DragonWolf [send private reply] at December 06, 2002, 05:37:31 AM *pictures of Silicon Valley on one side, on the reverse the following*
muffdust: Try the help file/msdn library that comes with Visual Studio .NET
It has very good examples and detailed explaination. Admittedly the examples are in VB.NET but its not hard to convert it to C#.
You'll probably want to look at the Socket class - Overview which has an Example for making a HTTP request via a TCP connection.
Wish you were here....
Posted by DragonWolf [send private reply] at December 06, 2002, 06:00:02 AM PS: You might want to check out http://www.codeproject.com/buglist/udpclientbug.asp which reports a bug with Socket.Available and UDPClient.Receive.
Posted by buzgub [send private reply] at December 06, 2002, 06:20:07 AM The front of this postcard shows a snapshot of the squid web proxy source code. The reverse bears this missive:
There's no reason why it shouldn't be possible in C#; the .Net framework has a set of classes for doing sockets stuff, and it might even have a class or two that will pull down a file over http, through a proxy. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlr... is a good point for you to start looking at such things.
However. Mingw32 is not, nor has it ever been, a C# compiler. I believe it has C, C++, and whatever else gcc supports these days. If you want to use C#, get the .Net SDK from microsoft.
If you want to use Mingw32, a suitable tutorial would be http://www.ecst.csuchico.edu/~beej/guide/net/html/ - it has a note on getting stuff to work with windows.
Posted by taubz [send private reply] at December 06, 2002, 01:26:58 PM Or get Mono from go-mono.org!
Posted by muffdust [send private reply] at December 09, 2002, 09:55:18 AM thanks.. since I've posted I've got a copy of visualstudio.net on my work computer so I think I'll give it a try with that.
Register as a new user