# OnReceive event for Ethernet connection?

**URL:** <https://discourse.processing.org/t/onreceive-event-for-ethernet-connection/44591>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [June 13, 2024, 1:16pm UTC](https://discourse.processing.org/t/onreceive-event-for-ethernet-connection/44591 "2024-06-13T13:16:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hakim](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hakim](https://discourse.processing.org/u/hakim)\
**Post date:** [June 13, 2024, 1:16pm UTC](https://discourse.processing.org/t/onreceive-event-for-ethernet-connection/44591/1 "2024-06-13T13:16:16Z")

</div>

hi, hope you doing all well, when i was using serial port for my arduino project, there was a function that automatically trigerred upon receiving data via serial port ( serial event) , now i m using ethernet connection, is there a similair function that triggers upon receiving data from ethernet and runns in it s own thread ?

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [June 13, 2024, 1:53pm UTC](https://discourse.processing.org/t/onreceive-event-for-ethernet-connection/44591/2 "2024-06-13T13:53:19Z")

</div>

Hello @hakim,

Start here:

> **[Network / Libraries](https://processing.org/reference/libraries/net/index.html)**
>
> Send and receive data over the Internet through simple clients and servers.

Related:  
_[[JAVA] 'Network' library related - server issue](https://discourse.processing.org/t/java-network-library-related-server-issue/44579)_

`:)`

---

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [June 13, 2024, 10:47pm UTC](https://discourse.processing.org/t/onreceive-event-for-ethernet-connection/44591/3 "2024-06-13T22:47:44Z")

</div>

@glv

Dear glv  
‘serverEvent()’ is currently being executed, but there seems to be a problem. Currently, it is being tested. I will let you know when the final results come out.
