Package org.asteriskjava.util

Examples of org.asteriskjava.util.SocketConnectionFacade


    return new CustomSocketConnectionFacadeImpl(host, port, false, 0, 0,
        CustomSocketConnectionFacadeImpl.NL_PATTERN);
  }

  public Future<?> run() throws IOException {
    SocketConnectionFacade socket = createClientSocket();
    AgiClientConnection connection = new AgiClientConnection(socket);
    return connection.run(script, _parameters);
  }
View Full Code Here


    }

    @Test
    public void testSendAction() throws Exception
    {
        SocketConnectionFacade socketConnectionFacade;

        socketConnectionFacade = createMock(SocketConnectionFacade.class);
        socketConnectionFacade.write("action: Status\r\n\r\n");
        socketConnectionFacade.flush();
        replay(socketConnectionFacade);

        managerWriter.setSocket(socketConnectionFacade);
        managerWriter.sendAction(new StatusAction(), null);
        verify(socketConnectionFacade);
View Full Code Here

TOP

Related Classes of org.asteriskjava.util.SocketConnectionFacade

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.