Examples of connect()


Examples of org.pokenet.server.network.MySqlManager.connect()

  }

  public void run() {
    /*Record Trade on History Table*/
    MySqlManager m_database = new MySqlManager();
    if(m_database.connect(GameServer.getDatabaseHost(), GameServer.getDatabaseUsername(), GameServer.getDatabasePassword())){
      m_database.selectDatabase(GameServer.getDatabaseName());
      while(!m_queries.isEmpty()){
        m_database.query(m_queries.get(0));
        m_queries.remove(0);
      }
View Full Code Here

Examples of org.postgresql.Driver.connect()

  @Before public void setUp() throws Exception {
    Driver d = new Driver();
    Properties p = new Properties();
    p.setProperty("user", "testuser");
    p.setProperty("password", "testpassword");
    conn = d.connect("jdbc:postgresql://"+addr.getHostName()+":" +odbcTransport.getPort()+"/parts", p);
  }
 
  @After public void tearDown() throws Exception {
    if (conn != null) {
      conn.close();
View Full Code Here

Examples of org.projectforge.mail.MailAccount.connect()

      return 0;
    }
    final MailAccount mailAccount = new MailAccount(cfg);
    try {
      // If mark messages as seen is set then open mbox read-write.
      mailAccount.connect("INBOX", markRecentMailsAsSeen);
      final Mail[] mails = mailAccount.getMails(filter);
      if (mails != null) {
        for (final Mail mail : mails) {
          final MebEntryDO entry = new MebEntryDO();
          entry.setDate(mail.getDate());
View Full Code Here

Examples of org.projectodd.stilts.stomp.client.StompClient.connect()

    @Test
    public void testSendWithNoTx() throws Exception {

        StompClient client = new StompClient("stomp://" + url.getHost());
        client.connect();

        final Set<String> outbound = new HashSet<String>();
        final CountDownLatch outboundLatch = new CountDownLatch(2);
        SubscriptionBuilder builder = client.subscribe(DESTINATION_QUEUE_ONE);
        builder.withMessageHandler(new MessageHandler() {
View Full Code Here

Examples of org.python.pydev.core.docutils.PyPartitioner.connect()

        fViewer.setInput(parent);

        IDocument document = new Document();
        IDocumentPartitioner partitioner = new PyPartitioner(new PyPartitionScanner(), IPythonPartitions.types);
        document.setDocumentPartitioner(partitioner);
        partitioner.connect(document);
        /*
        fViewer.configure(new DisplayViewerConfiguration() {
            public IContentAssistProcessor getContentAssistantProcessor() {
                    return getCompletionProcessor();
            }
View Full Code Here

Examples of org.quickserver.net.client.BlockingClient.connect()

     
      if(getSslSocketFactory()!=null) {
        client.setSslSocketFactory(getSslSocketFactory());
      }
     
      client.connect(socketBasedHost.getInetAddress().getHostAddress(),
          socketBasedHost.getInetSocketAddress().getPort());
     
      if(socketBasedHost.getTextToExpect()!=null) {
        String textGot = client.readBytes();
        if(textGot.indexOf(socketBasedHost.getTextToExpect())!=-1) {
View Full Code Here

Examples of org.red5.server.api.TestConnection.connect()

    IScope scope = context.resolveScope("/");
    IClientRegistry reg = context.getClientRegistry();
    IClient client = reg.newClient(null);
    assertNotNull(client);
    conn.initialize(client);
    if (conn.connect(scope)) {
      assertTrue("should have a scope", conn.getScope() != null);
      conn.close();
      assertTrue("should not be connected", !conn.isConnected());
    } else {
      assertTrue("didnt connect", false);
View Full Code Here

Examples of org.red5.server.api.scope.IScope.connect()

    Thread r = new Thread(new Runnable() {
      public void run() {
        Red5.setConnectionLocal(recipient);
        IConnection conn = Red5.getConnectionLocal();
        assertTrue(scp.connect(conn));
        try {
          Thread.sleep(120L);
        } catch (InterruptedException e) {
        }
        log.debug("Check s/c -\n s1: {} s2: {}\n c1: {} c2: {}", new Object[] { scp, conn.getScope(), ctx, conn.getScope().getContext() });
View Full Code Here

Examples of org.red5.server.net.mrtmp.IMRTMPConnection.connect()

  }
 
  protected void sendConnectMessage(RTMPConnection conn) {
    IMRTMPConnection mrtmpConn = mrtmpManager.lookupMRTMPConnection(conn);
    if (mrtmpConn != null) {
      mrtmpConn.connect(conn.getId());
    }
  }
 
  protected void forwardPacket(RTMPConnection conn, Packet packet) {
    IMRTMPConnection mrtmpConn = mrtmpManager.lookupMRTMPConnection(conn);
View Full Code Here

Examples of org.restlet.ext.sdc.internal.SdcServerConnection.connect()

                        try {
                            socket = (SSLSocket) serverSocket.accept();
                            socket.setEnabledCipherSuites(getEnabledCipherSuites());
                            SdcServerConnection ssc = new SdcServerConnection(
                                    SdcClientHelper.this, socket);
                            ssc.connect();
                            if (ssc.getKey() != null) {
                                getConnections().put(ssc.getKey(), ssc);
                            } else {
                                getLogger().warning(
                                        "Detected wrong connection.");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.