Click here to Skip to main content
15,899,007 members
Home / Discussions / C#
   

C#

 
GeneralBackgroundWorker selecting from database Pin
Gareth H27-Mar-08 9:23
Gareth H27-Mar-08 9:23 
GeneralRe: BackgroundWorker selecting from database Pin
Luc Pattyn27-Mar-08 9:27
sitebuilderLuc Pattyn27-Mar-08 9:27 
GeneralRe: BackgroundWorker selecting from database Pin
Gareth H27-Mar-08 9:29
Gareth H27-Mar-08 9:29 
QuestionWhy? Pin
Marc Clifton27-Mar-08 9:04
mvaMarc Clifton27-Mar-08 9:04 
AnswerRe: Why? Pin
Luc Pattyn27-Mar-08 9:32
sitebuilderLuc Pattyn27-Mar-08 9:32 
GeneralRe: Why? Pin
half-life27-Mar-08 9:57
half-life27-Mar-08 9:57 
AnswerRe: Why? Pin
darkelv27-Mar-08 14:08
darkelv27-Mar-08 14:08 
QuestionSubclassing Socket Pin
Echilon27-Mar-08 8:44
Echilon27-Mar-08 8:44 
I'm trying to use sockets to create a proxy connection to a server. The whole thing worked perfectly until I tried to add a custom class to deal with the proxy (authentication etc). I have two sockets, ListeningSocket and DataSocket.

The problem is that I can't see to get listeningsocket to accept datasocket as a ProxySocket, only as a standard socket.

ProxySocket extends Socket, but I can't get it to work.

Here's the code:
In the head of the class
private ProxySocket dataSocket = null;<br />
private Socket listeningSocket = null; // used to accept active connections


The in the method to accept the connection.

listeningSocket = new Socket(AddressFamily.InterNetwork,   SocketType.Stream, ProtocolType.Tcp);<br />
listeningSocket.Bind(localEnd);<br />
listeningSocket.Listen(1);<br />
Socket dataSockTemp = listeningSocket.Accept(); // at this point, dataSockTemp is a connected Socket (shown via a breakboint)<br />
dataSocket = dataSockTemp as ProxySocket;<br />
listeningSocket.Close();


I'd really appreciate any help.
GeneralCursor dissappears on toggle. Pin
kumar.bs27-Mar-08 7:44
kumar.bs27-Mar-08 7:44 
QuestionHow to validate an XML string with an XSD file Pin
anto200527-Mar-08 7:10
anto200527-Mar-08 7:10 
GeneralRe: How to validate an XML string with an XSD file Pin
Gareth H27-Mar-08 7:44
Gareth H27-Mar-08 7:44 
GeneralRe: How to validate an XML string with an XSD file Pin
anto200527-Mar-08 22:14
anto200527-Mar-08 22:14 
GeneralRe: How to validate an XML string with an XSD file Pin
anto200527-Mar-08 22:23
anto200527-Mar-08 22:23 
GeneralRe: How to validate an XML string with an XSD file Pin
anto200527-Mar-08 22:34
anto200527-Mar-08 22:34 
Generalrunning a batch file from a command window launched from a c sharp program Pin
Xarzu27-Mar-08 6:04
Xarzu27-Mar-08 6:04 
GeneralRe: running a batch file from a command window launched from a c sharp program Pin
Giorgi Dalakishvili27-Mar-08 6:46
mentorGiorgi Dalakishvili27-Mar-08 6:46 
QuestionUnreachable code detected? Pin
Jasmine250127-Mar-08 5:21
Jasmine250127-Mar-08 5:21 
AnswerRe: Unreachable code detected? Pin
carbon_golem27-Mar-08 5:23
carbon_golem27-Mar-08 5:23 
GeneralRe: Unreachable code detected? Pin
Paul Conrad27-Mar-08 12:26
professionalPaul Conrad27-Mar-08 12:26 
AnswerRe: Unreachable code detected? Pin
Gareth H27-Mar-08 5:33
Gareth H27-Mar-08 5:33 
GeneralRe: Unreachable code detected? Pin
Jasmine250127-Mar-08 5:43
Jasmine250127-Mar-08 5:43 
GeneralRe: Unreachable code detected? Pin
phannon8627-Mar-08 5:48
professionalphannon8627-Mar-08 5:48 
GeneralRe: Unreachable code detected? Pin
Jasmine250127-Mar-08 5:54
Jasmine250127-Mar-08 5:54 
GeneralRe: Unreachable code detected? Pin
Luc Pattyn27-Mar-08 5:53
sitebuilderLuc Pattyn27-Mar-08 5:53 
AnswerRe: Unreachable code detected? Pin
Pete O'Hanlon27-Mar-08 5:51
mvePete O'Hanlon27-Mar-08 5:51 

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.