Home Forums Support [Help] Custom Class and Coding Reply To: [Help] Custom Class and Coding

#3644
Anonymous
Inactive

-.-

    void ProcessServerStart() 
        {
            //Trigger IncomingPartialFileData method if we receive a packet of type 'PartialFileData'
            NetworkComms.AppendGlobalIncomingPacketHandler<ServerCommands>("ServerCommands", IncomingCommandData);           

            //Trigger the method OnConnectionClose so that we can do some clean-up
            NetworkComms.AppendGlobalConnectionCloseHandler(OnConnectionClose);

            Connection.StartListening(ConnectionType.TCP, new IPEndPoint(IPAddress.Parse(gServerInfo.IP), Convert.ToInt32(gServerInfo.Port)));            
        }

doing it already like this zzz