Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to create a process in windows service. in the OnStart() function that should connect
the system to the remote system using its IP and Port Number..
Posted
Comments
Sergey Alexandrovich Kryukov 25-Jan-11 2:48am    
OnStart actually happens after the service process is started. Do you want to create another one?! :-)
As to the connection to remote system, yes, it could be done from OnStart(), so what?
Indivara 25-Jan-11 2:51am    
I assumed he meant, "How do I create a process that connects to another system in OnStart() of a windows service".

My other job is reading tea leaves.
Gokulnath007 25-Jan-11 2:49am    
After the service starts, it should connect the remote system whose IP and Port is known.
Gokulnath007 25-Jan-11 2:52am    
SAKryukov.. Could you please explain how to connect the remote system.
with codes. or examples
Gokulnath007 25-Jan-11 3:06am    
Indivara.. you are correct.. thats what am looking for...

1 solution

 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 25-Jan-11 13:53pm    
Creating another process out of service? Hm... bad design idea, to say the least. Depending on what this process is supposed to do, can be different problems...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900