471,337 Members | 1,177 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Stopping NET Remoting Server

I have a windows service that is actually a .NET Remoting Server, and in the
OnStart I start up the Remoting server for accepting connections from a
client app. In the OnStop event of the service, how can I turn off the .NET
Remote server so it no longer accepts connections? Plus, disconnectes
clients currently connected?

Here's my OnStart:

protected override void OnStart(string[] args)
{
TcpChannel chan = new TcpChannel(65100);
ChannelServices.RegisterChannel(chan);

Type oAPI = Type.GetType("pFastShip_API_Server.pFastShipAPI");
RemotingConfiguration.RegisterWellKnownServiceType (oAPI, "APIEndPoint",
WellKnownObjectMode.SingleCall);
}
Aug 4 '05 #1
0 958

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Daniel O'Brien | last post: by
reply views Thread by JSheble | last post: by
5 posts views Thread by chris.hearson | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.