Click here to Skip to main content
15,886,676 members
Home / Discussions / C#
   

C#

 
AnswerRe: what is the use of Httphandlers Pin
Gary Stafford13-Jun-09 8:19
Gary Stafford13-Jun-09 8:19 
QuestionBinding two projects into one exe Pin
KIDYA13-Jun-09 1:22
KIDYA13-Jun-09 1:22 
AnswerRe: Binding two projects into one exe Pin
Dave Kreskowiak13-Jun-09 2:11
mveDave Kreskowiak13-Jun-09 2:11 
QuestionI created Public Assembly by providing strong name, then what is that use still i need to give reference of that assembly. Pin
Shaik Haneef13-Jun-09 1:14
Shaik Haneef13-Jun-09 1:14 
AnswerRe: I created Public Assembly by providing strong name, then what is that use still i need to give reference of that assembly. Pin
Colin Angus Mackay13-Jun-09 3:38
Colin Angus Mackay13-Jun-09 3:38 
QuestionI created Public Assembly by providing strong name, then what is that use still i need to give reference of that assembly. Then what is the use of Global assembly ? How i utilize i know how to make the Assembly as Global but i don't know how to use, Pin
Shaik Haneef13-Jun-09 1:14
Shaik Haneef13-Jun-09 1:14 
QuestionGenerating Crystal Reports from class objects Pin
Andy Rama12-Jun-09 23:53
Andy Rama12-Jun-09 23:53 
QuestionSending Multiple Network Streams Simultaneously... Pin
Trapper-Hell12-Jun-09 23:50
Trapper-Hell12-Jun-09 23:50 
I am working on a RAT (Remote Administration Tool)... Below is an explanation and the question... If you'd like you can skip the rest and read the question Smile | :)

[Program Explanation]
A program working on the Admin-side sends a command to the Client-side program (through TCP/IP), and after interpreting the instruction, it does the requested action.

For example, if the Admin-side sends "list drives", the Client-side program interprets the command and sends a string[] back to the Admin as a byte[]... The admin-side would convert the byte[] to a string[] That's no big deal...
[End of Program Explanation]



[Question]
The question is... Can I send multiple Network Streams at one time, and each are separately recognized by the receiving-end? This is important if more than one task are performed at one time - such as getting a file and keyboard logs... (Since the conversion at the receiving-end needs to be made for the relevant response...

Last I tried, I sent two different Network Streams exactly after each other and the receiving end had thought that it was the same stream!! - It resulted in total chaos Wink | ;)
[End of Question]




[Program Coding]
To send a command, there are two important methods

public byte[] Serialize(object oSerialize)
        {
            ms = new MemoryStream();
            bf = new BinaryFormatter();
            bf.Serialize(ms, oSerialize);
            return ms.ToArray();
        }


public byte[] Serialize(object oSerialize)
        {
            ms = new MemoryStream();
            bf = new BinaryFormatter();
            bf.Serialize(ms, oSerialize);
            return ms.ToArray();
        }


On the receiving end, a similar system is used, being Receive and DeSerialize...
[End of Program Coding]
AnswerRe: Sending Multiple Network Streams Simultaneously... Pin
Manas Bhardwaj13-Jun-09 2:08
professionalManas Bhardwaj13-Jun-09 2:08 
QuestionHow to communicate between two exe's in c#? Pin
svt gdwl12-Jun-09 23:32
svt gdwl12-Jun-09 23:32 
AnswerRe: How to communicate between two exe's in c#? Pin
Rajesh R Subramanian12-Jun-09 23:36
professionalRajesh R Subramanian12-Jun-09 23:36 
Questionaccess controls in other applications from .NET (C#) Pin
Member 628997612-Jun-09 22:46
Member 628997612-Jun-09 22:46 
AnswerRe: access controls in other applications from .NET (C#) Pin
Dave Kreskowiak13-Jun-09 2:17
mveDave Kreskowiak13-Jun-09 2:17 
GeneralRe: access controls in other applications from .NET (C#) Pin
hot_ice14-Jun-09 21:33
hot_ice14-Jun-09 21:33 
GeneralRe: access controls in other applications from .NET (C#) Pin
Dave Kreskowiak15-Jun-09 0:52
mveDave Kreskowiak15-Jun-09 0:52 
AnswerRe: access controls in other applications from .NET (C#) Pin
Luc Pattyn13-Jun-09 3:35
sitebuilderLuc Pattyn13-Jun-09 3:35 
GeneralRe: access controls in other applications from .NET (C#) Pin
hot_ice14-Jun-09 21:38
hot_ice14-Jun-09 21:38 
GeneralRe: access controls in other applications from .NET (C#) Pin
Dave Kreskowiak15-Jun-09 0:51
mveDave Kreskowiak15-Jun-09 0:51 
Questionproggram Pin
jalicno12-Jun-09 22:38
jalicno12-Jun-09 22:38 
AnswerRe: proggram Pin
OriginalGriff12-Jun-09 23:07
mveOriginalGriff12-Jun-09 23:07 
GeneralRe: proggram Pin
Rob Philpott12-Jun-09 23:18
Rob Philpott12-Jun-09 23:18 
GeneralRe: proggram Pin
Dave Kreskowiak13-Jun-09 2:18
mveDave Kreskowiak13-Jun-09 2:18 
GeneralRe: proggram Pin
Rajesh R Subramanian13-Jun-09 3:00
professionalRajesh R Subramanian13-Jun-09 3:00 
GeneralRe: proggram Pin
Luc Pattyn13-Jun-09 3:37
sitebuilderLuc Pattyn13-Jun-09 3:37 
GeneralRe: proggram Pin
Rajesh R Subramanian14-Jun-09 1:43
professionalRajesh R Subramanian14-Jun-09 1:43 

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.