Click here to Skip to main content
15,894,180 members
Home / Discussions / C#
   

C#

 
GeneralRe: Overriding the DefaultValueAttribute of an inherited property Pin
DaveyM6913-Aug-12 1:27
professionalDaveyM6913-Aug-12 1:27 
QuestionA simple proxy server in C# Pin
Prahlad Yeri12-Aug-12 1:41
Prahlad Yeri12-Aug-12 1:41 
AnswerRe: A simple proxy server in C# Pin
Richard Andrew x6412-Aug-12 4:17
professionalRichard Andrew x6412-Aug-12 4:17 
GeneralRRe: A simple proxy server in C# Pin
Prahlad Yeri12-Aug-12 5:07
Prahlad Yeri12-Aug-12 5:07 
GeneralRe: RRe: A simple proxy server in C# Pin
Richard Andrew x6412-Aug-12 5:25
professionalRichard Andrew x6412-Aug-12 5:25 
GeneralRe: RRe: A simple proxy server in C# Pin
Prahlad Yeri12-Aug-12 5:31
Prahlad Yeri12-Aug-12 5:31 
GeneralRe: RRe: A simple proxy server in C# Pin
Richard Andrew x6412-Aug-12 5:36
professionalRichard Andrew x6412-Aug-12 5:36 
GeneralRe: RRe: A simple proxy server in C# Pin
Prahlad Yeri12-Aug-12 6:18
Prahlad Yeri12-Aug-12 6:18 
Thanks. The Poll() method really helped. I'm now polling for three seconds before receiving for both client and the server. However, there is still some logical issue with my code:

C#
if (client.Poll(3000 * 1000, SelectMode.SelectRead))
{
    rec = client.Receive(buffer, buffer.Length, SocketFlags.None);
    Debug.Print("RECEIVED FROM CLIENT: " + Encoding.ASCII.GetString(buffer, 0, rec));

    sent = webserver.Send(buffer, rec, SocketFlags.None);
    Debug.Print("SENT TO WEBSERVER[" + sent.ToString() + "]: " + Encoding.ASCII.GetString(buffer, 0, rec));
    transferred += rec;
}
else
{
    Debug.Print("No data polled from client");
}


As I said, one logical fault still remains. In the proxy client machine, I'm able to open google.com. Then performed a search that also went fine. However, when I click on a search result, the proxy again gives me google.com!! What am I missing?
QuestionTracking system Pin
kipchirchir11-Aug-12 20:52
kipchirchir11-Aug-12 20:52 
AnswerRe: Tracking system Pin
OriginalGriff11-Aug-12 21:17
mveOriginalGriff11-Aug-12 21:17 
AnswerRe: Tracking system Pin
Richard MacCutchan11-Aug-12 21:46
mveRichard MacCutchan11-Aug-12 21:46 
QuestionXDocument.Save() reversing attribute order Pin
Nukeman3311-Aug-12 2:03
Nukeman3311-Aug-12 2:03 
QuestionRe: XDocument.Save() reversing attribute order Pin
Eddy Vluggen11-Aug-12 2:22
professionalEddy Vluggen11-Aug-12 2:22 
AnswerRe: XDocument.Save() reversing attribute order Pin
Dave Kreskowiak11-Aug-12 4:13
mveDave Kreskowiak11-Aug-12 4:13 
AnswerRe: XDocument.Save() reversing attribute order Pin
jschell11-Aug-12 7:35
jschell11-Aug-12 7:35 
AnswerRe: XDocument.Save() reversing attribute order Pin
Abhinav S11-Aug-12 18:59
Abhinav S11-Aug-12 18:59 
Questionhow to create multiple countdown timer in one page in asp.net Pin
Sumit Malviya10-Aug-12 23:05
Sumit Malviya10-Aug-12 23:05 
AnswerRe: how to create multiple countdown timer in one page in asp.net Pin
Eddy Vluggen10-Aug-12 23:51
professionalEddy Vluggen10-Aug-12 23:51 
QuestionSQL + C# Pin
jojoba201110-Aug-12 21:42
jojoba201110-Aug-12 21:42 
AnswerRe: SQL + C# Pin
dan!sh 10-Aug-12 22:13
professional dan!sh 10-Aug-12 22:13 
QuestionRe: SQL + C# Pin
jojoba201111-Aug-12 18:01
jojoba201111-Aug-12 18:01 
Questionoutput App.Config to DLL Pin
Jassim Rahma10-Aug-12 12:25
Jassim Rahma10-Aug-12 12:25 
AnswerRe: output App.Config to DLL Pin
Wes Aday10-Aug-12 13:59
professionalWes Aday10-Aug-12 13:59 
GeneralRe: output App.Config to DLL Pin
Jassim Rahma11-Aug-12 4:32
Jassim Rahma11-Aug-12 4:32 
GeneralRe: output App.Config to DLL Pin
Wes Aday11-Aug-12 4:54
professionalWes Aday11-Aug-12 4:54 

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.