Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
GeneralRe: Lets see Heath answer this one then! Pin
Martin Cross21-Nov-03 4:31
Martin Cross21-Nov-03 4:31 
QuestionHow to avoid menu on RMouse button Pin
A.Wegierski20-Nov-03 20:38
A.Wegierski20-Nov-03 20:38 
AnswerRe: How to avoid menu on RMouse button Pin
Heath Stewart21-Nov-03 3:58
protectorHeath Stewart21-Nov-03 3:58 
GeneralRe: How to avoid menu on RMouse button Pin
A.Wegierski21-Nov-03 17:44
A.Wegierski21-Nov-03 17:44 
GeneralRe: How to avoid menu on RMouse button Pin
Heath Stewart22-Nov-03 11:14
protectorHeath Stewart22-Nov-03 11:14 
GeneralBlobbing Pin
MitchDG20-Nov-03 20:15
MitchDG20-Nov-03 20:15 
GeneralRe: Blobbing Pin
MitchDG20-Nov-03 21:43
MitchDG20-Nov-03 21:43 
Generalsocket listening error Pin
jtmtv1820-Nov-03 17:21
jtmtv1820-Nov-03 17:21 
i had wrote a set of class's for sending serialized objects over the net using sockets not to long ago..it worked perfectly then. I wrote a few programs (chat/file sharing) using the classes and they also worked perfectly. Just tonight i went back to use it agian with some new idea's and i have noticed i cant get my sockets to listen all of a sudden. i traced the error down to when the socket calls BeginAccept (the listening socket which is already done doing the setup to be in the listening state). I dont know if this is a code problem because i know for sure i havent touched the code when i used it, i just used the compiled dll's.I tryed uninstalling my old fire wall to see if thats the problem *zone alarm* but it didnt seem to fix it. The sending portion seems to work but the error only lies when i try to call begin accept intialy, This happens so when a connection does come in it is ready to accept it.here is the code with the error.

<br />
IPEndPoint ipe = new IPEndPoint(GetMachineIPAddress(),39888);<br />
					MainListener= new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);<br />
					MainListener.Bind(ipe);<br />
					MainListener.Listen(300);<br />
					Thread.Sleep(10);<br />
//code excutes fine until the line below. which locks the thread indefinitly.<br />
					MainListener.BeginAccept(new AsyncCallback(MainListenerBeginAccept),MainListener);				<br />


if anyone wants to see the full code i would send it...its large and uses compression/serializing/encryption/ect/bla bla bla.

thanks alot for your help with this.

Jesse M

The Code Project Is Your Friend...
GeneralRe: socket listening error Pin
Ronny Andersson21-Nov-03 1:12
Ronny Andersson21-Nov-03 1:12 
GeneralRe: socket listening error Pin
jtmtv1821-Nov-03 8:08
jtmtv1821-Nov-03 8:08 
GeneralRe: socket listening error Pin
Ronny Andersson22-Nov-03 1:41
Ronny Andersson22-Nov-03 1:41 
GeneralRe: socket listening error Pin
jtmtv1822-Nov-03 3:02
jtmtv1822-Nov-03 3:02 
GeneralRe: socket listening error Pin
jtmtv1822-Nov-03 3:10
jtmtv1822-Nov-03 3:10 
QuestionDeserializing in a different assembly... how to? Pin
Carl Mercier20-Nov-03 16:15
Carl Mercier20-Nov-03 16:15 
AnswerRe: Deserializing in a different assembly... how to? Pin
Heath Stewart21-Nov-03 4:03
protectorHeath Stewart21-Nov-03 4:03 
GeneralRe: Deserializing in a different assembly... how to? Pin
Carl Mercier21-Nov-03 4:08
Carl Mercier21-Nov-03 4:08 
GeneralRe: Deserializing in a different assembly... how to? Pin
Heath Stewart21-Nov-03 5:35
protectorHeath Stewart21-Nov-03 5:35 
GeneralRe: Deserializing in a different assembly... how to? Pin
Carl Mercier21-Nov-03 5:40
Carl Mercier21-Nov-03 5:40 
GeneralRe: Deserializing in a different assembly... how to? Pin
Heath Stewart21-Nov-03 6:37
protectorHeath Stewart21-Nov-03 6:37 
GeneralRe: Deserializing in a different assembly... how to? Pin
Carl Mercier21-Nov-03 18:27
Carl Mercier21-Nov-03 18:27 
GeneralRe: Deserializing in a different assembly... how to? Pin
Heath Stewart22-Nov-03 11:18
protectorHeath Stewart22-Nov-03 11:18 
GeneralRe: Deserializing in a different assembly... how to? Pin
gokselm23-Nov-03 8:35
gokselm23-Nov-03 8:35 
GeneralRe: Deserializing in a different assembly... how to? Pin
Heath Stewart24-Nov-03 4:30
protectorHeath Stewart24-Nov-03 4:30 
GeneralRe: Deserializing in a different assembly... how to? Pin
gokselm24-Nov-03 8:44
gokselm24-Nov-03 8:44 
GeneralRe: Deserializing in a different assembly... how to? Pin
Heath Stewart24-Nov-03 9:43
protectorHeath Stewart24-Nov-03 9:43 

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.