Click here to Skip to main content
15,888,175 members
Home / Discussions / C#
   

C#

 
QuestionADO.NET Sql cmd/adapters and multiple line SQL statements Pin
devvvy12-May-10 18:22
devvvy12-May-10 18:22 
AnswerRe: ADO.NET Sql cmd/adapters and multiple line SQL statements Pin
Abhinav S12-May-10 18:26
Abhinav S12-May-10 18:26 
GeneralRe: ADO.NET Sql cmd/adapters and multiple line SQL statements Pin
devvvy12-May-10 18:47
devvvy12-May-10 18:47 
GeneralRe: ADO.NET Sql cmd/adapters and multiple line SQL statements Pin
J4amieC12-May-10 21:46
J4amieC12-May-10 21:46 
GeneralRe: ADO.NET Sql cmd/adapters and multiple line SQL statements Pin
PIEBALDconsult13-May-10 4:07
mvePIEBALDconsult13-May-10 4:07 
QuestionDataRowState not working as expected Pin
gmhanna12-May-10 9:38
gmhanna12-May-10 9:38 
AnswerRe: DataRowState not working as expected Pin
Gopal.S12-May-10 18:21
Gopal.S12-May-10 18:21 
QuestionServer program error: Unable to read data from the transport connection Pin
aei_totten12-May-10 8:02
aei_totten12-May-10 8:02 
OKay, so I am writing a server program that connects many clients and sends them out data. The problem is that when a client disconnects, when trying to read from another client I get the error.."Unable to read data from the transport connection: An established connection was aborted by the software in your host machine."

I have the connections saved in a Dictionary
private Dictionary<TcpClient, string> Connections = new Dictionary<TcpClient, string>();
//to add a client
Connections.Add(tcpClient, currUser);
// to remove a client
Connections.Remove(tcpUser);

//server just loops (in a separate thread for each connection) 
string message = srReceiver.ReadLine();

//client code

// setting up connection
tcpServer = new TcpClient();
tcpServer.Connect(IPAddress.Parse(ipaddress), port);
swSender = new StreamWriter(tcpServer.GetStream());

// sending stuff
swSender.WriteLine("Whatever");
swSender.Flush();

// closing connection
swSender.WriteLine("Close");
swSender.Flush();
swSender.Close();
tcpServer.Close();

AnswerRe: Server program error: Unable to read data from the transport connection Pin
aei_totten12-May-10 8:12
aei_totten12-May-10 8:12 
QuestionC# and vss Pin
Zeyad Jalil12-May-10 6:07
professionalZeyad Jalil12-May-10 6:07 
AnswerRe: C# and vss Pin
Abhinav S12-May-10 6:16
Abhinav S12-May-10 6:16 
GeneralRe: C# and vss Pin
Zeyad Jalil12-May-10 6:21
professionalZeyad Jalil12-May-10 6:21 
AnswerSame question Pin
Not Active12-May-10 7:27
mentorNot Active12-May-10 7:27 
AnswerRe: C# and vss Pin
Michel Godfroid12-May-10 9:51
Michel Godfroid12-May-10 9:51 
AnswerRe: C# and vss Pin
Pete O'Hanlon12-May-10 12:43
mvePete O'Hanlon12-May-10 12:43 
QuestionCritical Problem : MyTableAdapter.Adapter.SelectCommand is null. Pin
hdv21212-May-10 5:07
hdv21212-May-10 5:07 
AnswerRe: Critical Problem : MyTableAdapter.Adapter.SelectCommand is null. Pin
OriginalGriff12-May-10 5:10
mveOriginalGriff12-May-10 5:10 
AnswerRe: Critical Problem : MyTableAdapter.Adapter.SelectCommand is null. Pin
Abhinav S12-May-10 5:28
Abhinav S12-May-10 5:28 
GeneralRe: Critical Problem : MyTableAdapter.Adapter.SelectCommand is null. Pin
hdv21212-May-10 8:10
hdv21212-May-10 8:10 
QuestionESP error when calling C# from Unmanaged C++ Pin
mtnM@n12-May-10 3:54
mtnM@n12-May-10 3:54 
AnswerRe: ESP error when calling C# from Unmanaged C++ Pin
Luc Pattyn12-May-10 4:17
sitebuilderLuc Pattyn12-May-10 4:17 
Questionusing listview control in smart device Pin
bacem smari12-May-10 3:14
bacem smari12-May-10 3:14 
AnswerRe: using listview control in smart device Pin
William Winner12-May-10 6:05
William Winner12-May-10 6:05 
GeneralRe: using listview control in smart device Pin
bacem smari12-May-10 12:53
bacem smari12-May-10 12:53 
GeneralRe: using listview control in smart device Pin
bacem smari13-May-10 0:29
bacem smari13-May-10 0:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.