2 using System.Collections.Generic;
9 public string username =
"Cindy", password =
"Testpassword", serverName =
"corelink.hpc.nyu.edu";
13 private bool debug =
true;
29 bool status = control.
login(credentials);
33 Debug.LogError(
"ERROR: Authentication failed");
36 foreach (GameObject g
in senderObjects)
41 foreach (GameObject g
in receiverObjects)
47 public void startOffline(
string username,
string password,
string serverName)
53 bool status = control.
login(credentials);
57 Debug.LogError(
"ERROR: Authentication failed");
60 foreach (GameObject g
in senderObjects)
65 foreach (GameObject g
in receiverObjects)
75 private void OnDestroy()
List< GameObject > receiverObjects
The Config class is filled once at the beginning of the unity session and contains important server i...
List< GameObject > senderObjects
void connect(Config config)
Connects with client at the specified Port and IP number. Throws an error if something goes wrong ...
Parent class to custom sender scripts that will be attached to GameObjects. Several of these can be i...
void exit()
Disconnects all available streamIDs and stops the WebSocket/UDP Sockets
Contains user information to authenticate with Corelink. The username and password are sent to the se...
Parent class to custom receiver scripts that will be attached to GameObjects. Several of these can be...
void startOffline(string username, string password, string serverName)
Singleton class to communicate with Corelink.
bool login(Credentials credentials)
Logs into the server after connecting after verifying login credentials like username,password and token defined in the 'login' function.