×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    135

    how to implement tcp socket in server of client -server architecture

    my problem is that ,

    i have to implement tcp socket in server of client -server architecture

    1)tcp ip socket is implemeted using active object

    2)CTimeServer class is derieved from CServer2 which is derive from active object

    both class are derive from active object and if i call cTimeserver instance and it shows EUserPanic 47 error


    what is proper way to implement tcp.ip socket in Cserver2 derived server class


    thanks in advance

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: how to implement tcp socket in server of client -server architecture

    EUser CBase 47 is: "This panic is raised by the Error() virtual member function of an active scheduler, a CActiveScheduler. This function is called when an active object’s RunL() function leaves. Applications always replace the Error() function in a class derived from CActiveScheduler; the default behaviour provided by CActiveScheduler raises this panic. "

    So do check what does wrong in your RunL and see what the actual error is.

  3. #3
    Regular Contributor
    Join Date
    Oct 2007
    Location
    China
    Posts
    269

    Re: how to implement tcp socket in server of client -server architecture

    hi, as implement a Server, why you instance a CTimeServer?
    I am a programmer,and I hope we can help each other and progress together

  4. #4
    Nokia Developer Champion
    Join Date
    Jul 2004
    Posts
    2,015

    Re: how to implement tcp socket in server of client -server architecture

    I hope you are not confusing the client/server model of TCP, where the TCP client is on the device and the TCP server is external to the device, with the client/server model described for symbian where both the client and server reside on the device?

  5. #5
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    135

    Re: how to implement tcp socket in server of client -server architecture

    Quote Originally Posted by andy205214 View Post
    hi, as implement a Server, why you instance a CTimeServer?
    thanks for reply

    when i am creating instance of class CTimeServer,using NewL() it reseting value which is already set

    i want to pass data from socket class to CTimeserver ,without reseting original value


    Thanks for reply

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: how to implement tcp socket in server of client -server architecture

    You could try adding a TRAP in your RunL to get the actual leave code as I was suggesting earlier, it migth give an idea on what is going wrong in there..

  7. #7
    Regular Contributor
    Join Date
    Oct 2007
    Location
    China
    Posts
    269

    Re: how to implement tcp socket in server of client -server architecture

    Quote Originally Posted by rahul.shalik.makode View Post
    thanks for reply

    when i am creating instance of class CTimeServer,using NewL() it reseting value which is already set

    i want to pass data from socket class to CTimeserver ,without reseting original value


    Thanks for reply
    Hi, I don't undstand what your mean, but i wondering why you derive from CServer2, do you know what means when you inherit CServer2?
    I am a programmer,and I hope we can help each other and progress together

Similar Threads

  1. TCP client with serverSocket problem
    By andrame in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2009-07-03, 08:37
  2. XML onLoad with background http server problem
    By simonjuric in forum [Archived] Flash Lite on Nokia Devices
    Replies: 5
    Last Post: 2009-06-08, 16:47
  3. Socket problem: Only nokia's phones got errors
    By n0cturnal in forum Mobile Java Networking & Messaging & Security
    Replies: 11
    Last Post: 2008-01-11, 10:32
  4. Problem in reconnection from client to server
    By Palermo4Ever in forum Bluetooth Technology
    Replies: 0
    Last Post: 2006-06-19, 16:27
  5. server client architecture
    By Onib in forum Symbian
    Replies: 4
    Last Post: 2005-05-25, 07:50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×