Creating a server with channels

Title says it all. I'm a bit perplexed as to how I am going to accomplish this. I had envisioned it kind of like this:
GameServer class contains an array of Channel classes which contain an array of Connections. Connections extend thread.
However, it seems I can't have an array of Threads (I get a "can not cast from void to Connection" error) which is really odd...is there another way to go about this?

Thanks for your help so far. In online games, they usually have channels which are basically little groups of users that can interact with each other. One server may have many "channels". For example, a server with 10 people may have those people spread across different channels. 5 users may be in channel 1, 2 in channel 2, 0 in channel 3, and the rest in channel 4. However, they're still on the same server but they can only see people within their channel.
I have no problems creating the Thread array but I get an error when I assign something to an index of that array. The error says something like "Can not cast from void to Thread"

Similar Messages

  • How does create a server with multiple Clients ?

    Any people can lead me .
    How does create a server with multiple Clients ?
    Thanks

    For a multithreaded server you will need a thread to listen and at least one thread per client. If the conversation is half duplex, one thread per client works very well, if it's full duplex you will find one thread to send and one to receive much easier to program.
    I posted a Simple Socket Server that uses 1+2*clients threads.

  • Creating Data Server with DB2

    Hello Experts,
    I am creating data servers with database DB2 in xMII 12.1
    This is the details:
    Connector : IDBC
    Connector type : SQL
    JDBC driver : com.inet.tds.TdsDriver
    Server Package : com.sap.xmii.Illuminator.connectors.IDBC
    Server Url : jdbc:inetdae:BGC125:5912?database=MD1&sql7=true
    When I am checking the status, it is coming stopped
    I had checked in NWA, and JDBC driver is green.
    Please help me on that.
    Regards,
    Dipak

    Thanks for the quick reply John. I am trying to get user and group information, and also doing some complex manipulation. I need this to verify user access and some other stuff. I will not always have access to HSS and cannot always export the information, thus the need to use the HSS java API.
    I'm trying to pull it out of HSS and put it into an Oracle table in a standard format where I'll use the information and do reporting off of it. I've developed a java class that does migrates the data over, but its crude and I'd like to move it into ODI with some of our projects that are currently doing the same thing with other ERP such as Ebiz and Peoplesoft.
    If I can recode some of the java in ODI, how would I go about doing that. Where would I include the libraries, etc.? is there a tutorial or a place where I can get started on that.
    Thanks for all the help.

  • Create UDP server with glassfish/ejb

    Hi,
    I have a mobile application that's using GPRS to send UDP messages to an IP address - wast amount of ~1K text messages every second.
    I want to create a UDP server app using the JAVA EE technology.After getting the messages over UDP, I would like to convert them to JMS messages and place them in a queue for message-driven beans to pick them up one by one.
    Now, I'm not sure if I can do this with Glassfish .
    Can I somehow open a UDP port and listen for messages ?
    Or should I rather make a Java SE app which receives messages from client and passes them into the application server message queue?
    Thanks a lot !!

    Discussion in progress here: http://forums.java.net/jive/thread.jspa?threadID=30254&tstart=0

  • Can I create a server with Time Capsule, where it would be possible for me to access files from any computer in my house?

    I have a Time Capsule 1T, so not sure what gen that would be. But I am in college and have about 5 apple devices that my family uses in our house and it would be nice if we could share files through a network. Can I even be helped?

    DropBox is another possibility for sharing files and it is free for the first 2GB of storage.
    Lou Picinich
    Member Apple Developers Network
    Certified Member Apple Consultants Network
    ACSP 10.5 → 10.7, ACTC 10.5 → 10.7
    ACS Security & Mobility 10.6
    Mobility Technical Competency
    [email protected]
    www.SystemXperts.com
    (623) 512-8992

  • How the MQ server connection channel works ?

    Hi I�m new in MQ, im trying to create a server connection channel for connect the client (amqsputc). In the client machine I put the environment variable MQSERVER. When I crate the channel in the server machine I just establish the name and de MCA ID, I try to start it but IT don�t START, there is any body that can explain me how it work, or a basic way to do a client-server connection? Thanks.

    Hi,
    You'll find heaps of Q&A's on WMQ in the forums at http://www.mqseries.net. Be sure to have a good look around before posting as chances are your answer is already there!
    Colin.
    http://hermesjms.com

  • " Could not create SSL/TLS secure channel " error with Webtest of VS 2013

    hello !
    I want to test my mvc web project with webtest tools of VS 2013 and I Record a test with Internet Explorer
    but when I run test appear this error for me at result of test run : Could not create SSL/TLS secure channel
    for some requested url , but i watch requests in developer tools of chrome browser and I don't see this error.
    i have ssl certificate on the server.
    thanks 

    Hi ArashGhf,
    >>but when I run test appear this error for me at result of test run : Could not create SSL/TLS secure channel
    Based on the error message, it looks like it might be a problem with your certificate not being set up correctly for web performance test.
    Therefore, I suggest you could refer the autom8dTest's suggestion to convert the Web performance test to coded web performance test and then add the WebTestRequest ClientCertificates property to the ClientCertificates collection after the request
    is set up.
    For more information, please refer to it.
    https://social.msdn.microsoft.com/Forums/en-US/49e8d188-90c3-4d72-b387-10b1d1adc4a0/ssl-in-webtests-request-failed?forum=vstswebtest
    Hope it help you!
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can I create prefilled and editable PDF's on a Linux server with PHP?

    I can create PDF's with editable form fields (extended features?) and serve those to our users and I can pre-fill form fields with data from the database using FDF, but then the PDF throws an error and the end user can't fill out the remaining fields (in Reader, it still works in Pro).
    I've tried 2 open source approaches already, but the end result is either a fillable form or a pre-filled form. I can't seem to do both at the same time.
    I've looked around adobe.com and frankly there's just so much stuff there that isn't even applicable it's staggering. I am completely lost and resorting to asking a question on a forum. I've searched these forms (and others), but anything related to this problem have no answers. I'm sure there's a way to do it.
    If I try to set the PDF to fetch the FDF using a http post/submit (can I get it to do that when it loads?) I would still have to get an id number into the query string or object on a per document basis (some how?) and that means editing the PDF server side which breaks the structure which then throws the error on the client side and I'm right back at the beginning again.
    At this point, it looks like it's going to take less time to simply create the form in HTML with a unique CSS file for the print version using a PNG for visual elements instead of a PDF. Not a great way to go for printing, but it would only take a day to set up. The time to create new forms is the issue. I don't want to spend 8 hours creating new HTML forms when I can do a PDF in 2 hours. Is it more efficient to go with an Adobe solution or roll my own HTML version?
    All I want to do is help the users save some time by pre-filing part of the form so they can print it.
    Any advice?

    Ok, I hope someone can move this to the Adobe Reader for Android forum, where you will find the experts you need.

  • Create a new directory in server with JSP

    Hi,
    How can I create a directory in server with JSP.
    File dir = new File("a");
    dir.mkdir();
    does not work. what do I do?
    best regards,

    Hi
    Check the following things.
    1. What is the path where you are creating the directory.
    2. Do you permissions to create file in that directory.
    3. do a delete on that filename if that exists just to be sure. isdeleted = filedir.delete(). Check the boolean flag isdeleted too.
    Thanx and Regards
    Aruneesh

  • Unable to create Business System with role Integration Server

    hi Experts,
    we are unable to create a BS with role of integration server, its throwing error with internal server 500.
    please advise. we do not have any issues while creating TS with role of WEBASABAP.
    thanks and regards,
    Kesava
    Edited by: Prateek Raj Srivastava on Jan 23, 2012 12:13 AM

    Hi Kesava,
    what is the purpose of creating a business system of type IS? This is automatically done in the post installation by CTC templates. So if the post installation is successfully executed, this should already be there. And if not you should check if the post installation was properly executed and if there where problems analyse why they occured.
    The creation of the BS is just one part of the game, so I would highly recommend to execute the hole post configuration via template or follow the help.sap.com and execute it step by step manually in the described order. Otherwise i guess this will not work.
    If there where just problems with SLD - please also have a look at SA Note 1117249 - Incomplete Registration of PI components in SLD
    best regards,
    Markus

  • Creating Crystal Reports with Crystal Report Server XI

    Hello,
    I am new to Crystal Reports, i installed Crystal Reports Server XI R2 on Windows 2003 server with SP2 and was able to launch Inforview application and also Central Management Console Log On.
    I can also see some sample reports which are installed during installation.
    Now my next task is to create Crystal Reports using Crystal Report Server XI R2. How can we create a crystal report now by only using Crystal Report Server XI R2?
    Do we have to install some other application to create Crystal Reports? I donot see any link on my server which i can use to create crystal reports. The only links which i can see are :
    Business Objects-->
         Crystal Report Server-->
                            .Net Administration LaunchPad
                            .Net Infoview
                            Business View Manager
                            Central Configuration Manager
                            Data Source Migration Wizard
                            Data Source Migration Wizard Help
                            Import Wizard
                           Online Developer Library
                            Publishing Wizard
                            Registration Wizard
                           Release Notes
                           Repository Migration Wizard
    Please help
    Thanks
    Vipin

    Two ways to create reports:
    1) You install the Crystal reports Designer (CRW32.exe).
    With your Crystal Report Server, you should also have received a second CD that would have the CR designer.
    2) You use the RAS SDK and create reports on the fly using the RAS report creation APIs - .NET or Java. Since you are in the .NET developer forum, I assume you might be interested in the .NET RAS SDK. Here is a list of resources i would recommend:
    Links to samples are [here|https://www.sdn.sap.com/irj/scn/wiki?path=/display/bobj/netBusinessObjectsEnterpriseSDKSamples]
    [How to use the RAS SDK .NET with In-process RAS Server|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10b840c0-623f-2b10-03b5-9d1913866b32]
    [Programing RAS|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b050afe0-2fa5-2b10-658d-98f214ba6a4a]
    [Choose the Right SDK for the Right Task|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f006a5e6-7e64-2b10-8a84-8b15ca5cacfc]
    For more help, search these forums (there are some great posts in here), the [notes database|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_ossnotes&query=&adv=true]
    [articles|https://www.sdn.sap.com/irj/sdn/businessobjects-articles] and [downloads|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm]
    Ludek

  • Cannot Create Data Repository with VM Server (3.1.1) Cluster

    Dear All,
    I have 3 Servers (one for VM Manager, two for VM Servers) and 1 Storage (Sun Storage 6180 (Fiber Chanel) and map volume as Default Storage Domain ).
    I try to create my 2 VM Servers as Cluster on VM Manager but it has problem as below:
    Case1. I can create a Server Pool with cluster by select Clustered Server Pool by select physical disk, add 2 servers then create data repository but it got problem: in page Create a Data Repository: Select Physical Disk is shown blank not see a physical disk.
    Case 2. when I create server pool by uncheck Clustered Server Pool box (None Cluster) and add 2 vm servers then create data repository, the physical disk is shown but got error message:
    "OVMRU_002030E Cannot create OCFS2 file system with local file server: Local FS vmserver1. Its server is not in a cluster
    Wed Dec 26 01:27:12 ICT 2012"
    Please kindly give advice for this.
    Thanks and regards,
    Vandy

    1. So you're trying to create a server pool and a storage repository on a single LUN that is direct attached? Don't your software on the 6180 allow you present multiple LUNS from disk group? Think about it. You create a clustered server pool on a single LUN and then try to use that same LUN for repository.....
    2. How are both hosts attached? Are there multiple HBA cards in your 6180? Is so, how many? If you have redundant cards you should be using multipathing for redundancy.

  • Failed to create a user with Mac Mini Server, the message "Failed to process the command writesettings" in the module "servermgr_sharing"

    Failed to create a user with Mac Mini Server, the message "Failed to process the command writesettings" in the module "servermgr_sharing"

    I have a Mac Mini with OS X Server 10.8.5 and Server 2.2.1 and have a problem to share the public folder.
    When I enter the Server application to indicate that I want to share the public folder on the network and assign user I get the following message appears
    And I can not share the folder.
    If I go from my i-mac get mac mini server view and access the public folder, but I can not open any of the files there.
    That I can do to fix this?
    thank you very much

  • Creating a project with 5.1 audio channels

    Hi,
    My camera can record in 5.1 channels (I have a multi channel mic for that). If I record using it, I obviously want to create a project that can include this and that will eventually will get me to create a DVD with 5.1 channels, so I can benefit from it when watching them into my Home Theater.
    Does anyone knows if this is possible?
    I seem to see some 5.1 options when sharing as Quicktime movie and so on but not sure how to use them.
    Thanks in advance for any advice.
    AMPJ

    You need Final Cut Studio to burn 5.1 on mac. (DVD Studio Pro, to be specific)
    Yes, IMO Apple really sells Logic users short on 5.1. Sure you can author, but no delivery platform unless you pony up $$$ for FCS.

  • Create image server operating system with Hyper-V and virtual machines

    Friends,
    Need to replicate the environment they currently have, but wanted to optimize this operation by creating an image of windows server with Hyper-V and virtual servers already installed, what tool do I use? Can someone guide ???
    Dreyher

    I recommend you separate the task of protecting the host from the task of protecting the guest VMs. 
    By "replicate the environment", do you mean backup the VMs in a recoverable state? or do you intend on migrating the VMs to another environment like another physical location? How much down time can you tolerate if any?
    To backup the VMs use a VSS based backup solution. There's plenty out there, including Windows Server backup, Altaro, DPM, Veeam, and many more. This does not require installing agent on any of the VMs, and will not down the VMs during backup. Here's an
    example Powershell script to backup all VMs on the local host:
    Install-WindowsFeature -Name Windows-Server-Backup
    $BackupTarget = "\\server\share"
    $WbTarget = New-WBBackupTarget -NetworkPath $BackupTarget
    $WBPolicy = New-WBPolicy
    Add-WBBackupTarget -Policy $WBPolicy -Target $WbTarget
    Add-WBVirtualMachine -Policy $WBPolicy -VirtualMachine (Get-WBVirtualMachine) # Add all VMs on localhost
    Start-WBBackup -Policy $WBPolicy -Async
    If the intent is VM migration from one location to another, there are plenty of tools to do so with minimal or no down time. Just bing it..
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable) _________________________________________________________________________________
    Powershell: Learn it before it's an emergency http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx

Maybe you are looking for

  • "The operation could not be completed" Error

    Every time i try to open the pixel bender filter I get an error that says "The operation could not be completed" Any Ideas?  Windows 7 i5 processor and 8 gb of ram. I tried re installing, and several images from small to max size. Thanks

  • How can I download an older version of Firefox before 3.6

    I am trying to do transcription from a website. I did one file before my typing stopped showing up in the "box." I emailed the company and they suggested downloading an older version than 3.6. ('Doesn't make sense to me, but I guess I had better try

  • BAPI_SALESORDER_CREATEFROMDAT2 configure error information

    hi every body: I use BAPI_SALESORDER_CREATEFROMDAT2 to creat a SO ,when i need to configure it's item, the thing come out "S V4                   233 SALES_HEADER_IN has been processed successfully A CU                   013 Internal error: 10, 00001

  • Where Can I see my Oracle ID on Oracle OTN website

    Hi, Long time ago I created oracle otn account, now I need the Oracle ID, where can I see it . It will be the same as Oracle testing ID ? thanks in advance

  • Query to find when the given schema last refreshed ?

    I need to find out the given database schema, when did last get refresh using impdp or import or SQL Loader?