petsc-3.9.4 2018-09-11
Report Typos and Errors

PetscSocketOpen

handles connected to an open port where someone is waiting.

Synopsis

PetscErrorCode  PetscOpenSocket(const char hostname[],int portnum,int *t)

Input Parameters

url - for example www.mcs.anl.gov
portnum - for example 80

Output Paramater

t -the socket number

Notes: Use close() to close the socket connection

Use read() or PetscHTTPRequest() to read from the socket

See Also

PetscSocketListen(), PetscSocketEstablish(), PetscHTTPRequest(), PetscHTTPSConnect()

Level

advanced

Location

src/sys/classes/viewer/impls/socket/send.c
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages