PDA

View Full Version : Simple TCP communication in Delphi .NET



cronodragon
02-10-2007, 03:36 PM
I used to use TClientSocket and TWinSocketStream in Delphi 7, now in .NET what should I use? Also I would prefer to stay away from Indy and keep things simple. Thanks in advance! :D

billy1380
02-10-2007, 08:46 PM
Most of the stuff in .NET to do with TCP/IP is in the namespace System.Net, although the useful (Socket) stuff is in System.Net.Sockets

MSDN has tons of code examples on how to use sockets sychronously or asyncronously using a callback on connects, recieves... increadibly useful stuff...

check this out...

http://msdn2.microsoft.com/en-us/library/system.net.sockets.socket.aspx