I understand the basics of multithreading and synchronization but I cant wrap my head around the way to implement what I need now. Here is the situation:
I have a multi-client server utilizing the...
Type: Posts; User: Mastermosley
I understand the basics of multithreading and synchronization but I cant wrap my head around the way to implement what I need now. Here is the situation:
I have a multi-client server utilizing the...
Okay I am screwing around with web sockets and am trying to negotiate a connection but I have to do some math to generate a proper negotiation.
draft-ietf-hybi-thewebsocketprotocol-03 - The...
I think what I want to do is create connection where the buffer is read before its even sent to the server. Are there any other ways instead of networkstream and streamreader?
No kidding, maybe you should read the question next time.
I have a small, probably poorly coded telnet server. You connect, it shows some ansci art and then you just type to chat and it displays your ip address following your message. The problem I'm having...
Well you can do this:
XmlDocument doc = new XmlDocument();
doc.Load(PathToXML)
or I can
XmlDocument doc = new XmlDocument();
FileStream fs = new FileStream(PathToXML, FileMode.Open,...
Your way never really worked, the .value didnt exist so I did it like this to load the data into a list.
XmlDocument doc = new XmlDocument();
StreamReader stream = new StreamReader(XmlDoc);...
Ok I'm testing this right now, I would I program a loop to check for all <Account username="
and load them into a textbox or listbox.
I have an xml file with:
<UserAccounts>
<Account username="username">
<password="password"/>
<banned="no"/>
<ipbann="no"/>
<inactive="no"/>
No thats what I wanted, I was using the text box to hold multiline status I just forgot to add text but thats not the problem. The problem was i was creating a new form which was invisible, I added a...
I am building a telnet server and I want to no how to make an array. This array needs to include a socket, streamreader, streamwriter, and the ipaddress, is this possible?
Nevermind I got it, I had to add a public beside the static Main();. Also What is the downside of doing this? as you stated above you said its not the best idea.
I dont understand that. I tried the post above but mainForm doesn't show up when I type Program.________ it should appear there but it doesn't.
Okay so I figured it out. I typed frm.Show() after I initiate Form1 frm = new Form1 how do I do that, like make reference to the form without actually creating a new one??
Also I just added a MessageBox.Show(txtStatus.Text);
and it displayed my status so something is in the textbox, but I cant see it...
oh my bad, Its in there on my actually code though and its not working. I read something about Form1 frm = new Form1(); creates a new form and the old one isnt motified or something, dunno if that is...
I have the function AddToText which is located in the Form1 Partial Class
public void AddToText(string text)
{
this.txtStatus.Text = this.txtStatus.Text + "\r\n";
}
I want to call this...
Okay forget the Threading Problem, I think I found the problem and that lies in the fact that the textbox won't change at all whether or not on a different thread.
I have the function AddToText...
Also when I call the procedure from a diffrent class but the same thread nothing appears in box.
I'm not getting any errors, the if invoke required does not seem to be doing anything. When I call the function nothing happens. Also when I push the start button it creates a thread and calls the...
This doesn't seem to work. I put a messagebox in the invoke required to see it gets called but it doesn't. I'm on a different class too. I did:
frmMain frm = new frmMain();...
that doesnt make any sense to me. Also Im not using a background thread, just a normal one by new Thread(Server.Connection).Start().
I'm working on a telnet chat server that starts out with a Windows Form. It has a button which starts the server and a textbox that logs the process, people that login and people that logout, stuff...