:orphan: # PetscSocketListen Listens at a socket created with `PetscSocketEstablish()` ## Synopsis ``` PETSC_INTERN PetscErrorCode PetscSocketListen(int listenport, int *t) ``` ## Input Parameter - ***listenport -*** obtained with `PetscSocketEstablish()` ## Output Parameter - ***t -*** pass this to read() to read what is passed to this connection ## See Also `PetscSocketEstablish()` ## Level advanced ## Location src/sys/classes/viewer/impls/socket/send.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/viewer/impls/socket/send.c) [Index of all Viewer routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)