How to Integrate Client and Server?

How to Integrate Client system and Server system?
A scenario which is working successfully in server system, not working in client system.
help me out in this issue.
pankaj.

This doesn't make any sense... ???
can you please rewrite your question?

Similar Messages

  • How to create client and server app using node.js in firefox os.

    I want to create a client and server app using node.js for firefox os. Please suggest me how to create a apps.
    I want to send a request from client to server and based on client request, service reply to client.
    If any links available, Please share it.
    Thanks

    Hi sb00349044,
    The SUMO forums focuses on end-user support.
    For questions about developing for Firefox OS, you will find better guidance in MDN, StackOverflow, and mailing lists:
    * [https://developer.mozilla.org/en-US/Firefox_OS MDN - Firefox OS]
    * [http://stackoverflow.com/questions/tagged/firefox-os StackOverflow - Firefox OS]
    * [https://lists.mozilla.org/listinfo Mailing Lists at Mozilla]
    Thanks,
    - Ralph

  • How to bulid client and server on differen machine

    i want to build client on a sco unix machine and
    server on a tandem unix machine.how can i complete it?
    i made a test.the application is simple sample TOUPPER.
    below is my ubbconifg
    #ident     "@(#)apps:simpapp/ubbsimple     60.3"
    #Skeleton UBBCONFIG file for the TUXEDO Simple Application.
    #Replace the <bracketed> items with the appropriate values.
    *RESOURCES
    IPCKEY          50000
    #Example:
    #IPCKEY          123456
    DOMAINID     simpapp
    MASTER          simple
    MAXACCESSERS     5
    MAXSERVERS     5
    MAXSERVICES     10
    MODEL          MP
    LDBAL          N
    OPTIONS          LAN
    *MACHINES
    FSPSRB          LMID=simple
              TUXDIR="/db010/gdproj/tuxedo"
              APPDIR="/db010/home/tuxtest/gy"
              TUXCONFIG="/db010/home/tuxtest/gy/tuxconfig"
              UID=135
              GID=120
    GDPSRB          LMID=simple2
    TUXDIR="/appl/gdproj/tuxdev"
              APPDIR="/appl/home/gy/simple"
              TUXCONFIG="/appl/home/gy/simple/tuxconfig"
              UID=139
              GID=100
    #DEFAULT:
    #          APPDIR="/db010/home/tuxtest/gy"
    #          TUXCONFIG="/db010/home/tuxtest/gy/tuxconfig"
    #          TUXDIR="/db010/gdproj/tuxedo"
    #Example:
    #          APPDIR="/home/me/simpapp"
    #          TUXCONFIG="/home/me/simpapp/tuxconfig"
    #          TUXDIR="/usr/tuxedo"
    #FSPSRB          LMID=simple
    #Example:
    #beatux          LMID=simple
    *NETWORK
    simple          NADDR="//10.194.0.3:9000"
    NLSADDR="//10.194.0.3:9001"
              BRIDGE="/dev/tcp"
    simple2          NADDR="//10.194.0.155:9000"
              NLSADDR="//10.194.0.155:9001"
    BRIDGE="/dev/tcp"
    *GROUPS
    GROUP1
         LMID=simple     GRPNO=1     OPENINFO=NONE
    *SERVERS
    DEFAULT:
              CLOPT="-A"
    simpserv     SRVGRP=GROUP1 SRVID=1
    *SERVICES
    TOUPPER
    i start the tlisten at each site .
    when i exec tmboot -y i can't get BBL at client site
    below is the ULOG at server site
    092248.FSPSRB!DBBL.5148: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22 mips.
    092248.FSPSRB!DBBL.5148: LIBTUX_CAT:262: INFO: Standard main starting
    092250.FSPSRB!BBL.5149: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22 mips.
    092250.FSPSRB!BBL.5149: LIBTUX_CAT:262: INFO: Standard main starting
    092252.FSPSRB!DBBL.5148: CMDTUX_CAT:4350: INFO: BBL started on simple - Release
    6400
    092253.FSPSRB!BRIDGE.5150: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
    mips.
    092253.FSPSRB!BRIDGE.5150: LIBTUX_CAT:262: INFO: Standard main starting
    092253.FSPSRB!BRIDGE.5150: LIBTMIB_CAT:74: ERROR: Failed to advertise dynamic
    /Admin service TBR0
    092253.FSPSRB!BRIDGE.5150: CMDTUX_CAT:1788: WARN: Could not advertise administrative
    service
    092300.FSPSRB!DBBL.5148: LIBTUX_CAT:328: ERROR: No space in Bulletin Board for
    Service Table
    092300.FSPSRB!tmboot.5147: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
    mips.
    092300.FSPSRB!tmboot.5147: CMDTUX_CAT:825: ERROR: Process BBL at simple2 failed
    with /T tperrno (TPENOENT - no entry found)
    092300.FSPSRB!tmboot.5147: WARN: No BBL available on site simple2.
         Will not attempt to boot server processes on that site.
    092300.FSPSRB!simpserv.5153: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
    mips.
    092300.FSPSRB!simpserv.5153: LIBTUX_CAT:262: INFO: Standard main starting
    092300.FSPSRB!DBBL.5148: LIBTUX_CAT:328: ERROR: No space in Bulletin Board for
    Service Table
    092300.FSPSRB!simpserv.5153: LIBTUX_CAT:248: ERROR: System init function failed,
    Uunixerr =
    092300.FSPSRB!tmboot.5147: CMDTUX_CAT:825: ERROR: Process simpserv at simple failed
    with /T tperrno (TPENOENT - no entry found)
    below is the ULOG at client site
    071457.GDPSRB!tmloadcf.15432: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
    mips.
    071457.GDPSRB!tmloadcf.15432: NLS:4: Cannot open message catalog CMDTUX_CAT, set
    1, num 879; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    071457.GDPSRB!tmloadcf.15432: NLS:4: Cannot open message catalog CMDTUX_CAT, set
    1, num 871; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    071457.GDPSRB!BSBRIDGE.15436: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
    mips.
    071457.GDPSRB!BSBRIDGE.15436: NLS:4: Cannot open message catalog LIBTUX_CAT, set
    1, num 262; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    071500.GDPSRB!BBL.15441: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22 mips.
    071500.GDPSRB!BBL.15441: NLS:4: Cannot open message catalog LIBTUX_CAT, set 1,
    num 262; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    071502.GDPSRB!BBL.15441: NLS:4: Cannot open message catalog LIBTUX_CAT, set 1,
    num 248; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    071502.GDPSRB!BBL.15441: NLS:4: Cannot open message catalog CMDTUX_CAT, set 1,
    num 26; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    i can set BRIDGE at each site.from the client ULOG ,i think
    the "LIBTUX_CAT, set 1, num 248" is the reason BBL can't boot.
    In reference manual LIBTUX_CAT 248 means "System init function faied".
    what can i do at this time.Please help me.
    If possible,please send me a exapmle.
    thanks!!!
    [email protected]

    gongyu,
    The problem is that your MAXSERVICES parameter is too low.
    Increase it (say, to 100) and while you're at it, I would increase MAXSERVERS
    and MAXACCESSERS too (Maybe 50 and 100 respectively)
    Then your app. should boot.
    There is no fundamental problem with what you're trying to do.
    Regards,
    Peter.
    gongyu wrote:
    i want to build client on a sco unix machine and
    server on a tandem unix machine.how can i complete it?
    i made a test.the application is simple sample TOUPPER.
    below is my ubbconifg
    #ident     "@(#)apps:simpapp/ubbsimple     60.3"
    #Skeleton UBBCONFIG file for the TUXEDO Simple Application.
    #Replace the <bracketed> items with the appropriate values.
    *RESOURCES
    IPCKEY          50000
    #Example:
    #IPCKEY          123456
    DOMAINID     simpapp
    MASTER          simple
    MAXACCESSERS     5
    MAXSERVERS     5
    MAXSERVICES     10
    MODEL          MP
    LDBAL          N
    OPTIONS          LAN
    *MACHINES
    FSPSRB          LMID=simple
              TUXDIR="/db010/gdproj/tuxedo"
              APPDIR="/db010/home/tuxtest/gy"
              TUXCONFIG="/db010/home/tuxtest/gy/tuxconfig"
              UID=135
              GID=120
    GDPSRB          LMID=simple2
    TUXDIR="/appl/gdproj/tuxdev"
              APPDIR="/appl/home/gy/simple"
              TUXCONFIG="/appl/home/gy/simple/tuxconfig"
              UID=139
              GID=100
    #DEFAULT:
    #          APPDIR="/db010/home/tuxtest/gy"
    #          TUXCONFIG="/db010/home/tuxtest/gy/tuxconfig"
    #          TUXDIR="/db010/gdproj/tuxedo"
    #Example:
    #          APPDIR="/home/me/simpapp"
    #          TUXCONFIG="/home/me/simpapp/tuxconfig"
    #          TUXDIR="/usr/tuxedo"
    #FSPSRB          LMID=simple
    #Example:
    #beatux          LMID=simple
    *NETWORK
    simple          NADDR="//10.194.0.3:9000"
    NLSADDR="//10.194.0.3:9001"
              BRIDGE="/dev/tcp"
    simple2          NADDR="//10.194.0.155:9000"
              NLSADDR="//10.194.0.155:9001"
    BRIDGE="/dev/tcp"
    *GROUPS
    GROUP1
         LMID=simple     GRPNO=1     OPENINFO=NONE
    *SERVERS
    DEFAULT:
              CLOPT="-A"
    simpserv     SRVGRP=GROUP1 SRVID=1
    *SERVICES
    TOUPPER
    i start the tlisten at each site .
    when i exec tmboot -y i can't get BBL at client site
    below is the ULOG at server site
    092248.FSPSRB!DBBL.5148: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22 mips.
    092248.FSPSRB!DBBL.5148: LIBTUX_CAT:262: INFO: Standard main starting
    092250.FSPSRB!BBL.5149: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22 mips.
    092250.FSPSRB!BBL.5149: LIBTUX_CAT:262: INFO: Standard main starting
    092252.FSPSRB!DBBL.5148: CMDTUX_CAT:4350: INFO: BBL started on simple - Release
    6400
    092253.FSPSRB!BRIDGE.5150: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
    mips.
    092253.FSPSRB!BRIDGE.5150: LIBTUX_CAT:262: INFO: Standard main starting
    092253.FSPSRB!BRIDGE.5150: LIBTMIB_CAT:74: ERROR: Failed to advertise dynamic
    /Admin service TBR0
    092253.FSPSRB!BRIDGE.5150: CMDTUX_CAT:1788: WARN: Could not advertise administrative
    service
    092300.FSPSRB!DBBL.5148: LIBTUX_CAT:328: ERROR: No space in Bulletin Board for
    Service Table
    092300.FSPSRB!tmboot.5147: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
    mips.
    092300.FSPSRB!tmboot.5147: CMDTUX_CAT:825: ERROR: Process BBL at simple2 failed
    with /T tperrno (TPENOENT - no entry found)
    092300.FSPSRB!tmboot.5147: WARN: No BBL available on site simple2.
         Will not attempt to boot server processes on that site.
    092300.FSPSRB!simpserv.5153: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
    mips.
    092300.FSPSRB!simpserv.5153: LIBTUX_CAT:262: INFO: Standard main starting
    092300.FSPSRB!DBBL.5148: LIBTUX_CAT:328: ERROR: No space in Bulletin Board for
    Service Table
    092300.FSPSRB!simpserv.5153: LIBTUX_CAT:248: ERROR: System init function failed,
    Uunixerr =
    092300.FSPSRB!tmboot.5147: CMDTUX_CAT:825: ERROR: Process simpserv at simple failed
    with /T tperrno (TPENOENT - no entry found)
    below is the ULOG at client site
    071457.GDPSRB!tmloadcf.15432: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
    mips.
    071457.GDPSRB!tmloadcf.15432: NLS:4: Cannot open message catalog CMDTUX_CAT, set
    1, num 879; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    071457.GDPSRB!tmloadcf.15432: NLS:4: Cannot open message catalog CMDTUX_CAT, set
    1, num 871; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    071457.GDPSRB!BSBRIDGE.15436: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
    mips.
    071457.GDPSRB!BSBRIDGE.15436: NLS:4: Cannot open message catalog LIBTUX_CAT, set
    1, num 262; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    071500.GDPSRB!BBL.15441: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22 mips.
    071500.GDPSRB!BBL.15441: NLS:4: Cannot open message catalog LIBTUX_CAT, set 1,
    num 262; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    071502.GDPSRB!BBL.15441: NLS:4: Cannot open message catalog LIBTUX_CAT, set 1,
    num 248; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    071502.GDPSRB!BBL.15441: NLS:4: Cannot open message catalog CMDTUX_CAT, set 1,
    num 26; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    i can set BRIDGE at each site.from the client ULOG ,i think
    the "LIBTUX_CAT, set 1, num 248" is the reason BBL can't boot.
    In reference manual LIBTUX_CAT 248 means "System init function faied".
    what can i do at this time.Please help me.
    If possible,please send me a exapmle.
    thanks!!!
    [email protected]

  • Multiplayer game: how to synchronize client and server

    Hi there, I'm wondering how to synchronzie client's and server's frame number?
    I have a multiplayer spaceship(2D) game running at constant 30 FPS, since I use "frame number" to determine if a packet is too late or not, so I would like to have server and client both start frame 1 at the same time, but I have no idea how to do so, can anyone give me a hint?
    well, if you want more details(may not be too much relevant to my problem, but any way, for anyone who interested):
    I use UDP(my teammate implemented a TCP version, it's working but TCP is just way too stupid, lagging and some unknown problems produce very funny result). So far, on client side, input(key strokes) is sent via network immediately, but processed 2 frames later locally. So on lan, server will likely get the packet before it's time to process it, thus solve the packet delay problem a little bit).
    Example: If user pressed fire button at frame 5, it's sent immediately to server, then at frame 7, client engine processes this "fire" event, and likely, server will get this packet at frame 6 or 7, then it can just processes it in time as well.
    So there's a problem, server and client must both running the same frame number at the same time(maybe not exact, but gotta be very close).
    By the way, I need some suggestions implementing the server, my brain hurts just thinking about it, I hope I will never have to code network stuff again: Server runs at 30FPS(but only broadcast game state at 6FPS), it just sit there between frame 1~4, get all packets and store them, then between frame 4~5, processes all the packets recieved, then broadcast the result(game state), client recieves it, will treat this game state as "correct game state for frame 5". I use this way because it solves packet delay and out of order packet to some extend.
    However, say, if server broadcasts the game state for frame 5 at frame 5, then client is likely to recieve it at frame 7 or even later, how can client use it?
    So, together, if you have suggestion or solution for my server and client implementation, please let me know, thanks heaps. I'm in quite a desperation at the moment.
    P.S: I also posted this synchronizing problem at the socket programming forum, hope you guys (and girls) dont mind, since this is a place talking about game, that is a place talking about network, so I thought might be good to have suggestions from people in different programming area.

    Why does the client need to have the same frame number as the server? I think a good way to do it would be as follows:
    - Client sends all of the user's commands to the server (i.e. accellerate left, accellerate right, start firing, etc).
    - Server processes these to update game state and every so often sends updates to the clients, saying something like "at frame 7, user X is at (10, 10) and user Y is at (20,20) and firing south".
    - Clients process all updates from the server, as long as it hasn't seen any update from a later time yet. So if it recieves the update from time 10 before the update from time 9, it only does the one from time 10. It tries to move things smoothly, taking into average time between updates (if there are 100 ms between updates and on the next frame, user X should move 10 units, then move 1 unit every 10 ms).
    By the way, it is possible to use TCP in games. Most MMORPG games use it. I don't know whether it's fast enough for a spaceship game, but it might be worth trying to fix the code you have. Try to keep packets small (use bytes for event type codes, player numbers, etc), group multiple events into one packet if they are all available at the same time, flush() the output stream as soon as you send one, and don't use a buffered stream or reader when reading them.

  • How to identify client and server versions

    Hi all,
    Ok, this may sound silly, but I have to write an application to access an Oracle database. Prior development in other languages has used ODBC and works fine. VS.NET using the OLE DB works as well.
    However, I installed the ODT with ODAC 11.10.6.21 and tried that. I get an error trying to access the data.
    When I execute the conn.open(), I get:
    ORA-12154: TNS:could not resolve the connect identifier specified
    I have opened the TNSNames.ora file and used that to create the connection string just in case. But I still get the error.
    My guess is that either the client on my system is too old or the Oracle Server is still running an old version.
    Is there an easy way for me to identify the latest client I have installed as well as the version of Oracle that is running on the server?
    No, I can't just ask the people who manage the server or I would have done so already. I am a contractor here and it is very hard for me to get through to anyone who might know.
    Thanks,
    JustMe

    http://www.oracle.com/technology/tech/dotnet/col/odt_faq.html#ORA-12154:_TNS:could_not_resolve_the

  • How to Integrate Client system and Server system?

    How to Integrate Client system and Server system?
    A scenario which is working successfully in server system, not working in client system.
    help me out in this issue.
    pankaj.

    Hi Bhavesh,
    server system means where we have xi inst.
    client system means where we have only GUI inst.(front end).
    The scenario working in server system (picking file and posting it in to the target place)
    but the same not working in client system.

  • Async tcp client and server. How can I determine that the client or the server is no longer available?

    Hello. I would like to write async tcp client and server. I wrote this code but a have a problem, when I call the disconnect method on client or stop method on server. I can't identify that the client or the server is no longer connected.
    I thought I will get an exception if the client or the server is not available but this is not happening.
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    How can I determine that the client or the server is no longer available?
    Server
    public class Server
    private readonly Dictionary<IPEndPoint, TcpClient> clients = new Dictionary<IPEndPoint, TcpClient>();
    private readonly List<CancellationTokenSource> cancellationTokens = new List<CancellationTokenSource>();
    private TcpListener tcpListener;
    private bool isStarted;
    public event Action<string> NewMessage;
    public async Task Start(int port)
    this.tcpListener = TcpListener.Create(port);
    this.tcpListener.Start();
    this.isStarted = true;
    while (this.isStarted)
    var tcpClient = await this.tcpListener.AcceptTcpClientAsync();
    var cts = new CancellationTokenSource();
    this.cancellationTokens.Add(cts);
    await Task.Factory.StartNew(() => this.Process(cts.Token, tcpClient), cts.Token, TaskCreationOptions.LongRunning, TaskScheduler.Default);
    public void Stop()
    this.isStarted = false;
    foreach (var cancellationTokenSource in this.cancellationTokens)
    cancellationTokenSource.Cancel();
    foreach (var tcpClient in this.clients.Values)
    tcpClient.GetStream().Close();
    tcpClient.Close();
    this.clients.Clear();
    public async Task SendMessage(string message, IPEndPoint endPoint)
    try
    var tcpClient = this.clients[endPoint];
    await this.Send(tcpClient.GetStream(), Encoding.ASCII.GetBytes(message));
    catch (Exception exception)
    private async Task Process(CancellationToken cancellationToken, TcpClient tcpClient)
    try
    var stream = tcpClient.GetStream();
    this.clients.Add((IPEndPoint)tcpClient.Client.RemoteEndPoint, tcpClient);
    while (!cancellationToken.IsCancellationRequested)
    var data = await this.Receive(stream);
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    private async Task Send(NetworkStream stream, byte[] buf)
    await stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
    await stream.WriteAsync(buf, 0, buf.Length);
    private async Task<byte[]> Receive(NetworkStream stream)
    var lengthBytes = new byte[4];
    await stream.ReadAsync(lengthBytes, 0, 4);
    var length = BitConverter.ToInt32(lengthBytes, 0);
    var buf = new byte[length];
    await stream.ReadAsync(buf, 0, buf.Length);
    return buf;
    Client
    public class Client
    private TcpClient tcpClient;
    private NetworkStream stream;
    public event Action<string> NewMessage;
    public async void Connect(string host, int port)
    try
    this.tcpClient = new TcpClient();
    await this.tcpClient.ConnectAsync(host, port);
    this.stream = this.tcpClient.GetStream();
    this.Process();
    catch (Exception exception)
    public void Disconnect()
    try
    this.stream.Close();
    this.tcpClient.Close();
    catch (Exception exception)
    public async void SendMessage(string message)
    try
    await this.Send(Encoding.ASCII.GetBytes(message));
    catch (Exception exception)
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    private async Task Send(byte[] buf)
    await this.stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
    await this.stream.WriteAsync(buf, 0, buf.Length);
    private async Task<byte[]> Receive()
    var lengthBytes = new byte[4];
    await this.stream.ReadAsync(lengthBytes, 0, 4);
    var length = BitConverter.ToInt32(lengthBytes, 0);
    var buf = new byte[length];
    await this.stream.ReadAsync(buf, 0, buf.Length);
    return buf;

    Hi,
    Have you debug these two applications? Does it go into the catch exception block when you close the client or the server?
    According to my test, it will throw an exception when the client or the server is closed, just log the exception message in the catch block and then you'll get it:
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.Invoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    Console.WriteLine(exception.Message);
    Unable to read data from the transport connection: An existing   connection was forcibly closed by the remote host.
    By the way, I don't know what the SafeInvoke method is, it may be an extension method, right? I used Invoke instead to test it.
    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 corba client and server find Naming service

    hello
    i want to ask how corba client and server find the Naming service ?
    10x

    By using a well-known port (I think the default for JavaIDL's NS is 1049) on a well-known address (localhost).
    As these values are not really standard, you can specify them when starting the server and client (+-ORBInitialPort 1050 -ORBInitialHost localhost+). See the documentation .

  • How to run a datagram socket client and server program

    hi,
    I am new to socket programming. I am following the tutorial of sun for socket programming...The link is
    http://java.sun.com/docs/books/tutorial/networking/datagrams/clientServer.html
    I have understood the concept, but the problem is i cannot run the program. I am using netbeans and i have created a package and stored the files QuoteServer,QuoteServerThread, QuoteClient in this package. How can i make the server program run first and then client program in netbeans
    kindly help me
    Thankyou

    I think you are trying to run both server and client
    on one machine!!!
    It is impossible, your server is blocking the port to
    send packets, so you must run client on another
    computer!!!It's not impossible to run a client and server on the same machine just for testing or as a demo. Just have the server listen on one port and the client use a different port.
    No need to use 2 seperate computers. I've done it one computer before without a problem.
    Nick

  • How to handle when Client and server write to the socket at the same time

    Hi all,
    I'm writing a socket communication when client and server may write information the the socket at the same time. I look every where but the samples from the internet only shows example of server replies to client after receiving requests from clients.
    Let's say that:
    Client 1 ->Socket 1 -> Server 1
    Now if there are two threads in the server, one blocked waiting for the input from client on socket 1, the second one write something on the socket to client 1, is it possible?
    And if it's possible, if at the time Server 1 writes information to Client 1, Client 1 writes some information to Server 1 too, will there be any conflict problem or the socket could handle that two ways communication simultaneously?
    It's critical questions for me. Thanks for your help.

    I really use Server Client paradigm. However, beside the request, response mechanism, there is also an additional mechanism called update which server periodically send information update to client without the need for a request from client.
    So you suggest client should initiate 2 sockets, one for request and response, one for receiving update from the server? Will this work?

  • Client and Server in one process

    Hi all,
    I am trying to create a process which can act as both Client and Server.
    How can I do this?
    Thanks!

    AH. That's a better definition or explanation. Thanks.
    This smells of a single process with multiple threads, each thread handling the basic needs of your requirements. In other words, have a thread deal with making one or more client type connections (use a main thread - the client controller - to spawn client-connection threads. This assumes you need multiplicity in your client-connection model.
    Then make another thread - the server controller - to handle inbound connections, spawning a new thread for each inbound connection. Your main thread, the one that contains your main method, can watch everything that's going on and log or report what's going on in your client and server threads.
    Going into specifics would be a lot to do here. Maybe someone is up for the challenge. Of course, this being a "New to Java Technology" forum, these concepts may be a bit beyond your skillset.
    This is not the only way to go about solving your problem, but it's the only way I can think of at the moment given your requirements.
    Hope this helps some.

  • JSSE  Client and server communication problem .err:untrusted server cert

    Hai all,
    I am trying to communicate JSSE client and server.
    I have created root.cert(CA),root.key,server.cert,server.key , client.cert and client.key. All these certificates are created using openssl.
    I have placed root.cert in default keystore cacerts.
    I have created a keystores(server & client) name mykeystore.
    I have placed root.cert and client.cert in the client keystore.
    I have placed root.cert and server.cert in the server keystore.
    But during the run time i am getting javax.net.ssl.SSLException: untrusted server cert chain.
    please suggest the modifications needs to be done to fix the error.
    please tell me In the client keystore and in the server keystore....what certificates we need to put?
    whether my approach as said above is correct or not?
    In java code how to specify this particular certificate we are referring?
    I have coded in this way ....
    SSLContext ctx;
    KeyManagerFactory kmf;
    KeyStore ks;
    char[] prasad = "prasad".toCharArray();
    ctx = SSLContext.getInstance("SSLv3");
    kmf = KeyManagerFactory.getInstance("SunX509");
    ks = KeyStore.getInstance("jks");
    ks.load(new FileInputStream("mykeystore"), prasad);
    kmf.init(ks, prasad);
    ctx.init(kmf.getKeyManagers(), null, null);
    factory = ctx.getSocketFactory();
    But my doubt is we are specifying only keystore name with that how it will check root.cert(ca) and client.cert and server.cert?
    Is there any modifications need in my code?
    Please tell me some way ...
    Thanks ,
    Prasad.

    Hi prasad,
    There will be a problem with the certificates being received from thr remote server or client. Check that your trust store contains the certificate of the remote machine or the CA that signed it and that the certificate has not expired.
    Also be sure that both machines are using the latest version of the JSSE.
    Hope this will help you.
    Regards,
    Anil.
    Technical Support Engineer.

  • Problems concerning "How to integrate MS Exchange Server into SAP EP"

    Hi,
    I want to realize the scenario in "How to integrate Microsoft Exchange Server into SAP Enterprise Portal" from the Microsoft-Website.
    We´re using SAP NetWeaver 04, SAP NetWeaver Portal 6.0.14.0.0 and KMC 6.0.14.2.0 and Microsoft Exchange Server 2000 SP3.
    I have created (as described in the document) the HTTP-System and a WebDAV RM. But the repository doesn´t appeaer in the KM-Content-iView.
    I checked the Component Monitor and got this error-message for "servers" (it was marked with a red square)
    last-error-3   2006-05-16T13:12:11Z: PROPFIND /public: 401 Access Denied
    last-error-4   2006-05-16T13:15:04Z: PROPFIND /public: 401 Access Denied
    last-error-6   2006-05-16T13:26:35Z: PROPFIND /public: 401 Access Denied
    errors   8
    last-error-2   2006-05-16T13:12:10Z: PROPFIND /public: 401 Access Denied
    requests   8
    last-error-7   2006-05-16T13:26:35Z: PROPFIND /public: 401 Access Denied
    bytes-per-second   0
    successes   0
    response-average   194
    last-error-1   2006-05-16T13:11:55Z: PROPFIND /public: 401 Access Denied
    last-error-0   2006-05-16T13:11:54Z: PROPFIND /public: 401 Access Denied
    last-error-5   2006-05-16T13:15:05Z: PROPFIND /public: 401 Access Denied
    failures   0
    Any idea, what´s wrong? And how to solve the problem.
    Thanks for help,
    Sven
    Message was edited by: Sven Keller

    Hi James,
    How can I check the KM ACLs/Security Zones?
    I had a look on "System Administration - System Configuration - Knowledge Management - Content Management - Repository Managers - Security Manager - WebDAV ACL Security Manager".
    There was just "WDAclSecurityManager" and the Permission Rendering Class was "com.sapportals.wcm.control.acl.ResourcePermissionControl".
    Or where do I have to look for the ACL?

  • Socket communication between client and server

    Hi all,
    I am doing an assignment for communication between java client and java server using sockets. This communication is in the form of XML documents. I am facing a problem in this communication.
    Actually at Server side I'm creating an XML document(Document type object) using DocumentBuilderFactory in javax.xml.parsers package and transforming this Document into a stream using StreamResult.
    My code is :
    Transformer xmlTransformer = TransformerFactory.newInstance().newTransformer();
    StreamResult xmlString = new StreamResult(currentClientHandler.getSocketOutputStream());
    DOMSource xmlDocSource = new DOMSource(xmlDocument); // xmlDocument is Document type reference
    xmlTransformer.transform(xmlDocSource, xmlString);
    so, this xmlString(i.e. StreamResult) is passed directly into the output stream. Here I need to close() output stream after transform() call to help SAX parser to know about end of stream.
    Now at Client side, I am parsing this stream using SAX parser. It parses this correctly. But when sending some another data back to Server when client opens output stream, it given Socket closed exception. I know that closing input or output stream closes socket. But in my problem, I have to send data in streams and not by using files or byte[] etc.
    So what is nearest solution to problem ??
    Plz help me. Any kind of help will be greatly appreciated.

    hi
    thanks for ur reply.
    I didnt get any error msg while getting the back the datas.
    Actually i divided my application into two parts.
    My application will act as both server and client.
    server ll get the browser request and send to the client and the client will send that data to the c++ server.
    Im able to do that.and unable to get the data from server.
    Didnt get any error.
    can u tell me how to make an application to act as both client and server.
    I think im wrong in that part.
    thanks a lot

  • UDP Client and Server

    I am trying to run a UDP Client and Server by running the server first and then the client. But when I try to do that I get the message java.lang.NoClassDefFoundError: UDPServer and java.lang.NoClassDefFoundError: UDPClient. I have included the code below. Can you please help. Thank you.
    UDPClient.java:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class UDPClient{
        public static void main(String[] args) throws IOException{
          Date d=new Date();
          long time1, time2, ETE, sumETE, maxETE, avgETE;
          if(args.length!=1){
              System.out.println("type java UDPClient <hostname>");
              return;
          time1=d.getTime();
          DatagramSocket s=new DatagramSocket();
          String st=new String("dldfjsdkjf");
          byte[] buf=new byte[256];
          buf=st.getBytes();
          InetAddress address=InetAddress.getByName(args[0]);
          DatagramPacket p = new DatagramPacket(buf, buf.length, address, 8777);
          s.send(p);
          p=new DatagramPacket(buf, buf.length, address, 8777);
          s.receive(p);
          time2=d.getTime();
          ETE=(time2-time1)/2;
          s.close();
    UDPServer.java:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.lang.*;
    public class UDPServer{
      public static void main(String[] args){
        try{
          UDPServerThread ust = new UDPServerThread();
          ust.start();
        catch(IOException e){}
    UDPServerThread.java:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.lang.*;
    public class UDPServerThread extends Thread{
      DatagramSocket s=null;
      BufferedReader br=null;
      PrintWriter pw=null;
      public UDPServerThread() throws IOException{
        this("UDPServer");
      public UDPServerThread(String name) throws IOException{
        super(name);
        s=new DatagramSocket(8777);
      public void run(){
          char[] ca=new char[10];
        //while(true){
          try{
              byte[] buf = new byte[256];
              DatagramPacket p = new DatagramPacket(buf, buf.length);
              s.receive(p);
              String st=new String(p.getData());
              for(int i=0; i<10; i++){
                  ca=st.charAt(i);
    buf=st.getBytes();
    InetAddress ad = p.getAddress();
    int port = p.getPort();
    p = new DatagramPacket(buf, buf.length, ad, port);
    s.send(p);
    catch(IOException e){
    System.err.println("Failed to run the server");
    System.exit(-1);
    s.close();

    this has nothing to do with your code, but how you are running it. It is a classpath problem.
    You should go to the directory where the UDPClient.class is, and type
    java -classpath . UDPClient
    similarly for the UDPServer

Maybe you are looking for

  • Keyframes won't select in CS5

    hello, basically, I'm trying to create a continuous walk loop and the tutorial is telling me to copy and paste the beginning keyframe, but After Effects won't let me select it to copy and paste it. Any one know why it won't let me select it to copy a

  • Install a second instance of livecycle

    Hi, I have a livecycle8.2 installed on my windows server 2003. It's a migration from the 8.0.1 SP3 but I have some troubles. I need to install an instance of the 8.2 version and not do a migration to see if the problems are still present. I was askin

  • Error in the Seeburger-BIC mapping designer

    Hello, I have changed the source structure of my XML journal. I have added few extra fields to the source. After the change my mapping started giving me errors like below " [Error:ID=1017;LEVEL=1] BICMapping: runMapping() FATAL ERROR: null [Descripti

  • How to find our PIA is installed with multiple domains

    Hi, How would we find the is our environment has multiple PIA and multiple webservers.In which tables we get those details.Please give me information on that Regards, Ashok

  • SQLdeveloper can't connect to 10g Dbase

    Hi, Everyone. I have been trying to make a connection to 10g database using oracle sqldeveloper (versions 1.2 , 1.5.0, 1.5.3, 1.5.4 and 1.5.5) for the past two weeks but to no avail. I always get the following error when using any of the abovenamed v