Click here to Skip to main content
15,889,281 members
Home / Discussions / C#
   

C#

 
AnswerRe: Using C# dll in VB? Pin
Rickard Andersson209-Dec-02 21:48
Rickard Andersson209-Dec-02 21:48 
GeneralRe: Using C# dll in VB? Pin
Kannan Kalyanaraman9-Dec-02 22:37
Kannan Kalyanaraman9-Dec-02 22:37 
GeneralRe: Using C# dll in VB? Pin
Rickard Andersson209-Dec-02 23:08
Rickard Andersson209-Dec-02 23:08 
GeneralRe: Using C# dll in VB? Pin
Kannan Kalyanaraman9-Dec-02 23:13
Kannan Kalyanaraman9-Dec-02 23:13 
GeneralRe: Using C# dll in VB? Pin
Rickard Andersson209-Dec-02 23:50
Rickard Andersson209-Dec-02 23:50 
GeneralRe: Using C# dll in VB? Pin
Kannan Kalyanaraman10-Dec-02 0:00
Kannan Kalyanaraman10-Dec-02 0:00 
AnswerRe: Using C# dll in VB? Pin
Kannan Kalyanaraman9-Dec-02 22:44
Kannan Kalyanaraman9-Dec-02 22:44 
GeneralQuestion on SocketOptionName.ReceiveTimeout Pin
yccheok9-Dec-02 17:50
yccheok9-Dec-02 17:50 
i obtain a socket through TcpListener using:
Socket mySocket = myListener.AcceptSocket() ;//myListener is TcpListener

sometimes, i realize that my program will halt at line:
int i = mySocket.Receive(bReceive,bReceive.Length,0) ;

hence, i was thinking to set a receive timeout option, my questions is
(1)is this the correct method
mySocket.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.ReceiveTimeout, 1000)

i put SocketOptionLevel as SocketOptionLevel.Tcp, is it correct?

(2)what will happen when the program come to line
int i = mySocket.Receive(bReceive,bReceive.Length,0) ;

and after 1000 miliseconds and still have not received anything. where will the program execution go?

thank you.

regards
yccheok



GeneralRe: Question on SocketOptionName.ReceiveTimeout Pin
grv57513-Dec-02 4:07
grv57513-Dec-02 4:07 
GeneralRunning Application In Another Process Without Showing Console Window Pin
yccheok9-Dec-02 17:49
yccheok9-Dec-02 17:49 
GeneralRe: Running Application In Another Process Without Showing Console Window Pin
Kannan Kalyanaraman9-Dec-02 22:47
Kannan Kalyanaraman9-Dec-02 22:47 
GeneralRe: Running Application In Another Process Without Showing Console Window Pin
Richard Deeming10-Dec-02 0:03
mveRichard Deeming10-Dec-02 0:03 
GeneralProblem with arraylist assignment Pin
djkno39-Dec-02 13:59
djkno39-Dec-02 13:59 
GeneralRe: Problem with arraylist assignment Pin
Rob Graham9-Dec-02 14:58
Rob Graham9-Dec-02 14:58 
GeneralRe: Problem with arraylist assignment Pin
djkno39-Dec-02 21:18
djkno39-Dec-02 21:18 
GeneralRe: Problem with arraylist assignment Pin
Burt Harris9-Dec-02 21:42
Burt Harris9-Dec-02 21:42 
GeneralRe: Problem with arraylist assignment Pin
James T. Johnson10-Dec-02 0:58
James T. Johnson10-Dec-02 0:58 
GeneralRe: Problem with arraylist assignment Pin
Richard Deeming10-Dec-02 0:13
mveRichard Deeming10-Dec-02 0:13 
GeneralRe: Problem with arraylist assignment Pin
djkno310-Dec-02 6:11
djkno310-Dec-02 6:11 
Generalgoto in C# Pin
afronaut9-Dec-02 11:05
afronaut9-Dec-02 11:05 
GeneralRe: goto in C# Pin
leppie9-Dec-02 11:30
leppie9-Dec-02 11:30 
GeneralRe: goto in C# Pin
Not Active9-Dec-02 13:14
mentorNot Active9-Dec-02 13:14 
GeneralRe: goto in C# Pin
ryancrawcour9-Dec-02 20:06
ryancrawcour9-Dec-02 20:06 
GeneralRe: goto in C# Pin
Christian Graus9-Dec-02 21:59
protectorChristian Graus9-Dec-02 21:59 
GeneralGet system information Pin
sammyh9-Dec-02 10:10
sammyh9-Dec-02 10:10 

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.