Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Segfaults with One container?
Re: Segfaults with One container? [message #23177 is a reply to message #23172] Wed, 23 September 2009 09:22 Go to previous messageGo to previous message
phirox is currently offline  phirox
Messages: 49
Registered: December 2007
Member
Thank you for your fast response, and as always it was right on. I think I have stared to long at the problem to notice it myself Smile

For future references the solution for me was to add the following code:

	s.Init();
	One<Socket::Data> data = new Socket::Data;
	s.Attach(data);


The reason for all of this; under *nix when you fork() or reload your own or other program with exec() all sockets are inherited. So for example by just adding
data->socket = 3;
in the above example you can continue working on it without interruption. Maybe an idea to add this feature as a function OldSocket/OpenedSocket besides the existing ClientSocket and ServerSocket?

[Updated on: Wed, 23 September 2009 13:45]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Dockmenu Draw
Next Topic: How to set a global (system) keyboard hook?
Goto Forum:
  


Current Time: Tue May 14 12:51:52 CEST 2024

Total time taken to generate the page: 0.02719 seconds