Client Server Separation?

About Monkey 2 Forums Monkey 2 Programming Help Client Server Separation?

This topic contains 4 replies, has 3 voices, and was last updated by  scurty 2 years, 3 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5663

    scurty
    Participant

    I’m trying to separate the client and server Methods from the “echoserver” banana into two separate apps to basically run the server side on one PC and the client on another and send data between these two apps

    The problem is the server getting a memory access violation as soon as the client is accepted. Don’t know why…

    network.monkey2

     

    server.monkey2

    client.monkey2

    Any ideas?

    #5665

    Mark Sibly
    Keymaster

    Not 100% sure what’s up (it’s not crashing here, but not working either…), but for starters you can only currently use fibers with mojo based apps. I plan to change this eventually but it’s a reasonably complex-ish job…

    #5668

    scurty
    Participant

    Alrighty, not a problem. I’ll try and work around this for now.

    #6184

    Xaron
    Participant

    I want to add a question here. So Fibers are threads, right? When I want to do just a command line server without that mojo stuff I could just do a plain and dirty approach without fibers and just a blocking loop? I’ve read somewhere a single thread solution could be even better than multithreading for networking…

     

    @scurty: Have you got this working btw?

    #6247

    scurty
    Participant

    I think Fibers are an alternative way of looking at Threads in abstraction, but ultimately I think they have the same inner workings for asynchronous programming…

    Sorry for the late reply @xaron.
    As Mark said you can only use Client/Server functionality using Mojo/MojoX. However, he might try and implement it down the road. For now, I would just emulate a Terminal using Mojo or MojoX… There is a “Console” View for Mojo X that is used in Ted2/Go that does almost the same thing as an output terminal; though I’m sure with some tweaking you could get a nicely polished command line with Monkey2 features and support.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.