How do I create a chat in my server?

I am building an mmorpg game and one of my first tasks is to create a chat, now I have no idea about how it is working.
The only thing that I do know is that there is two ways to do it, one of them will force me to update my chat page all the time and the other way is that one that I am looking for .
So, can you help me?

Can you explain me more about LifeCycle Data Services, what do you mean by "
overkill"?
This is a big game that I am planing to build in here, chat is only part of
it as I thought it will be a good place to start from, but generally later I
will need to work with graphic maps and pass information to my users.

Similar Messages

  • How can I create a directory on my server using FTP in applescript?

    Hi
    I have created a script which successfully uploads files to my server using FTP and a curl command.
    The one thing I haven't worked out how to do is how to create a directory on my server using applescript. At the moment I have to manually create the correct directory for the script to work, but would like to be able to automate everything.
    Would this be possible?
    Thanks
    Nick

    Thanks Bernard.
    I have tried that and still get the error message:
    "curl: Can't open '--ftp-create-dirs'!
    curl: try 'curl --help' or 'curl --manual' for more information
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
    curl: (9) Server denied you to change to the given directory"
    The other relevant parts of the script are:
    set ftp_url to "ftp.****.org.uk/artists/" & artistName2 & "/assets/"
    set ftp_username to "*****@*****.org.uk"
    set ftp_password to "****"
    set ftp_entire to ftp_username & ":" & ftp_password & " ftp://" & ftp_url
    set outPath to outputFolder & fileCounter & ".jpg"
    and then...
    do shell script ("curl -T --ftp-create-dirs " & outPath & " -u " & ftp_entire)
    Like I said, all works fine when the directories are already in place. I have permissions for the artists folder set to "777", i.e. writable. Because the script is trying to create two directories at once, i.e. "artistName2" and then "assets" under it, I wondered if this was significant, but then I tried with just one new directory, and still got the error.

  • How do I create a UI for SQL server back end using Dreamweaver wizard

    Hi,
    I want to test a database driven application which is using SQL server as back end.
    To test that I want to create web UI using C#. As I remember in dreamweaver there is a wizard to do it easily.
    But I can not find it now. Please let me how to do it
    I'm using CS5.
    Thanks

    flashmark1 wrote:
     I want to create web UI using C#. As I remember in dreamweaver there is a wizard to do it easily.But I can not find it now.
    Support for ASP.NET was removed from Dreamweaver some time ago (in CS4, I think).
    If you want to restore the ASP.NET server behaviors in CS5, you need to install ASPNet_Support.mxp, which can be found in C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS5\configuration\DisabledFeatures in Windows or the similar location in the Applications folder on a Mac.
    The server behaviors are no longer officially supported, but they perform the same functionality as in older versions of Dreamweaver.

  • How do I create a view in SQL Server in Visual Studio Express 2013 for Desktop?

    Hi
    I've got a SQL Server database set up using the internal SQL Server in Visual Studio Express 2013 for Desktop. I want to create a view (using tables with one to many relationships) but I don't
    know how to do it.
    Where can I find a good tutorial on creating views in SQL Server in Visual Studio Express 2013 for Desktop? I think Visual Studio Express 2013 for Desktop doesn't have some view designer that
    exists in the non-express version of Visual Studio (if I'm not mistaken). So I think I'd need a tutorial on how to do the actual SQL, unless there is some tool I don't know about.
    Thanks

    Hi ,
    According to your description, if you install SQL Server SQL Server 2014 Express and SQL Server Manager Studio tools (SSMS), if you want to create a view, you can use SSMS. Then if you want to connect to and Diagram your SQL Express Database in Visual Studio
    2013, you can attach the database file by using the .NET Framework Data Provider for SQL Server in Visual Studio, and create a database diagram via expanding the “Database Diagrams” node.
     For more information, there is similar issue about how to connect to and Diagram your SQL Express Database in Visual Studio 2012 , you can review the following article,
    http://blogs.msdn.com/b/bethmassi/archive/2011/10/27/how-to-connect-to-and-diagram-your-sql-express-database-in-visual-studio-lightswitch.aspx.
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How to push the offline chat messages to server when internet is available

    I am building chat application in windows phone 8.1 When internet is not available in the device i am storing all chat messages in sqlite database. I want push those messages to server when internet is available later even thought app is not open/active.
    please help me to solve this problem. thank you 
    vinay

    The best approach likely would be to use triggered background tasks. There is a specifc trigger for "InternetAvailable" which looks like a perfect match for your requirement. This article describes that feature in more detail:
    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh977058.aspx
    If I remember correctly however usage of SQLite in background tasks can be somewhat problematic (my information on that may be old however). My suggestion in that case would be to serialize the messages into an XML file when your App is suspended/closed
    which is likely to be a lot easier to handle in the background task (regular storage can remain in the SQLite database).

  • How do you create a directory on Apps Server

    Hi
    Is there any way to create a directory on the apps server at runtime using any of the forms built-ins or WebUtil?

    Use the HOST command, since HOST works on the App Server. WebUtil works on the client PC.

  • How can I create a simple chat function in a mobile app for iOS and Android

    I am wondering how can I create a chat function in my mobile app creating in AIR and Flex. The chat should be similar to the one in WhatsApp.
    Do you know some possible solutions?
    Thank you in advance!

    To enable chat messages, you need a server. The kind of server depends on the application. Do you want to create a chat like application like WhatsApp, where the server pushes messages without an active connection? Or do you have some sort of online game, where chat messages can only be transferred when the client is connected already?
    I have an online game where clients are connected to a Java server at all time. From there it is pretty straight forward:
    2 textfields:
    - 1 line textfield for input messages
    - multi-line textfield for chat history. Make sure the textfields autoscrolls to the bottom when the content changes
    on enter or button push, send a socket message to the server.
    the server broadcasts all messages to all clients that are subscribers of the chat group.

  • How to create clustering on oracle application server on windows

    hi,
    i want to know how can i create clustering on oracle application server on windows machine.
    regards

    I think that you need to configure Web cache for this as a frontend, and two or more servers behind it.
    Try to read :
    Metalink DOC ID 312834.1
    http://www.oracle.com/technetwork/developer-tools/forms/documentation/advancedformsconf-128186.pdf
    Edited by: Marcos_Pawloski on 15/12/2010 00:02

  • How Do I Create A Table?

    I will admi9t that I am the newest of "newbies" to SQL Server so I pose the basic question : How Do I Create A Table in SQL Server? I read in a book fairly recently how to do this but have forgotten.
    Steve R. Burrus

    "SQL Server 2008 supports the creation of tables using T-SQL, the SQL Server
    Management Studio (SSMS) Object Explorer and the SSMS Database Diagram Editor. Regardless of the tool you choose, creating a table involves naming the table, defining the columns, and assigning properties to the columns. The visual tools (such
    as Object Explorer and database diagrams) are usually the best starting point for creating tables.
    Using Object Explorer to Create Tables
    The Object Explorer in SSMS has a Tables node under each database listed. You can add tables via the Object Explorer by right-clicking this Tables node. As shown below the
    New Table option displayed after you right-click the Tables node in Object Explorer. The top-right side of the screen shown in bleow.it is the table creation screen that allows you to enter the column name and data type and to set the Allow
    Nulls option.
    The data entry area under Column Name is a free-form area where you can define a column name. You can select the data type from the Data Type drop-down, which displays
    the data types available with SQL Server. The Allow Nulls option is Boolean in nature and is either checked or not checked. For each column selected, a Column Properties section is displayed in SSMS, providing a myriad of additional properties that you can
    assign to each column.
    Using T-SQL to Create Tables
    Ultimately, all the tables created with the visual tools can also be created by using T-SQL. As with many of the SSMS tools, database objects can be resolved or scripted into T-SQL statements.
    Let’s examine the T-SQL syntax to better understand some of the table creation options. so let's create a Table name
    test.Customer which has a 5 columns of CustomerID, LastName, FirstName, CreditLine, and CreationDate. so when you execute the bottom code you will have the table. 
    --START with USE command to tell the sql server which database you want to create the table on, this case we want to create the table on Adventurework2008 (it’s a Sample database)"
    USE
    Adventurework2008
    CREATETABLE test.Customer
    (CustomerID
    INT IDENTITY(1,1),
    LastName
    VARCHAR(50)
    NOT NULL,
    FirstName
    VARCHAR(50)
    NOT NULL,
    CreditLine
    MONEY SPARSE NULL,
    CreationDate
    DATE NOT
    NULL)
    GO
    I hope this helps answering your question more or less. Goodluck
    Reference-book:
    Microsoft® SQL Server 2008 R2 UNLEASHED Ray Rankins Paul Bertucci Chris Gallelli Alex T. Silverstein

  • Creating entities on the HSF-Server

    Hi,
    I have a question concerning HSF:
    How can one create an entity on HSF Server (database has been created but is empty)?
    If I select:
    HSF->Server-> create new entity…
    the entity wizard appears.
    It requires the fields “entity name” and “modeled on:”
    New Entity Name: has to be determined.
    Modeled on: has to be determined.
    Since the database is empty, I have to insert anything in the “modeled on: -Field”.
    ->     Click next,
    One has to tick then: place at root.
    Since the next-button is inactive, I got to click: finish
    Then a dialog window appears: Modeled on entity is not found (which is not surprising, since the database is empty).
    What is wrong? How can entities be created on the server?
    Many thanks for any hints on this!
    Regards,
    Dominic

    Hello,
    are you using VM Manager? Once you login and click on the Server Pools tab, it's pretty straightforward from there to create the pool itself. If you're not using the manager, you should consider doing so once you setup more servers to have access to all of your virtual machines from one place.
    However, if you have 2 servers and you don't wish to use shared storage, then there's no need to use pooling for these servers, just a thought.

  • How to  create a chat application

    What i need:
    i want to create a chat application .
    Registered user can reply to the Questions .
    i want to store the full thread in db
    Eg:posting doubts in forum by strating new  thread.
    how can i do it in jsp

    try with this sample application
    http://www.web-tech-india.com/software/jsp_chat.php

  • How to create a chat between portals

    Hi,
    I would like to know if it's possible to create a chat (into Collaboration) between two portals. For example, to communicate a portal from Spain with another portal in EEUU.
    if so, how could I create it? Do I need federate portals for it?
    Thanks in advance,
    Samantha.

    Activate the collaboration launch pad and do the following ...you should have the chat session working.....
    Instant Messenger
    In order to be able to use the Real-Time Collaboration functions (sending instant messages or sharing applications), you must activate the RTC Session Manager after installing Collaboration.
    To activate the RTC Session Manager, perform the following steps:
    1.     Go to the default framework page.
    Enterprise Portal     Portal Content  ® Portal Users ® Standard Portal Users ® Default Framework Page.
    2.     Double-click Default Framework Page.
    3.     Select the Tool Area iView checkbox and choose Open.
    4.     Choose Show All in the Property Editor drop list menu.
    5.     Expand the Enable Real-Time Collaboration properties. 
    6.     Select Yes radio button.
    7.     Choose Save.
    8.     Choose Close.
    9.     Choose F5 to refresh your portal screen.
    Two synchronous collaboration service providers are included with the initial installation of the Collaboration for SAP Enterprise Portal. The initially installed synchronous collaboration service providers are:
    •     Real Time Collaboration (SAP RTC), which provides application sharing.
    •     WebEx, which provides the WebEx meeting center service.
    Upon installation of Collaboration for SAP Enterprise Portal, synchronous collaboration services are not activated. You must activate synchronous collaboration service types before they can be used.
    10.     Review the list of activated service types.
    Go to System Administration  System Configuration  Knowledge Management  Collaboration  Synchronous Collaboration Services  Activated Service Types
    11.     Choose New button.
    12.     Check the RTC_ApplicationSharing checkbox.
    value points if this helps you !!

  • How to make a private chat look in another window

    hi
       iam new to flex
    and now what my question is when i double click on the particular user present in the chat room
    i should get chat open in new window
    is this possible please help out in this issue

    hi
       thanks for urs replys its helping a lot
    and now i wnt some information from u abt private chat
    see wt my doubt is iam getting user name and uid when i click on the user in the userlist with that iam creating an instance to the class "ChatMessageDescriptor" and with that iam sending msgs to the user clicked by the property recipient
    and iam initiating that private chat in seperate label privatechat space and now wt the problem is when i click on the username
    for example iam the user A and i clicked on user B the window gets open for userA and user A can send msgs to user B directly
    but where as in place of User B the window doesnot get open,  only when he clicks on User A  he is able to send msgs to User A and he can chat w User A directly from there on words
    so wt i want is how to intiate him that chat is open with User A  so click him in the userlist  or directly open him a window as soon as User A clicks
    User B is this possible plz refer my code u will get clearly understood the problem
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application layout="absolute"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        applicationComplete="init()"
        xmlns:rtc="AfcsNameSpace">
        <mx:Script>
            <![CDATA[
                import com.adobe.rtc.pods.simpleChatClasses.ChatMessageDescriptor;
                import com.adobe.coreUI.controls.WhiteBoard;
                import com.adobe.rtc.sharedModel.SharedCollection;
                import com.adobe.rtc.sharedManagers.UserManager;
                import com.adobe.rtc.sharedManagers.descriptors.UserDescriptor;
                import mx.controls.listClasses.IListItemRenderer;
                import mx.controls.listClasses.ListBaseSelectionData;
                import mx.collections.IList;
                import mx.events.ItemClickEvent;
                import mx.controls.Alert;
                import com.adobe.rtc.events.AuthenticationEvent;
                import com.adobe.rtc.events.ConnectSessionEvent;
                import com.adobe.rtc.events.SessionEvent;
                import mx.core.IFlexDisplayObject;
                import mx.managers.PopUpManager;
                import flash.net.*;
                import mx.collections.ArrayCollection;
                import com.adobe.rtc.pods.simpleChatClasses.SimpleChatModel;
                import com.adobe.rtc.events.ChatEvent;
                private const applicationTitle:String = "AFCS Sample Application";
                  [Bindable]
           public var chatModel:SimpleChatModel;
           public var clickeduser:UserDescriptor = new UserDescriptor;
             public var userwnt:String=new String;
              public var clickusername:String=new String;
               public var selindex:int;
               public var count:int;
                private function init():void
                    sess.addEventListener(SessionEvent.ERROR, onEventNotification);
                    sess.addEventListener(SessionEvent.SYNCHRONIZATION_CHANGE, onEventNotification);
                    auth.addEventListener(AuthenticationEvent.AUTHENTICATION_FAILURE, onEventNotification);
                    auth.addEventListener(AuthenticationEvent.AUTHENTICATION_SUCCESS, onEventNotification);
                    popup(loginWindow);
                private function popup(window:IFlexDisplayObject):void
                    PopUpManager.addPopUp(window, this, true);
                    PopUpManager.centerPopUp(window);
                    window.visible = true;
                 * Process AFCS Events
                private function onEventNotification(p_event:Event):void
                    if (p_event.type == SessionEvent.SYNCHRONIZATION_CHANGE) {
                        if (sess.isSynchronized) {
                            // isSyncronized==true : we are connected to the room
                            panel.title = "Connected to room " + sess.roomURL;
                            PopUpManager.removePopUp(loginWindow);
                        } else {
                            // isSyncronized==false : we are disconnected from the room
                            panel.title = applicationTitle;
                            sess.roomURL = null;
                            notificationMessage.text = "";
                            popup(loginWindow);
                    else if (p_event.type == AuthenticationEvent.AUTHENTICATION_SUCCESS) {
                        // Authentication succeeded
                        notificationMessage.text = "Authentication Succeeded";
                    else if (p_event.type == AuthenticationEvent.AUTHENTICATION_FAILURE) {
                        // Authentication failed : bad password or invalid username
                        notificationMessage.text = "Authentication Failed";
                    else if (p_event.type == SessionEvent.ERROR) {
                        // Generic session error, but this can happen if you mispell the account/room names
                        // (sError.error.name == "INVALID_INSTANCE" and sError.error.message == "Invalid Instance")
                        var sError:SessionEvent = p_event as SessionEvent;
                        notificationMessage.text = sError.error.message;
                    else
                        notificationMessage.text = "Got event " + p_event;
                private function login():void
                    notificationMessage.text = "";
                    auth.userName = username.text;
                    auth.password = passwordBox.visible ? password.text : null; // password==null : the user is a guest
                     userwnt=username.text;
                    sess.roomURL = roomURL.text;       
                    sess.login();
                protected function buildModel():void
                    // Create the model: just calling the constructor won't create the collection node or pass the messages.
                    // Call subscribe and give it a shared ID while creating the model.
                    // The shared ID becomes the name of the collection node.
                      if(clickusername==userwnt)
                         Alert.show(clickusername);
                         viewStack.selectedChild=white;
                    chatModel = new SimpleChatModel();
                    chatModel.sharedID = "myChat_SimpleChatModel";                               
                    chatModel.subscribe();                       
                    chatModel.addEventListener(ChatEvent.HISTORY_CHANGE, onChatMsg);
                    this.addEventListener(KeyboardEvent.KEY_UP, onKeyStroke);
                 public var cmd:ChatMessageDescriptor = new ChatMessageDescriptor();
                public function userclick(bharath):void
                    count=0;     
                    selindex=bharath;
                    clickeduser= sess.userManager.userCollection[bharath] as UserDescriptor;
                    var orignaluser:UserDescriptor = sess.userManager.userCollection[0] as UserDescriptor;
                    var username=orignaluser.displayName;
                    clickusername=clickeduser.displayName;  
                    cmd= new ChatMessageDescriptor();           
                    cmd.recipient=clickeduser.userID;
                    cmd.recipientDisplayName=clickusername;
                    cmd.msg="hi";               
                    viewStack.selectedChild=white;
                      buildModel();                
                    chatModel.sendMessage(cmd);                                  
                    protected function clearChat():void
                    chat_mesg_area.text = "";
                    chatModel.clear();
                protected function submitChat(str:String):void
                 if(count==0)
                 clearChat();
                 count=1;
                var clickeduser:UserDescriptor = sess.userManager.userCollection[selindex] as UserDescriptor;
                var clickusername=clickeduser.displayName;  
                 cmd= new ChatMessageDescriptor();           
                    cmd.recipient=clickeduser.userID;
                    cmd.recipientDisplayName=clickusername;
                    cmd.msg=chat_mesg_input.text;                 
                    chatModel.sendMessage(cmd);
                    chat_mesg_input.text = "";               
                protected function onChatMsg(p_evt:ChatEvent):void
                    if(p_evt.message != null && p_evt.message.msg != null && p_evt.message.displayName != null)
                        chat_mesg_area.text += "\r\n" +  p_evt.message.displayName + ": " + p_evt.message.msg;
                    else
                        chat_mesg_area.text = "";   
                protected function onKeyStroke(p_evt:KeyboardEvent):void
                    if(p_evt.keyCode == Keyboard.ENTER) {
                        submitChat(chat_mesg_input.text);
            ]]>
        </mx:Script>       
        <rtc:AdobeHSAuthenticator id="auth"/>       
        <rtc:RoomSettings id="settings" autoPromote="true"/>
        <mx:Panel id="panel" title="{applicationTitle}" width="100%" height="100%" paddingLeft="5" paddingTop="5" paddingRight="5" paddingBottom="5">
            <!--
             | Login Dialog Box
             -->
            <mx:TitleWindow id="loginWindow" title="Connect to Room" visible="false">
                <mx:VBox>
                    <mx:HBox>
                        <mx:Label text="Room URL:" width="70"/>
                        <mx:TextInput id="roomURL" width="295" tabIndex="1">
                            <mx:text>http://connect.acrobat.com/exampleURL/exampleroom</mx:text>
                        </mx:TextInput>
                    </mx:HBox>
                    <mx:HBox>
                        <mx:Label text="Username:" width="70"/>
                        <mx:TextInput id="username" tabIndex="2">
                            <mx:text>guest</mx:text>
                        </mx:TextInput>           
                        <mx:Button label="Login" click="login()" width="126" tabIndex="4"/>
                    </mx:HBox>
                    <mx:HBox>
                        <mx:HBox id="passwordBox">
                        <mx:Label text="Password:" width="70"/>
                        <mx:TextInput id="password" displayAsPassword="true" tabIndex="3"/>
                        </mx:HBox>
                        <mx:RadioButton label="User" selected="true" click="passwordBox.visible = true"/>
                        <mx:RadioButton label="Guest" click="passwordBox.visible = false"/>
                    </mx:HBox>
                    <mx:Text id="notificationMessage" text=""/>
                </mx:VBox>
            </mx:TitleWindow>
            <!--
             | AFCS application UI wrapped in ConnectSession
             -->       
            <rtc:ConnectSessionContainer
                id="sess"
                authenticator="{auth}"
                initialRoomSettings="{settings}"
                autoLogin="false" width="100%" height="100%" >       
                <mx:HBox width="100%" height="100%" horizontalGap="0">
                    <mx:VBox>
                        <mx:TabBar dataProvider="viewStack" direction="vertical" width="100" verticalGap="0"/>
                        <!--mx:Button label="Disconnect" click="sess.close()"/-->
                    </mx:VBox>
                    <mx:ViewStack id="viewStack" width="100%" height="100%" borderSides="left top right bottom" borderStyle="solid" borderThickness="2">
                        <!--
                         | Chat pod and roster
                         -->
                        <mx:HBox label="Chat" width="100%" height="100%">
                            <rtc:SimpleChat width="40%" height="100%"/>
                            <rtc:WebCamera left="0" right="0" top="0" bottom="0" width="40%" height="100%"/>
                            <mx:List alternatingItemColors="[#DFDFDF,#EEEEEE]" dataProvider="{sess.userManager.userCollection}" width="10%" height="100%" labelField="displayName" id="abc" click="userclick(abc.selectedIndex)"/>
                        </mx:HBox>
                        <mx:Canvas id="white" label="privatechat" width="100%" height="100%" creationComplete="buildModel()">
                         <mx:VBox id="chatBox">
                    <rtc:WebCamera id="webcam" width="400" height="223"/>
                    <mx:TextArea width="398" height="140" id="chat_mesg_area"/>
                    <mx:HBox>
                    </mx:HBox>                               
                </mx:VBox>
                <mx:TextInput width="400" id="chat_mesg_input" y="370"/>
                <mx:Button label="Submit Chat" click="submitChat(chat_mesg_input.text)" y="398"/>
                </mx:Canvas>
                        <!--
                         | Fileshare pod
                         -->
                        <mx:Canvas label="FileShare" width="100%" height="100%">
                            <rtc:FileShare left="0" right="0" top="0" bottom="0"/>
                        </mx:Canvas>
                    </mx:ViewStack>
                </mx:HBox>
            </rtc:ConnectSessionContainer>
        </mx:Panel>
    </mx:Application>

  • How long does my private chat/message convertation...

    How long does my private chat/message convertation last in skype? I can't find back one convertation from januar-feb 2015 and some from 2014. Do skype delete my message if i don't write for a while?
    This post was transferred from its previous location to create its own new topic here; its subject and/or title has been edited from "Skype messages" to differentiate the post from other inquiries and to reflect the post's content.

    thanks for the reply, how ever ive already contacted itunes support and they didnt say any thing about why my ID was disabled. So now what go directly to Tim cook an have this problem resolved ? P.S your user name is great

  • Plz help me, how do I delete my chat history

    How do i delete my chat history.
    Please help.
    This post was transferred from its previous location to create its own new topic.
    The subject/title has been amended to distinguish this topic from others.
    A link to this post appears at its previous location.

    Chipomasi wrote:
    How do i delete my chat history.
    Please help.
    Hi @Chipomasi,
    You can delete your Chat history by going to Tools>Options in the desktop client; click on the IM and SMS tab; click on IM settings; then show advanced settings; then you can clear the history and modify how long chat history goes back.
    Note that this will not delete the other user's chat history with you, only yours.
    Anthony
    This post was by Anthony- I do not work for Microsoft!
    If this solved your issue - Mark it as a solution! If you like my post - Please add Kudos!
    Spotify Community Profile - Anthony
    Feel free to PM me - Here

Maybe you are looking for