Click here to Skip to main content
15,920,633 members
Home / Discussions / C#
   

C#

 
GeneralRe: Creat ascii font Pin
Guffa19-Mar-08 23:05
Guffa19-Mar-08 23:05 
GeneralGeneric data fetch with IDataReader [modified] Pin
RubensFarias19-Mar-08 16:37
RubensFarias19-Mar-08 16:37 
GeneralRe: Generic data fetch with IDataReader Pin
mmikey719-Mar-08 22:16
mmikey719-Mar-08 22:16 
GeneralRe: Generic data fetch with IDataReader Pin
RubensFarias20-Mar-08 0:47
RubensFarias20-Mar-08 0:47 
GeneralRe: Generic data fetch with IDataReader Pin
mmikey720-Mar-08 5:34
mmikey720-Mar-08 5:34 
GeneralRe: Generic data fetch with IDataReader Pin
RubensFarias23-Mar-08 12:50
RubensFarias23-Mar-08 12:50 
GeneralRe: Generic data fetch with IDataReader Pin
mmikey723-Mar-08 13:07
mmikey723-Mar-08 13:07 
GeneralSome issues with Socket class behavior. Pin
Jack04519-Mar-08 14:30
Jack04519-Mar-08 14:30 
Hello.

Please help me find out if its normal behavior of Socket class.

issue#1
- After connecting, first call to Socket.Send always returns immediately.
I know that Send puts data in buffer first, but not megabytes, right ?

Code:
Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);<br />
<br />
s.Connect("61.213.43.1", 30);<br />
<br />
//Sending returns immediately. <br />
//bData can be huge (tested with ~10 mb ) <br />
//and bytesSent will always contain bData.Length <br />
int bytesSent = s.Send(bData, bData.Length, SocketFlags.None); <br />
<br />
s.Shutdown(SocketShutdown.Both);<br />
s.Close();


This code executes immediately. Including Shutdown & Close. This leads to issue #2:
- Socket.Close never blocks (even if MSDN says is should)

Code same as above but:
s.Close(9999);
or
s.LingerState = new LingerOption(true, 9999);<br />
s.Close(9999);


Please confirm such behavior, or suggest what might be wrong and how it works for you. Its very important to me, thank you in advance.
GeneralRe: Some issues with Socket class behavior. Pin
XeoN-Kc19-Mar-08 21:35
XeoN-Kc19-Mar-08 21:35 
GeneralRe: Some issues with Socket class behavior. Pin
Jack04520-Mar-08 5:13
Jack04520-Mar-08 5:13 
GeneralLabel.Text property Pin
MarkB77719-Mar-08 12:23
MarkB77719-Mar-08 12:23 
GeneralRe: Label.Text property Pin
J$19-Mar-08 13:56
J$19-Mar-08 13:56 
GeneralRe: Label.Text property Pin
Luc Pattyn19-Mar-08 16:21
sitebuilderLuc Pattyn19-Mar-08 16:21 
GeneralRe: Label.Text property Pin
SeeSharp19-Mar-08 20:20
SeeSharp19-Mar-08 20:20 
GeneralRe: Label.Text property Pin
MarkB77719-Mar-08 20:36
MarkB77719-Mar-08 20:36 
QuestionUsing Certificates with c# and ASP.NET Pin
sfog19-Mar-08 11:00
sfog19-Mar-08 11:00 
GeneralCross post - please ignore Pin
pmarfleet19-Mar-08 11:15
pmarfleet19-Mar-08 11:15 
GeneralSound editing component Pin
Staffan Sjöstedt19-Mar-08 9:53
Staffan Sjöstedt19-Mar-08 9:53 
Generalvisual C# 2005 exiting Pin
xxmikexx19-Mar-08 7:42
xxmikexx19-Mar-08 7:42 
GeneralRe: visual C# 2005 exiting Pin
led mike19-Mar-08 7:49
led mike19-Mar-08 7:49 
GeneralRe: visual C# 2005 exiting Pin
xxmikexx19-Mar-08 7:52
xxmikexx19-Mar-08 7:52 
GeneralRe: visual C# 2005 exiting Pin
Not Active19-Mar-08 8:08
mentorNot Active19-Mar-08 8:08 
GeneralRe: visual C# 2005 exiting Pin
xxmikexx19-Mar-08 8:29
xxmikexx19-Mar-08 8:29 
GeneralRe: visual C# 2005 exiting Pin
Not Active19-Mar-08 8:35
mentorNot Active19-Mar-08 8:35 
GeneralRe: visual C# 2005 exiting Pin
xxmikexx19-Mar-08 10:11
xxmikexx19-Mar-08 10:11 

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.