Exemplo n.º 1
0
 public PSTMsgParserData(string pstfile, NodeID entryid, string exportdir)
 {
     this.SaveAsTypes = SaveAsType.Msg; // | SaveAsType.Xml | SaveAsType.Html;
     this.SaveAttachments = false;
     if(!string.IsNullOrEmpty(pstfile))
         this.PSTFile = pstfile;
     this.ExportDirectory = exportdir;
     this.SaveEmbeddedMsgs = false;
     this.FolderPath = string.Empty;
     this.Pst2MsgCompatible = false;
 }
Exemplo n.º 2
0
 public PSTMsgParser(string pstfile, NodeID entryid, string exportdir)
 {
     this.SaveAsTypes = SaveAsType.Msg; // | SaveAsType.Xml | SaveAsType.Html;
     this.SaveAttachments = false;
     this.ProcessedMsgs = new List<NodeID>();
     this.PSTFile = pstfile;
     this.ExportDirectory = exportdir;
     this.SaveEmbeddedMsgs = false;
     this.ParentMsg = "0";
     this.FolderPath = string.Empty;
     this.Pst2MsgCompatible = false;
 }
 public override void OnMatchCreate(CreateMatchResponse response)
 {
     base.OnMatchCreate(response);
     _networkID = response.networkId;
     _nodeID = response.nodeId;
 }
 public void CustomOnMatchJoined(JoinMatchResponse response)
 {
     OnMatchJoined(response);
     _networkID = response.networkId;
     _nodeID = response.nodeId;
 }
Exemplo n.º 5
0
 public NodeStatement(NodeID nodeID)
 {
     this.nodeID = nodeID;
 }
Exemplo n.º 6
0
 public NodeStatement(string id)
 {
     nodeID = new NodeID(id);
 }
Exemplo n.º 7
0
 public static void GetConnectionInfo(int hostId, int connectionId, out string address, out int port, out NetworkID network, out NodeID dstNode, out byte error)
 {
     ulong network1;
       ushort dstNode1;
       address = NetworkTransport.GetConnectionInfo(hostId, connectionId, out port, out network1, out dstNode1, out error);
       network = (NetworkID) network1;
       dstNode = (NodeID) dstNode1;
 }
Exemplo n.º 8
0
 public static int ConnectToNetworkPeer(int hostId, string address, int port, int exceptionConnectionId, int relaySlotId, NetworkID network, SourceID source, NodeID node, out byte error)
 {
     return NetworkTransport.ConnectToNetworkPeer(hostId, address, port, exceptionConnectionId, relaySlotId, network, source, node, 0, 0.0f, out error);
 }
Exemplo n.º 9
0
 public static extern int ConnectToNetworkPeer(int hostId, string address, int port, int exceptionConnectionId, int relaySlotId, NetworkID network, SourceID source, NodeID node, int bytesPerSec, float bucketSizeFactor, out byte error);
Exemplo n.º 10
0
 public static extern void ConnectAsNetworkHost(int hostId, string address, int port, NetworkID network, SourceID source, NodeID node, out byte error);
Exemplo n.º 11
0
 /// <summary>
 /// 
 /// <para>
 /// UnderlyingModel.MemDoc.MemDocModelStarts a server using a relay server. This is the manual way of using the relay server, as the regular NetworkServer.Connect() will automatically  use the relay server if a UMatch exists.
 /// </para>
 /// 
 /// </summary>
 /// <param name="relayIp">Relay server IP Address.</param><param name="relayPort">Relay server port.</param><param name="netGuid">GUID of the network to create.</param><param name="sourceId">This server's sourceId.</param><param name="nodeId">The node to join the network with.</param>
 public static void ListenRelay(string relayIp, int relayPort, NetworkID netGuid, SourceID sourceId, NodeID nodeId)
 {
     NetworkServer.instance.InternalListenRelay(relayIp, relayPort, netGuid, sourceId, nodeId, 0);
 }
Exemplo n.º 12
0
 internal void InternalListenRelay(string relayIp, int relayPort, NetworkID netGuid, SourceID sourceId, NodeID nodeId, int listenPort)
 {
     if (this.m_hostTopology == null)
       {
     ConnectionConfig defaultConfig = new ConnectionConfig();
     int num1 = (int) defaultConfig.AddChannel(QosType.Reliable);
     int num2 = (int) defaultConfig.AddChannel(QosType.Unreliable);
     this.m_hostTopology = new HostTopology(defaultConfig, 8);
       }
       this.m_ServerId = NetworkTransport.AddHost(this.m_hostTopology, listenPort);
       if (LogFilter.logDebug)
     Debug.Log((object) ("Server Host Slot Id: " + (object) this.m_ServerId));
       NetworkServer.Update();
       byte error;
       NetworkTransport.ConnectAsNetworkHost(this.m_ServerId, relayIp, relayPort, netGuid, sourceId, nodeId, out error);
       this.m_RelaySlotId = 0;
       if (LogFilter.logDebug)
     Debug.Log((object) ("Relay Slot Id: " + (object) this.m_RelaySlotId));
       if ((int) error != 0)
     Debug.Log((object) ("ListenRelay Error: " + (object) error));
       NetworkServer.s_Active = true;
       this.m_MessageHandlers.RegisterHandlerSafe((short) 35, new NetworkMessageDelegate(this.OnClientReadyMessage));
       this.m_MessageHandlers.RegisterHandlerSafe((short) 5, new NetworkMessageDelegate(this.OnCommandMessage));
       this.m_MessageHandlers.RegisterHandlerSafe((short) 6, new NetworkMessageDelegate(NetworkTransform.HandleTransform));
       this.m_MessageHandlers.RegisterHandlerSafe((short) 40, new NetworkMessageDelegate(NetworkAnimator.OnAnimationServerMessage));
       this.m_MessageHandlers.RegisterHandlerSafe((short) 41, new NetworkMessageDelegate(NetworkAnimator.OnAnimationParametersServerMessage));
       this.m_MessageHandlers.RegisterHandlerSafe((short) 42, new NetworkMessageDelegate(NetworkAnimator.OnAnimationTriggerServerMessage));
 }
Exemplo n.º 13
0
 public static void GetConnectionInfo(int hostId, int connectionId, out string address, out int port, out NetworkID network, out NodeID dstNode, out byte error)
 {
     ulong num;
     ushort num2;
     address = GetConnectionInfo(hostId, connectionId, out port, out num, out num2, out error);
     network = (NetworkID) num;
     dstNode = (NodeID) num2;
 }
Exemplo n.º 14
0
 public static void Encode(IByteWriter stream, NodeID  encodedNodeID)
 {
     PublicKey.Encode(stream, encodedNodeID.InnerValue);
 }
Exemplo n.º 15
0
 public static NodeID Decode(IByteReader stream)
 {
     NodeID decodedNodeID = new NodeID();
       decodedNodeID.InnerValue = PublicKey.Decode(stream);
     return decodedNodeID;
 }
Exemplo n.º 16
0
 private void InternalListenRelay(string relayIp, int relayPort, NetworkID netGuid, SourceID sourceId, NodeID nodeId)
 {
     this.m_SimpleServerSimple.ListenRelay(relayIp, relayPort, netGuid, sourceId, nodeId);
     s_Active = true;
     this.RegisterMessageHandlers();
 }