-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: How to connect to server? #206
Comments
Yes the comm. protocol dll should also be loaded into the client. There are two ways to start a client from PS:
|
Ok, what i managed to do so far is the following.
public class SimpleServer
{
public void Start()
{
TrinityServer srv = new TrinityServer();
srv.RegisterCommunicationModule<TrinityClientModule>();
srv.RegisterCommunicationModule<SimpleCommunicationModule.SimpleCommunicationModule>();
srv.Start();
}
}
TrinityClient cl = new TrinityClient("localhost:5304");
cl.RegisterCommunicationModule<SimpleCommunicationModule.SimpleCommunicationModule>();
cl.Start(); So it seems i now able to connect. But is this a correct way? Will it change? But i did not try to put any data into the server yet :). Will try soon. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello colleagues, seems like i missed in all this :)
Say i've got a TSL, which defines a simple protocol and graph nodes and two messages - to add and get a node. I generated a dll file out of it and able to load it into a server instance. So i made a separate process to host this server instance.
Now i want to have a simple powershell client, which will be able to send commands to a server and receive output. So the first question is - how do i connect to a server. where do i specify server ip or host name and port? how do i authenticate against it? do i need to load the same dll into a client?
Thanks.
The text was updated successfully, but these errors were encountered: