|
Hello XeoN-Kc, thanks for reply.
However my problem is not about receiving sent data. And the server application even configured to not receive anything. (on purpose, and its Receive buffer set to 0 ).
The point is that independently from how server is functioning, after successful Connect, client's first Socket.Send can "send" data array of any size and return immediately.
And second problem is that Socket.Close(n), never waits n seconds, even if there is a lot of data still to be send.
|
|
|
|
|
I discovered an interesting occurance today.
The below code creates a compile time error as expected...
<br />
int i = 5;<br />
<br />
label1.Text = i;<br />
But this code works fine...
<br />
int i = 5;<br />
<br />
label1.Text = "Test " + i;<br />
I had a look on Lutz Roeder's Reflector but couldn't find an obvious reason why this works.
Could someone enlighten me?
Mark.
|
|
|
|
|
I'm pretty sure the + operator is overloaded in the System.String class to convert your int value to a string, then concatenate the 2 together.
|
|
|
|
|
Hi,
in string + something if something is not a string, the compiler will
replace it by something.ToString() automatically.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Hi MarkBrock
Anything appended to a string is understood as string only by the compiler.
--Here 2 See Sharp--
I have not failed. I've just found 10,000 ways that won't work.
|
|
|
|
|
Interesting... I had initially thought it may have been something a little more synister deep under the covers of C#.
It's interesting that the C# developers decided to add functionality for converting non-string types if they are appended, but not for non-string types on their own.
Thanks for clearing that up guys.
Mark.
|
|
|
|
|
Hi I’m developing an internet ASP.NET application, which needs to interact with Microsoft Certification Authority Server, the
client (browser) will request a certificate to sign a file (word, pdf) later.
I'm really disoriented. Must I use CAPICOM? Signing in the server, and sending the certificate through an SSL connection? Is
there any class in the .Net Framework to interact with Certification Authority Service without CAPICOM or an external Api?
Where can i get a code example?
Regards
Sergio
|
|
|
|
|
Don't cross post. Read the forum rules.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
I've been using a COM component for audio recording/editing in my forms application. Now since it does not work on Vista I must find a replacement.
Can anyone here hint me of a component, COM or pure managed code that fulfils the following needs:
* Recording direct to disc to wav-files
* Converting to/from Wav and OGG
* Audio editor for editing the sound file
* Plying sound in OGG and Wav files.
The component I’ve been using is from NCTsoft (www.nctsoft.com - > the link almost dead )
Thankful for any hints
/S
|
|
|
|
|
i need help with a quick program i am making, how would i exit a block of code in an if statement for example
<br />
private void button1_Click(object sender, EventArgs e)<br />
{<br />
code to be run here<br />
if (x ==5)<br />
{<br />
run more code<br />
exit this block<br />
}<br />
more code here<br />
}<br />
this is hard to explain but there is no other way i can think of doing this i know in visual basic there was something called exit sub (or something similiar been a while) that would leave it
thanks in advance
|
|
|
|
|
xxmikexx wrote: this is hard to explain but there is no other way i can think of doing this i know in visual basic there was something
look at the C# language documentation for break and return however I strongly suggest you get a beginners book on C# or stick to Visual Basically Garbage.
led mike
|
|
|
|
|
ok thanks alot it is just for the class i am in currently we have to learn a language of our choice i just needed this bit for the chapter i was working on
|
|
|
|
|
I shake my head in dismay and sadness, then realize that at least some of us will have job security for a long time to come from the sounds of it.
only two letters away from being an asset
|
|
|
|
|
also i shake my head that there are aggorant people like you out there you didnt have to help me out and there was no need for that i am just trying to learn and not fail... i have a deadline... but i thank the first guy for the help
|
|
|
|
|
xxmikexx wrote: i am just trying to learn and not fail... i have a deadline
What did you do with the rest of the semester then?
only two letters away from being an asset
|
|
|
|
|
i have been learning and our semester just started...
|
|
|
|
|
xxmikexx wrote: i have been learning
I guess you are not a quick learner. You must be the first one.
what happens if you get better at programming, you add more x's to your name?
led mike
|
|
|
|
|
guess not i am damn sure you didnt learn how to program for yourself in 3 days i have spent alot of time trying to find websites were i can learn that are not blocked this is a new thing i can not do and all i know is i am definetly not coming back here for help any more a few people on here are very helpfull but just a couple people are incredibly annoying, i dont see what i did wrong i tried looking it up for my self then i figured i would ask for help and the reason i have the X's in my name is because i hate numbers in my name also this is the same name i have had on all the websites i go to one user name thats it so....
modified on Wednesday, March 19, 2008 5:03 PM
|
|
|
|
|
Wow you really got him fired up. I almost suffocated trying to read his post to me without taking a breath.
led mike
|
|
|
|
|
... do you have a problem reading in your head?
|
|
|
|
|
Guess he is struggling in his writing courses also. Punctuation is overrated anyway.
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: Punctuation is overrated anyway.
So is... oh never mind I don't have time to do the rest of that thought justice. It's beer thirty, CYA!
led mike
|
|
|
|
|
y are you such a douchebag?(Mark Nischalke) honestly why do people like you even exist
|
|
|
|
|
The equivalent to exit sub in C# is return, as in return to the books and learn the language before trying to write programs with it.
only two letters away from being an asset
|
|
|
|
|
i would by choice but for class i have to make programs as i go along...
but thanks for the help saved bundles of time
|
|
|
|