# Socket API

**URL:** https://discourse.paraview.org/t/socket-api/3527
**Category:** ParaView Support
**Tags:** python
**Created:** [February 7, 2020, 9:40am UTC](https://discourse.paraview.org/t/socket-api/3527 "2020-02-07T09:40:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sohayb\_bahi](https://discourse.paraview.org/user_avatar/discourse.paraview.org/sohayb_bahi/32/2846_2.png) [@sohayb\_bahi](https://discourse.paraview.org/u/sohayb_bahi)
#### Post date: [February 7, 2020, 9:40am UTC](https://discourse.paraview.org/t/socket-api/3527/1 "2020-02-07T09:40:56Z")

</div>

Hello,

Is there an socket API to communicate with paraview.exe ??  
If no , can we some how communicate with the process paraview.exe?

Thank you

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 7, 2020, 10:39am UTC](https://discourse.paraview.org/t/socket-api/3527/2 "2020-02-07T10:39:01Z")

</div>

> Is there an socket API to communicate with paraview.exe ?

No

> can we some how communicate with the process paraview.exe?

ParaView can be run as a Client/Server application by using pvserver and a paraview client, like paraview ou pvpython.

What are you trying to achieve ?

---

<div class="post-metadata">

### Author: ![sohayb\_bahi](https://discourse.paraview.org/user_avatar/discourse.paraview.org/sohayb_bahi/32/2846_2.png) [@sohayb\_bahi](https://discourse.paraview.org/u/sohayb_bahi)
#### Post date: [February 7, 2020, 11:04am UTC](https://discourse.paraview.org/t/socket-api/3527/3 "2020-02-07T11:04:45Z")

</div>

I was trying to get the current camera position from paraview client(paraview) and put them in a file , then from another python script(called ChargeDecharge.py) read these coordinates , and this script will use EnsightReader() of the .case that are in the camera view , and Delete() to those that are not. The idea that i had about pv Client/Server , was to send from paraview client (paraview) the camera’s coordinates to pvserver and with another client( launched from ChargeDecharge.py) will read these coordinates and then Show them or Delete them from the paraview client

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 7, 2020, 11:28am UTC](https://discourse.paraview.org/t/socket-api/3527/4 "2020-02-07T11:28:03Z")

</div>

Not sure that is possible without going through a file. Maybe you can do something with the multi-clients mode.

In any case, you can always create a ParaView plugin to send the information the way you see fit.
