![]() |
|
[.NET] Tcp Socket - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] Tcp Socket (/showthread.php?tid=5544595) Pages: Pages
1
2
|
Tcp Socket - xxdarklord65xx - Feb 6, 2017 hello guys i hope ur good . i have some questions i want to know about it first of all : i have created a simple socket for my new rat . it receive and send data successfully . but im having a trouble how can i handle alot of clients . how i can give each one an ID .. i tried to use dim ID as List(Of TcpClient) = new List(Of TcpClient) and when i accept a tcpclient i add the client in the list ID.ADD(Connection) but this is not enough . how can i get the Id or the index number from the list so that i can handle clients so easy . and send for each client by the ID . i hope u guys got my problem and my question. * - Ninja - Feb 6, 2017 Or just make a Client model and put the connection object in there..? This way you can add a lot more info to an individual client. You can then use LINQ or iterate over the collection to grab the items with the indices you want. It seems you don't have much knowledge in programming so I suggest you refrain from creating a RAT anytime soon. * - xxdarklord65xx - Feb 6, 2017 (Feb 6, 2017 10:19 AM)Ninja Wrote: Or just make a Client model and put the connection object in there..? i do have knowledge in programming and my main rat is already done . but i wanted to create another socket my main rat is using a Socket class not tcpclient .. so i wanted to create a new socket using TcpClient . and i found a problem how to add a Client in a List and get the Client from the list by the id or index number when ever i want . * - Ninja - Feb 6, 2017 (Feb 6, 2017 10:25 AM)xxdarklord65xx Wrote: i do have knowledge in programming I can assure you that that problem is the easiest to solve. And I can tell you don't have much knowledge in programming. I am wondering how much of your 'main rat' you copied. * - xxdarklord65xx - Feb 6, 2017 (Feb 6, 2017 10:30 AM)Ninja Wrote: I can assure you that that problem is the easiest to solve. And I can tell you don't have much knowledge in programming. I am wondering how much of your 'main rat' you copied. lol dont judge while u dont know anything about me . i know its easy i did 50% of it . but im just confused how to get the id or index from the collection or the list . so if u flame too much no need to comment maybe others can help . also ur saying its so easy . ur just coming here to comment and flame and get out . so please Quit Hf . (Feb 6, 2017 10:30 AM)Ninja Wrote: I can assure you that that problem is the easiest to solve. And I can tell you don't have much knowledge in programming. I am wondering how much of your 'main rat' you copied. Public Clients As New List(Of Integer) its really easy to handle with integers .. SKT += 1 clients.add(skt) so ur adding an integer which is really izi ..also im just giving the shortest way if ur good in programming u will know what i mean anyways . now im doing a ( Public Clients As New List(Of TcpClient) which really confused me .. i dont want CODES i want ideas or hints thats it !! * - Ninja - Feb 6, 2017 (Feb 6, 2017 10:31 AM)xxdarklord65xx Wrote: lol dont judge while u dont know anything about me . I cant believe someone can be this stupid. Besides, if you read my first post I already gave you the solution. * - xxdarklord65xx - Feb 6, 2017 (Feb 6, 2017 10:40 AM)Ninja Wrote: I cant believe someone can be this stupid. Besides, if you read my first post I already gave you the solution. ur solution is insulting i cant see any solution .. idk how the forum is allowing ppl like u .. NOTE : remove ur fake experience 3 years programming . it just makes me laugh on u . :( * - Ninja - Feb 6, 2017 (Feb 6, 2017 10:43 AM)xxdarklord65xx Wrote: ur solution is insulting i cant see any solution .. idk how the forum is allowing ppl like u .. NOTE : remove ur fake experience 3 years programming . it just makes me laugh on u . :( I edited it a bit. That is the most I am helping you. And thanks for making me laugh. EDIT: ![]() oh boy... * - xxdarklord65xx - Feb 6, 2017 (Feb 6, 2017 10:45 AM)Ninja Wrote: I edited it a bit. That is the most I am helping you. i solved it ! . i made a new collection and i have added the client and key is the integer so by that i can get the client by the key so easily and try to be more good with people before judging there skills without knowing them. * - HFDone - Feb 6, 2017 what about List IndexOf Client * - xxdarklord65xx - Feb 6, 2017 (Feb 6, 2017 11:20 AM)HFDone Wrote: what about List IndexOf Client true . i was thinking about it . but i made a new function to get the client the Collection Class offers an element called " Item " . which u can get the item by the index or the key for example Return Client.Item(0 / key ).ToString() * - Ninja - Feb 6, 2017 (Feb 6, 2017 10:53 AM)xxdarklord65xx Wrote: i solved it ! . i made a new collection and i have added the client and key is the integer so by that i can get the client by the key so easily ..? It seems like every part where I help you you purposely ignore and the parts where I scold at you you can actually understand. I helped you twice, even elaborated my solution to your problem more for you, and still you are the one to give me shit more than I give you shit. * - xxdarklord65xx - Feb 6, 2017 (Feb 6, 2017 11:24 AM)Ninja Wrote: ..? lsn .. stop EDITING UR ANSWERS POST .. second thing It seems you don't have much knowledge in programming so I suggest you refrain from creating a RAT anytime soon. i really dont know who said that ? like ur the only one here who got the knowledge .. who r u to judge and say u dont have much programming knowledge .. I can assure you that that problem is the easiest to solve. And I can tell you don't have much knowledge in programming. I am wondering how much of your 'main rat' you copied. insulting and flaming .. is this the way to help ? i just asked a question .. and u dont have the right to flame ,insult and judge my main rat copied .. im assure ur talking about ur self . I cant believe someone can be this stupid. Besides, if you read my first post I already gave you the solution. at last .. no one here is the stupid only you and am again saying stop editing ur posts and Stop trying to act like helpful while ur a person who is a arrogance .. grow up my mate * - Ninja - Feb 6, 2017 (Feb 6, 2017 11:35 AM)xxdarklord65xx Wrote: lsn .. stop EDITING UR ANSWERS POST .. You cant even retrieve items from a collection yet claim to be able to program a RAT? That is like saying you can do a race in a car without operating the gas pedal. * - xxdarklord65xx - Feb 6, 2017 (Feb 6, 2017 11:54 AM)Ninja Wrote: You cant even retrieve items from a collection yet claim to be able to program a RAT? dude remove ur experience thing To retrieve an item from a collection Use the Item property and specify the item by either its Index or its Key. from Microsoft . |