reference - My C# Assembly or my code? -
hello have code:
private void button1_click(object sender, eventargs e) { if (radiobutton1.checked) { udp.startflood(textbox1.text, convert.toint32(textbox3.text), int.parse(textbox4.text), int.parse(textbox2.text), int.parse(textbox5.text)); } }
i error "the type or namespace name startflood not exist in namespace udp(are missing assembly reference?)"
here part of udp.cs:
public thread[] sockets; public string _host; public int _delay; public int _sockets; public int _port; public int _timeout; public void startflood(string host, int32 delay, int socketss, int port, int timeout) { _host = host; _delay = delay; _sockets = socketss; _port = port; _timeout = timeout; sockets = new thread[_sockets]; (int = 0; < _sockets; i++) { sockets[i] = new thread(this.flood); sockets[i].isbackground = true; sockets[i].start(); } } public void flood() { have code here }
please may me this? thank you.
you're calling startflood
if static method, not.
you'll need create instance of udp
class:
var udp = new udp(); udp.startflood(textbox1.text, convert.toint32(textbox3.text), int.parse(textbox4.text), int.parse(textbox2.text), int.parse(textbox5.text));
Comments
Post a Comment