Lines Matching refs:port
63 if (vmatlab->port) { in PetscViewerDestroy_Socket()
67 ierr = closesocket(vmatlab->port); in PetscViewerDestroy_Socket()
69 ierr = close(vmatlab->port); in PetscViewerDestroy_Socket()
313 PetscErrorCode PetscViewerSocketOpen(MPI_Comm comm, const char machine[], int port, PetscViewer *la… argument
318 PetscCall(PetscViewerSocketSetConnection(*lab, machine, port));
383 vmatlab->port = 0;
414 PetscErrorCode PetscViewerSocketSetConnection(PetscViewer v, const char machine[], int port) argument
426 if (port <= 0) {
432 PetscCall(PetscMPIIntCast(pport, &port));
433 } else port = PETSCSOCKETDEFAULTPORT;
448 PetscCall(PetscInfo(v, "Waiting for connection from socket process on port %d\n", port));
449 PetscCall(PetscSocketEstablish(port, &listenport));
450 PetscCall(PetscSocketListen(listenport, &vmatlab->port));
453 PetscCall(PetscInfo(v, "Connecting to socket process on port %d machine %s\n", port, mach));
454 PetscCall(PetscOpenSocket(mach, port, &vmatlab->port));